I definitely didn't forget an import somewhere else
This commit is contained in:
parent
235d8790b4
commit
7e4de04949
@ -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)
|
||||||
|
|||||||
@ -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},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user