A Discord bot for writing sprints built on node and discordjs. Inspired by Sprinto.
-
Go and do the stuff you need to do on Discord to make a bot and get your bot token and whatnot. Don't forget to invite to your Discord-server!
-
Create a config.json in the root folder that looks like this:
{
"prefix": "<Some prefix, recommended is exclamation mark>",
"token": "<YOUR BOT TOKEN>"
}
-
Run
npm install discord.js
-
Run
node index.js
Make it actually work(It kind of works now)- Add new commands:
!time //Show remaining time
!join same //Join with previous word count
!leave //Leave sprint
- Check how it would work in different channels
- Look into hosting it somewhere.
Command | Effect |
---|---|
!sprint | starts a sprint with default values (20 minutes with 3 minutes buffer time) |
!sprint # | starts a # minute sprint |
!Join # | Joins sprint with # starting words, 0 if # is omitted |
!wc # | Reports new word count when sprint is finished |
!cancel | Cancels sprint that's about to start or is running |
!setdefault # | Sets the default sprinting time to # |
Bonus | Effect |
---|---|
!roll | Rolls a d6 |
!roll d# | Rolls a d# |
!roll #d# | rolls #d#s |