From 187fb2a0909ce0f14bbf099afc107ee83a47d2f0 Mon Sep 17 00:00:00 2001
From: anima
Date: Tue, 30 Nov 2021 23:42:57 +0100
Subject: [PATCH] add reply informations from bot message
---
main.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
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'])