https://github.com/linuskay/ctftime-bot
https://github.com/linuskay/ctftime-bot
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/linuskay/ctftime-bot
- Owner: LinusKay
- Created: 2024-03-18T05:43:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T11:04:33.000Z (over 2 years ago)
- Last Synced: 2025-04-03T20:30:52.226Z (about 1 year ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CTFTime Event Discord Bot
A simple Discord bot to call details for upcoming CTFs.
Data relies on the work of the CTFTime community, and is in no way intended to replace the website itself.
## Setup
* Clone this repository `git clone https://github.com/LinusKay/ctftime-bot`
* Install required packages `npm i`
* [Create a Discord bot application](https://discordjs.guide/preparations/setting-up-a-bot-application.html#creating-your-bot) and invite it to your server
* Create a `config.json` in the project root directory, swapping in your details where required
```
{
"token": "DISCORD BOT TOKEN",
"clientId": "DISCORD BOT APPLICATION ID",
"guildId": "DISCORD SERVER ID"
}
```
* run `node .`
## Commands
### upcoming {startdate} {enddate} {results}
View upcoming CTF events. By default will display events in the next 7 days, limited to 10 results. With command arguments you can search any time period, but results will be limited to 25 due to Embed size limits.
### eventinfo {eventid}
View details for a specific event. Event IDs are displayed in results for the upcoming command
For wider data ranges I highly recommend checking out the API yourself: https://ctftime.org/api/