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

bot = commands.Bot(command_prefix=load_config.command_prefix, description=load_config.description) bot = commands.Bot(command_prefix=load_config.command_prefix, description=load_config.description)
bot.dev = True # For debugging bot.dev = True # For debugging
bot.owner = load_config.owner 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): def blacklisted(user):
embed.add_field(name='Message', value=ctx.message.content) embed.add_field(name='Message', value=ctx.message.content)
embed.timestamp = datetime.datetime.utcnow() embed.timestamp = datetime.datetime.utcnow()
try: 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: except:
raise error raise error
#else: #else:
# if bot.dev: # if bot.dev:
# raise error # 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. Outputs info about RoxBot, showing uptime, what settings where set in prefs.ini and credits.
""" """

Loading…
Cancel
Save