Skip to main content

A minimalistic Discord bot for Albion Online's killboard.

Project description

ao_killboard.py

A minimalistic Discord bot for Albion Online's killboard.

Getting Started

Prerequisites

Built with:

Getting the bot via pip

pip install ao-killboard

Getting the bot via Git

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.

Creating a bot account and setting it up for your server (guild)

Configure and run

Set up three parameters (guild, token and channel) either using environment variables or using command line arguments.

  • "guild" is your Albion Online guild identifier (as seen in https://albiononline.com/en/killboard/guild/<ID>)
  • "token" is your bot token obtained in the previous step
  • "channel" is the Discord channel ID the bot will post messages into (check this article if you need to know how to obtain it)

You can always run ao_killboard.py --help to check the available options.

Running the bot manually using command line arguments

ao_killboard.py --guild <GUILD-ID> --token <DISCORD-TOKEN> --channel <123456789> Replace the with their respective values, omitting angle brackets.

Running the bot using environment values and a batch script (Windows)

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_GUILD=<123456789>
ao_killboard.py %*

Replace the with their respective values, omitting angle brackets.

Running the bot using environment values and a shell script (POSIX-like OS)

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_GUILD=<123456789>
exec ao_killboard.py "$@"

Replace the with their respective values, omitting angle brackets. Set the execute bit by running chmod +x start-bot.sh.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ao-killboard-0.1.1.post1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ao_killboard-0.1.1.post1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ao-killboard-0.1.1.post1.tar.gz.

File metadata

  • Download URL: ao-killboard-0.1.1.post1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.2

File hashes

Hashes for ao-killboard-0.1.1.post1.tar.gz
Algorithm Hash digest
SHA256 3239e4d3b69623cc463503e8a51f735fbd5ca117b7b2ab552d6524a6f395dc8a
MD5 8ce8f3c9daad12456570e773fc7d6a62
BLAKE2b-256 4dd65b9cb347c0ed84c57a7279ffad88131f16f52927b399f22c6fa800aedf4e

See more details on using hashes here.

File details

Details for the file ao_killboard-0.1.1.post1-py3-none-any.whl.

File metadata

  • Download URL: ao_killboard-0.1.1.post1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.2

File hashes

Hashes for ao_killboard-0.1.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 f827e273d64422ea6b48225256504a8dc1c55bb9aa653da9e154835da0eb6389
MD5 93eca45557c345aed27fb805b0494c1c
BLAKE2b-256 e3200aaa5492f6d3c829689a5cc8764236ecc3e8f552cb9f7e8732be840bdff7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page