A node based discord bot made to facilitate college life. Works like a calendar (using MongoDB database) with an ability to play music.
Command | Description |
---|---|
$c, $create <PARAMETERS> | Creates new event |
$p, $play <SONG> | Plays music through youtube search |
$l, $ls, $list | Prints list of all events |
- Parameters:
date
,course
,group
,hour
,inf
.date
: takes date in YYYY/MM/DD format.hour
: takes time in 24h format.- Example:
$c date: 2022/02/01 course: Applied Mathematics group: YB-01 hour: 10:15 inf: Bring your own calculator
- Node.js, NPM
- Create a discord bot and generate a Token
- Setup a MongoDB cluster
- Create a new file inside a main directory
.env
- Replace
yourToken
with a generated bot Token,yourMongodb
with a MongoDB driver link
TOKEN=yourToken
MONGODB_SRV=mongodb+srv://<username>:<password>@discordbot.uts0r.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
$skip Skips currently playing song
$search Prints list of the most relevant songs
$del, $delete, $remove <EVENTID> Deletes an event matching ID
$h, $help Prints help information
$disconnect, $leave Disconnects bot from a voice channel