Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/larsyngvelundin/aoc-discord-leaderboard
https://github.com/larsyngvelundin/aoc-discord-leaderboard
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/larsyngvelundin/aoc-discord-leaderboard
- Owner: larsyngvelundin
- License: gpl-2.0
- Created: 2023-12-02T14:32:26.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-03T12:09:19.000Z (11 months ago)
- Last Synced: 2023-12-03T13:25:20.547Z (11 months ago)
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AoC Discord Leaderboard
A Discord bot that fetches a private leaderboard from Advent of Code and shows in the form of Discord channels. Updates every 15 minutes.
![Screenshot of how the bot looks in action.](img/channels.png)
The sorting is currently only based on the amount of stars, and tie-breakers are not implemented. And the overall code is not very good, but it does what we needed at the moment.
## Requirements:
### To install:
```
pip install discord
pip install requests
pip install python-decouple
```
### Discord server
The voice channels used by this bot needs to be created manually. The IDs for the channels then need to be added to the .env file### .env file:
```
session_cookie=SESSION_COOKIE
url=LEADERBOARD_JSON_URL
discord_token=DISCORD_TOKEN
discord_guild=GUILD_ID
discord_channel1=CHANNEL_ID
discord_channel2=CHANNEL_ID
discord_channel3=CHANNEL_ID
```
### Bot Permissions
Bot needs enough permissions on your Discord server to edit the names of the channels in question### To run
`python main.py`