I definitely didn't forget an import somewhere else

This commit is contained in:
AllfatherHatt 2024-04-10 16:39:29 +02:00
parent 235d8790b4
commit 7e4de04949
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -6,7 +6,7 @@ import pytz
class TrafficCog(commands.Cog): class TrafficCog(commands.Cog):
def __init__(self, bot): def __init__(self, bot):
self.bot = bot self.bot = bot
self.config = commands.Config.get_conf(self, identifier=123456789) self.config = Config.get_conf(self, identifier=123456789, force_registration=True)
default_guild = { default_guild = {
"traffic_channel": None, "traffic_channel": None,
"daily_stats": {"joined": 0, "left": 0, "banned": 0}, "daily_stats": {"joined": 0, "left": 0, "banned": 0},