Fix load error
This commit is contained in:
parent
7f297185c0
commit
3d51f4e124
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
from discord import User
|
||||
from discord.ext import commands
|
||||
from jarvis.utils.db import DBManager
|
||||
from jarvis.utils import user_is_bot_admin
|
||||
from jarvis import config
|
||||
|
||||
|
||||
class AdminCog(commands.Cog):
|
||||
|
@ -13,7 +13,8 @@ class AdminCog(commands.Cog):
|
|||
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
self.db = DBManager()
|
||||
config = config.get_config()
|
||||
self.db = DBManager(config.mongo)
|
||||
|
||||
@commands.command(name="ban")
|
||||
@commands.has_permissions(administrator=True)
|
||||
|
|
Loading…
Add table
Reference in a new issue