refactor: Move on_ready event definition to a more appropriate location and restore logging functionality
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
52821fdbc1
commit
933f6717dd
@ -27,10 +27,6 @@ logger.info('start bot')
|
||||
# bot = discord.Bot(proxy='http://127.0.0.1:1235')
|
||||
bot = discord.Bot()
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
logger.info(f"We have logged in as {bot.user}")
|
||||
|
||||
channel_id = 1152167937852055552
|
||||
|
||||
@tasks.loop(minutes=1)
|
||||
@ -167,6 +163,8 @@ async def before_check_rank_changes():
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
logger.info(f"We have logged in as {bot.user}")
|
||||
|
||||
channel = bot.get_channel(channel_id)
|
||||
send_message.start(channel)
|
||||
heartbeat.start()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user