Skip to content

kelvin0179/Crio-IBD-ExamReminderBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Exam Reminder Bot

  • A Discord Bot which alerts user when an exam is close by , User can also post , edit and delete Exam Schedules.

Video Tutorial Link Here

Built With

Getting Started

These instructions will get your copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have Node or npm installed on your machine.

Bring to your local machine

git clone <git repo>

How To Use

Step 1.

  • Go to DeveloperDiscord to create an application.
  • image
  • Go inside your app and then goto BOT on the sidebar settings.
  • Then copy the BOT Token and paste it in the config.env.
DISCORDJS_BOT_TOKEN=<Your Token Goes here>

Step 2.

  • Then go to oauth2 in the settings and copy the clientID.
  • Open a new Tab and on the address bar type https://discord.com/oauth2/authorize?client_id=<Your ClientID goes here>&scope=bot
  • Then you will see something like this.
  • image
  • Note : You can only include your bot in servers where you have permission to do so.
  • This concludes the addition of the Bot.

Step 3.

Install dependencies

$ npm install

Set up environment variables

$ cd config

fill the values for environment variables in config.env.

MONGO_URI = 
PORT = <Your Custom Port>
BASE_URL = http://localhost:<Your Custom Port>

Local Run

After setting up environment proceed with local run

$ npm start

Your should see this.

2

File System

.
├── config 
│             ├── config.env
│             ├── db.js
├── models                        
│             ├── quiz.js
├── routes                        
│             ├── route.js
├── src                        
│             ├── bot.js
│             ├── scheduler.js
├── index.js
├── package.json
├── package-lock.json
├── README.md

Deployment

Heroku Deployment

$ heroku login -i
$ heroku git:remote -a <your-app-name>
$ git push heroku master

Set up environment variables

$ heroku config:set ENV_VAR=<value>

Screen Shots

Say hello to the Bot!

1

In the Bot's Description $help command is provided so that any new user can access the Bot easily.

2

The help command.

3

The post command according to help.

4

The get command according to help.

5

The delete command according to help.

6

The get after deleting.

7

Alert on the upcoming quiz

image