https://github.com/distrobyte/calendarbot
A Discord Bot that sends a daily notification of your DCU timetable
https://github.com/distrobyte/calendarbot
Last synced: 3 months ago
JSON representation
A Discord Bot that sends a daily notification of your DCU timetable
- Host: GitHub
- URL: https://github.com/distrobyte/calendarbot
- Owner: DistroByte
- Created: 2022-09-13T09:05:43.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-25T22:01:54.000Z (over 3 years ago)
- Last Synced: 2025-10-20T06:51:24.861Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# calendarbot
## Get started
Fill in `.env` with the variables `BOT_TOKEN`, `APPLICATION_ID` and `GUILD_ID` (optionally, if you want to register guild commands). Then run `register-bot-commands.js`.
## Managing commands
Run `register-bot-commands.js` and it will register everything in `bot-commands.json` (which is filled out with all the commands already). `delete-bot-commands.js` takes every command ID in `command-ids.txt` (separated by whitespace) and unregisters them.
Both programs default to global application commands, which is what you probably want unless you're debugging. Specify `-g` as a commandline argument to switch to registering to (or deleting from) a specific server.
Also, fetch was added to NodeJS in v17.5, so don't use any super old Node installs.