Browse Source

cleaned up main

tags/v1.3.0
roxie 6 years ago
parent
commit
fda4c824c9
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      main.py

+ 3
- 5
main.py View File

@@ -26,8 +26,6 @@ server_config = ServerConfig()
bot = commands.Bot(command_prefix=load_config.command_prefix, description=load_config.description)
bot.dev = True # For debugging
bot.owner = load_config.owner
# TODO: Put load_config variables into the bot variable so we can pass all of it to the cogs as one.
# Can't do this with server config in any meaningful way since it still needs updating.


def blacklisted(user):
@@ -119,15 +117,15 @@ async def on_command_error(error, ctx):
embed.add_field(name='Message', value=ctx.message.content)
embed.timestamp = datetime.datetime.utcnow()
try:
await bot.send_message(discord.utils.get(ctx.message.server.members, id=load_config.owner, embed=embed))
await bot.send_message(await bot.get_user_info(load_config.owner), embed=embed)
except:
raise error
#else:
# if bot.dev:
# raise error

@bot.command(pass_context=True)
async def about(ctx):
@bot.command()
async def about():
"""
Outputs info about RoxBot, showing uptime, what settings where set in prefs.ini and credits.
"""

Loading…
Cancel
Save