A discord bot that downloads updates from presence.io sites
- Install Bun
NodeJS can also be used, but Bun is faster and better
- Run
bun install
in the project directory - Either set the
TOKEN
environment variable manually or create a.env
file withTOKEN
set to your Discord bot token - Run
bun start --reload-commands
to register the Discord slash commands and start the bot
For future runs with the same token, use
bun start
to avoid getting rate limited by Discord
- Run
/enable
in the channel you would like events to be posted in to enable the scheduler, it will download events from presence every Sunday at 10 AM PST, and it will post events starting in the next 7 days. The number of events it posts is limited to 25. Religious and Greek life events are filtered out to prevent spam.
You can also run the /fetch
command to manually fetch all events occurring in the next 7 days and post them. Note, with this method you might run into some duplicate events the next time the scheduler is run.
If you would like to turn off the automatic posting, simply run /disable