Skip to content

v2.0.1

Compare
Choose a tag to compare
@colcrunch colcrunch released this 13 Feb 10:22
· 44 commits to master since this release

Patch with minor fixes

Fixes

  • Threat command now accounts for the event that someone has not lost or has not destroyed anything in the current month.
  • Fixes to setup command/launcher.py

Installation

Major Dependencies

  • python3.6
    • f-strings are not supported on earlier versions.
  • discord.py 1.0.0a0 (rewrite)
    • This branch is not technically production yet. To install it python3 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite
  • aiohttp
  • requests
  • python-memcached (and a memcache server)

Bot

Firstly, the bot does not ship with a copy of the Static Data Export. Secondly, the config file has to be copied and edited.

You will need to copy config.py.example in utils to config.py and fill it out.

Using the setup command python3 launcher.py setup will download the SDE and make the log directory.
(In the future I might allow editing the config file through launcher commands.)

If the SDE is out of date, and you need to update it, run python3 launcher.py update and the launcher will fetch and unzip the SDE for you.

Config

  • addons this is where you list all the addons you would like to use.
    • Default is []
    • Add 'extensions.extension', where extension is one of the extensions listed in the extensions directory.
    • Recommended minimum extensions are 'extensions.AdminCommands', and 'extensions.BotCommands'
  • token is your bot token from the discord site.
  • prefix is the symbol that will come before all your commands.
    • Default is /
  • msg this is the message that you would like to see in the bot's "playing" status.
    • Default is ''.
    • This can also be set after the bot has been started with the /presence command by the bot owner.
  • app is the name of your bot. (include a link to your github if you made any changes.)
    • Default is ''
  • contact is your contact information to be sent in HTTP headers to CCP and zKillboard in case something goes wrong and they need to contact you.
    • Default is ''
    • Good options are discord tag, tweetfleet slack id, email, and eve name.
  • logginglevel is the level of information to log.
    • Default is 'DEBUG'
    • Options are CRITICAL, ERROR, WARNING, INFO, and DEBUG
  • kill_channel is the channel to post the kills into.
    • Default is ''. When set remove the ''
  • kill_ids is the list of ids to watch for.
    • Default is {'alliance_id': [], 'corporation_id': [], 'character_id': [], 'ship_type_id': []}
    • Example {'alliance_id': ['12345', '12234'], 'corporation_id': [], 'character_id': [], 'ship_type_id': []}