Killbot v2.0 (rewrite)
Major rewrite of the bot.
New Features
- Extensions - Allows you to load and unload extensions, creating a modular experience.
- This includes commands to enable and disable extensions on the fly. (Currently only available to the user that "owns" the bot)
- Caching - ESI requests are now cached to increase speed and reduce bandwidth use.
- New and Improved Embeds! - No more guessing what the alien emoji means. All commands have embeds laid out in a way that makes the information you are looking for easy to find.
- Link Parsing - When a user posts an evemarketer link or zkillboard link (currently supported zkill links include kills and characters) the bot will check relevant APIs and return an embed packed with information from the linked content.
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
- This branch is not technically production yet. To install it
- 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.
Do git pull
before setup to get a minor bug fix so you can use the setup command.
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'
- Default is
token
is your bot token from the discord site.prefix
is the symbol that will come before all your commands.- Default is
/
- 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.
- Default is
app
is the name of your bot. (include a link to your github if you made any changes.)- Default is
''
- 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.
- Default is
logginglevel
is the level of information to log.- Default is
'DEBUG'
- Options are
CRITICAL
,ERROR
,WARNING
,INFO
, andDEBUG
- Default is
kill_channel
is the channel to post the kills into.- Default is
''
. When set remove the''
- Default is
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': []}
- Default is