[Core] Replaced JsonDB with Config (#770)

This commit is contained in:
Will
2017-05-27 22:28:59 -04:00
committed by Twentysix
parent a8745297dc
commit 3988fbbc09
23 changed files with 1298 additions and 380 deletions

View File

@@ -32,7 +32,7 @@ def init_events(bot, cli_flags):
if cli_flags.no_cogs is False:
print("Loading packages...")
failed = []
packages = bot.db.get_global("packages", [])
packages = bot.db.packages()
for package in packages:
try:
@@ -69,7 +69,7 @@ def init_events(bot, cli_flags):
print("\nInvite URL: {}\n".format(invite_url))
@bot.event
async def on_command_error(error, ctx):
async def on_command_error(ctx, error):
if isinstance(error, commands.MissingRequiredArgument):
await bot.send_cmd_help(ctx)
elif isinstance(error, commands.BadArgument):