mirror of https://github.com/skygpu/skynet.git
add delay for button to reappear
parent
0eef370d15
commit
2e47ee97f2
|
@ -1,6 +1,6 @@
|
||||||
# import os
|
# import os
|
||||||
import discord
|
import discord
|
||||||
# import asyncio
|
import asyncio
|
||||||
# from dotenv import load_dotenv
|
# from dotenv import load_dotenv
|
||||||
# from pathlib import Path
|
# from pathlib import Path
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
@ -57,6 +57,7 @@ class DiscordBot(commands.Bot):
|
||||||
elif message.author == self.user:
|
elif message.author == self.user:
|
||||||
return
|
return
|
||||||
await self.process_commands(message)
|
await self.process_commands(message)
|
||||||
|
await asyncio.sleep(3)
|
||||||
await message.channel.send('', view=SkynetView(self.bot))
|
await message.channel.send('', view=SkynetView(self.bot))
|
||||||
|
|
||||||
async def on_command_error(self, ctx, error):
|
async def on_command_error(self, ctx, error):
|
||||||
|
|
Loading…
Reference in New Issue