https://github.com/amaurycarrade/zds-channel-year-progress-bot
Updates the year's progress in a Discord channel
https://github.com/amaurycarrade/zds-channel-year-progress-bot
Last synced: about 1 month ago
JSON representation
Updates the year's progress in a Discord channel
- Host: GitHub
- URL: https://github.com/amaurycarrade/zds-channel-year-progress-bot
- Owner: AmauryCarrade
- Created: 2021-12-27T02:01:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T02:21:10.000Z (about 2 years ago)
- Last Synced: 2025-01-30T18:38:29.434Z (3 months ago)
- Language: Go
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# #covid-19⸴87➔21⸴98
This ~~simple~~ stupid bot updates a Discord channel name to match the current year progress.
Build with `go build`, then:
```
DISCORD_TOKEN=TOKEN DISCORD_CHANNEL_ID=CHANNEL_ID ./discord-channel-year-bot
```The following environment variables are available (can be provided in a `.env` file too):
- `DISCORD_TOKEN`: the Discord bot token (required);
- `DISCORD_CHANNEL_ID`: the channel ID to update (required);
- `DISCORD_CHANNEL_PATTERN`: the channel name pattern, where `{begin}` is replaced by the beginning date year
percentage, and `{end}`, by the end date year percentage (default `covid-{begin}➔{end}`).The beginning date is the one of the beginning of the COVID-19 pandemic.
_Just, don't ask. (This is also a toy project to learn Go, Docker, and some k8s integration.)_