CryptoDrink is a Discord bot which implements a local scoreboard for CryptoHack.
- Announces when a server member solves a challenge
- Displays statistics about a CryptoHack user
- Local scoreboard for your server
- List who solved a challenge in your server
First, you need to create your own Discord bot. The bot will need permissions to read messages, send messages and include embeds. It will also need the Message Intent.
Clone the repository using git
git clone https://github.com/PoustouFlan/Crypto-Drink.git
cd Crypto-Drink
Then, complete the file configuration.yaml
:
token: "Your.Bot.Token-Here"
guild_id: 123456789012345678
channel_id: 1234567890123456789
locale: "en"
token
should be your Discord Bot tokenguild_id
should be the id of your Discord serverchannel_id
should be the id of the channel where the flags are announcedlocale
should be your prefered language (currently available are"en"
and"fr"
).
You can simply run the bot using:
nix-shell --run make
You need to install the necessary Python packages using pip.
Assuming you have python3
and pip
installed, you can run
pip install -r requirements.txt
to install the necessary packages, then run
make
to start the bot.