Fixed on_ready when update was pending

This commit is contained in:
Marco Loewe 2023-11-14 12:45:22 +01:00
parent da32befea7
commit ac880a863c

4
bot.py
View File

@ -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')