A minimalistic Discord bot for Albion Online's killboard.
pip install ao-killboard
docker pull unresolvedexternal/ao-killboard
git clone https://github.com/antze-k/ao-killboard-py
python3 -mpip install -r ao-killboard-py/requirements.txt
Change your working directory to cd ao-killboard-py/src/antze
and run the bot with either of those, depending on your system setup:
python3 ao_killboard.py
python ao_killboard.py
ao_killboard.py
./ao_killboard.py
The documentation will refer to ao_killboard.py
further for simplicity.
Set up three parameters (guild, token and channel) either using environment variables or using command line arguments.
https://albiononline.com/en/killboard/guild/<ID>
)You can always run ao_killboard.py --help
to check the available options.
ao_killboard.py --guild <GUILD-ID> --token <DISCORD-TOKEN> --channel <123456789>
or, to enable debug logging:
ao_killboard.py --guild <GUILD-ID> --token <DISCORD-TOKEN> --channel <123456789> --debug
Replace the
Paste the following into a file with a name like "start-bot.cmd":
@echo off
set AO_KILLBOARD_GUILD=<GUILD-ID>
set AO_KILLBOARD_TOKEN=<DISCORD-TOKEN>
set AO_KILLBOARD_CHANNEL=<123456789>
ao_killboard.py %*
Replace the set AO_KILLBOARD_DEBUG=1
before the last line.
Paste the following into a file with a name like "start-bot.sh":
AO_KILLBOARD_GUILD=<GUILD-ID>
AO_KILLBOARD_TOKEN=<DISCORD-TOKEN>
AO_KILLBOARD_CHANNEL=<123456789>
exec ao_killboard.py "$@"
Replace the chmod +x start-bot.sh
. To enable debug logging, add AO_KILLBOARD_DEBUG=1
before the last line.
docker run --rm -d --env 'AO_KILLBOARD_GUILD=<GUILD-ID>' --env 'AO_KILLBOARD_TOKEN=<DISCORD-TOKEN>' --env 'AO_KILLBOARD_CHANNEL=<123456789>' unresolvedexternal/ao-killboard
or, to enable debug logging:
docker run --rm -d --env 'AO_KILLBOARD_GUILD=<GUILD-ID>' --env 'AO_KILLBOARD_TOKEN=<DISCORD-TOKEN>' --env 'AO_KILLBOARD_CHANNEL=<123456789>' --env 'AO_KILLBOARD_DEBUG=1' unresolvedexternal/ao-killboard
Replace the --name ao-killboard
or any other Docker switches you would prefer.