Skip to main content

A Telegram Bot that gives a random quote of Age of Empires 2 original edition

Project description

aoe2-telegram-bot

Age Of Empires II Telegram Bot: give a random quote of Age of Empires 2 original edition

Contact the bot on telegram

Installation

Install python package from PyPI

python3 -m pip install aoe2-telegram-bot

Or from source

git clone https://github.com/PercevalSA/aoe2-telegram-bot
cd aoe2-telegram-bot
python3 -m pip install .

Set an environment file with your telegram bot token as TGB_TOKEN

mkdir -p $HOME/.config/aoe2-telegram-bot
echo 'TGB_TOKEN=xxxx' >$HOME/.config/aoe2-telegram-bot/env

running

When started for the first time the bot will download sounds from internet and store them in the package folder. When you start the bot manually you will need to export the token as environment variable or set it in the environment file in $HOME/.config/aoe2-telegram-bot/env

export TGB_TOKEN=xxxx

or create config directory and add token

mkdir -p ~/.config/aoe2-telegram-bot
echo 'TGB_TOKEN=your_token_here' > ~/.config/aoe2-telegram-bot/env

Then just run

aoe2-telegram-bot

If you need the bot to run as a service you can use the provided systemd service file generated by the bootstrap command

aoe2-telegram-bot-bootstrap
sudo cp aoe2-telegram-bot.service /etc/systemd/system/aoe2-telegram-bot.service
sudo systemctl daemon-reload
sudo systemctl enable aoe2-telegram-bot
sudo systemctl start aoe2-telegram-bot

Installed sounds

  • taunt.zip are french taunt in mp3 format. There are 42 taunts in total.
    • their name are composed of a 2 padded number (like 02 or 15), a space and the name
  • civilization.zip are all specific civilization start sounds in mp3 format
    • their name is a single word starting with a capital letter
  • sound.zip are all in game sounds (building, generic units...) in wav format
    • their name is full lowercase and can have a number only at the end (e.g. multiples sounds for the same thing)

How to get sounds

to get sound checks your steam files in $HOME/.steam/steam/steamapps/common/AoE2DE/wwise/ and get pck files.

Get the softwares

You need to extract .pck that contains .bnk files that contain wem files that you need to convert to wav or ogg.

If you build wwisexmabank or xmash on mondern Linux add $(CC) $^ -o $@ $(LDFLAGS) on line 10 in Makefile.common

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

aoe2_telegram_bot-0.2.2.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

aoe2_telegram_bot-0.2.2-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file aoe2_telegram_bot-0.2.2.tar.gz.

File metadata

  • Download URL: aoe2_telegram_bot-0.2.2.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aoe2_telegram_bot-0.2.2.tar.gz
Algorithm Hash digest
SHA256 992b5a14a198ed3094ba9f4e7d1646c22b58f671c1970fd29351cbd8bb9ae03c
MD5 79ae4b05c1d8e01291d9743cb48be8a7
BLAKE2b-256 4f25774e88bbc09cd62e7c1c7190d5d9f7a5e51ad1b8ab7a176cfc38adb2032e

See more details on using hashes here.

Provenance

The following attestation bundles were made for aoe2_telegram_bot-0.2.2.tar.gz:

Publisher: python.yml on PercevalSA/aoe2-telegram-bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aoe2_telegram_bot-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for aoe2_telegram_bot-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c9569ce859c9a6427f3e110fd735c4076844b9cfb4ccadb263dda7bd617bf605
MD5 0ca36494b278a5b360fc65a0717c9da3
BLAKE2b-256 3f3f72d1afb278b1e35cfaa465b6396f73167fbd8bc375f89bd2af33e8e75e26

See more details on using hashes here.

Provenance

The following attestation bundles were made for aoe2_telegram_bot-0.2.2-py3-none-any.whl:

Publisher: python.yml on PercevalSA/aoe2-telegram-bot

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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