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():
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'])