Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite
This commit is contained in:
commit
58b8a0d125
2
bot.py
2
bot.py
|
@ -18,7 +18,7 @@ opts = {'command_prefix': utils.command_prefix,
|
|||
'command_not_found': ''}
|
||||
|
||||
bot = commands.AutoShardedBot(**opts)
|
||||
logging.basicConfig(level=logging.WARNING, filename='bonfire.log')
|
||||
logging.basicConfig(level=logging.INFO, filename='bonfire.log')
|
||||
|
||||
|
||||
@bot.event
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from .cards import Deck
|
||||
from .checks import is_owner, custom_perms, db_check
|
||||
from .checks import is_owner, custom_perms, db_check, should_ignore
|
||||
from .config import *
|
||||
from .utilities import *
|
||||
from .images import create_banner
|
||||
|
|
|
@ -74,6 +74,7 @@ def should_ignore(message):
|
|||
except (TypeError, IndexError, KeyError):
|
||||
return False
|
||||
|
||||
|
||||
def custom_perms(**perms):
|
||||
def predicate(ctx):
|
||||
# Return true if this is a private channel, we'll handle that in the registering of the command
|
||||
|
|
Loading…
Reference in a new issue