add typing until runing
This commit is contained in:
6
main.py
6
main.py
@@ -47,9 +47,15 @@ async def on_ready():
|
||||
for guild in bot.guilds:
|
||||
log.info(f'Connect to Server {guild.name} (id: {guild.id})')
|
||||
|
||||
@bot.event
|
||||
async def on_reaction_add(reac, usr):
|
||||
print(reac)
|
||||
print(usr)
|
||||
|
||||
### Commands
|
||||
@bot.command(name='hello', help='Say hello!')
|
||||
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}>!')
|
||||
|
||||
Reference in New Issue
Block a user