add delay for button to reappear

pull/11/head
Konstantine Tsafatinos 2023-07-20 01:35:54 -04:00
parent 0eef370d15
commit 2e47ee97f2
1 changed files with 2 additions and 1 deletions

View File

@ -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):