1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Merge branch 'rewrite' of https://github.com/Phxntxm/Bonfire into rewrite

This commit is contained in:
Phxntxm 2017-04-13 18:42:36 -05:00
commit 58b8a0d125
3 changed files with 3 additions and 2 deletions

2
bot.py
View file

@ -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

View file

@ -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

View file

@ -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