Author: Mark De Guzman (mark-p7)
Discord Bot Name: EventPrompt
Event Prompt is a Discord bot that allows users to send timed notifications to alert themselves of future events. Useful for birthdays, important meetings, doctor appointments or anything you want to be reminded of in the future.
To run your bot with this code, please do the following:
First install node.js ver 16.6.0 or higher
Install Discord.js: npm install discord.js
Install Firebase: npm install --save firebase-admin
Go to Firebase console > Create a project > Go to service account under project settings > copy paste node.js code then generate private key and save it as firebase.json
Create a config.json file with the code below pasted in:
{ "token": "<your-token-goes-here>" }
You can get your token from creating a discord bot here > https://discord.com/developers/applications
Just click 'bot' under the settings tab and copy the token from there
!commands : prints a list of commands
!setevent : creates an event with an AUTO-GENERATED ID
!seteventdate <yyyy/mm/dd> : sets a date for an event
!seteventrecurrence <T/F> : sets event to recurre every year if set True else delete event once passed
!eventgetall : gets all events on the server
!eventgetbyid : gets event by ID
- Javascript
- Node.js
- Discord.js
- Firebase Cloud Firestore