add reply informations from bot message

This commit is contained in:
2021-11-30 23:42:57 +01:00
parent a6ac128340
commit 187fb2a090

View File

@@ -58,11 +58,12 @@ async def say_hello(ctx):
async with ctx.typing(): async with ctx.typing():
log.info('Start say_hello function') log.info('Start say_hello function')
await ctx.message.add_reaction('🤔') 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.guild)
print(ctx.message.content) print(ctx.message.content)
print(ctx.message) print(ctx.message)
print(ctx.author) print(ctx.author)
print(reply)
await aio.sleep(random.randint(1,5)) await aio.sleep(random.randint(1,5))
await ctx.message.remove_reaction('🤔', bot.user) await ctx.message.remove_reaction('🤔', bot.user)
if random.randint(1,100) < 10: if random.randint(1,100) < 10: