mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2026-01-21 07:32:59 -05:00
[Core] Replaced JsonDB with Config (#770)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user