Skip to content

Push BYCEPS ticket sale stats to Discord (as channel name)

License

Notifications You must be signed in to change notification settings

byceps/push-byceps-stats-to-discord

Repository files navigation

Push BYCEPS Ticket Sale Stats to Discord

A tool to fetch ticket sale stats for a specific LAN party from a BYCEPS installation and show that as the name of a channel on Discord.

A Discord voice channel can be used for this purpose. After removing the relevant access permissions for non-admin server users, it cannot be joined and a lock is shown as its icon. This turns it into a small text display.

The API of the BYCEPS installation has to be enabled and an API token has to be configured and made available for the client.

If an interval is configured, the tool runs contiuously; otherwise it exits after one channel update.

Usage

Create a configuration file based off of config_example.toml.

Run the program, pointing to it:

$ push-byceps-stats-to-discord --config config.toml

Docker

Both a Dockerfile and a compose.yaml are included to support running the applicaation with Docker and Docker Compose.

Be sure to provide a configuration file named config.toml (and configure an interval) to avoid issues.

License

This application is licensed under the MIT license.