Added !filter !leave, fixed CC permissions

This commit is contained in:
Twentysix
2016-02-14 20:31:56 +01:00
parent ff6025e582
commit bd66de2c98
4 changed files with 133 additions and 11 deletions

View File

@@ -2,7 +2,6 @@ from discord.ext import commands
import discord.utils
import os.path
import json
import __main__
#
# This is a modified version of checks.py, originally made by Rapptz
@@ -11,10 +10,8 @@ import __main__
# https://github.com/Rapptz/RoboDanny/tree/async
#
main_path = os.path.dirname(os.path.realpath(__main__.__file__))
try:
with open(main_path + "/data/red/settings.json", "r") as f:
with open("data/red/settings.json", "r") as f:
settings = json.loads(f.read())
except:
settings = {"OWNER" : False, "ADMIN_ROLE" : False, "MOD_ROLE" : False}