I guess we are going asynchronous

This commit is contained in:
AllfatherHatt 2024-04-10 16:50:32 +02:00
parent 7e4de04949
commit 4f84c3b89c
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
from redbot.core.bot import Red
from .trafficCog import TrafficCog
def setup(bot):
async def setup(bot: Red):
cog = TrafficCog(bot)
bot.add_cog(cog)
await bot.add_cog(cog)

View File

@ -92,4 +92,5 @@ class TrafficCog(commands.Cog):
await channel.send(f"{member.display_name} has been banned from the server.")
def setup(bot):
bot.add_cog(TrafficCog(bot))
cog = TrafficCog(bot)
bot.add_cog(cog)