Fixed on_ready when update was pending
This commit is contained in:
parent
da32befea7
commit
ac880a863c
4
bot.py
4
bot.py
|
|
@ -26,8 +26,8 @@ async def on_ready():
|
|||
await tree.sync(guild=discord.Object(id='745287426402156555'))
|
||||
print(f'Logged in as {client.user}')
|
||||
print('------')
|
||||
if data['update'] & data['update'] == 'pending':
|
||||
client.get_channel(1173561093579362305).send('Update done')
|
||||
if data['update'] == 'pending':
|
||||
await client.get_channel(1173561093579362305).send('Update done')
|
||||
write_json('update', 'none')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user