diff --git a/main.py b/main.py index 9426f6a..225c3b4 100644 --- a/main.py +++ b/main.py @@ -58,11 +58,12 @@ async def say_hello(ctx): async with ctx.typing(): log.info('Start say_hello function') await ctx.message.add_reaction('🤔') - await ctx.send(f'Hello, <@{ctx.author.id}>!') + reply = await ctx.send(f'Hello, <@{ctx.author.id}>!') print(ctx.guild) print(ctx.message.content) print(ctx.message) print(ctx.author) + print(reply) await aio.sleep(random.randint(1,5)) await ctx.message.remove_reaction('🤔', bot.user) if random.randint(1,100) < 10: @@ -72,7 +73,7 @@ async def say_hello(ctx): log.info('Run say_hello successfully') await ctx.message.add_reaction('✅') await aio.sleep(10) - await ctx.message.delete() + await ctx.message.delete() #keep_alive() bot.run(BOTDATA['token'])