Skip to content

This is a Discord BOT that can perform simple task and has a database to store user information.

License

Notifications You must be signed in to change notification settings

dakshsethi/MARK-BOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MARK-BOT

This is Disocord MARK BOT which provides the users with some basic built-in functionalities or discord commands. Click here to add the BOT to your various discord servers.

Head over to the Discord BOT Link, there you need to select a server from your account and then click on Authorize. Then you will see the MARK-I (current version) is added to your discord server. The BOT will be initially offline in the server like this:

MARK-I BOT OFFLINE

This is because currently the BOT is not deployed on any platform, so it will not work as soon as you add it to your server. To make the BOT come online, we need to follow certain steps first:

  1. Eitherd download my code or firstly Fork my Repo and open up a terminal and type the following command
  git clone https://github.com/dakshsethi/MARK-BOT.git
  cd MARK-BOT
  npm install
  1. Now the BOT is successfully installed in your local computer but still if you type npm start this returns an error in your terminal (node:10108) UnhandledPromiseRejectionWarning: Error [TOKEN_INVALID]: An invalid token was provided.
    This error because in the last line of the index.js file a NodeJs environment variable has been used as the Discord Login Token by the name process.env.DISCORD_TOKEN as this a secret token so that's why i have used the environment varibale to hide it.

  2. To make the BOT come online we need to first create a BOT in our own disocrd portal. Head over to Discord Developer's Portal. Click on New Application now enter your application name and click on Create.

  3. Now a General Information page of your application will open. Now on the sidebar click on BOT.

  4. Go to Build-A-Bot and click on Add Bot button, now click on Yes, do it!. Now you will see a Build-A-Bot section like this: Build-A-Bot Click on Copy to copy your DISCORD TOKEN.

  5. Replace process.env.DISCORD_TOKEN in your index.js file with this copied token.

  6. Now again open up your terminal and simply run npm start, and now your BOT is finally online in your discord server and is ready to reply to your commands. NOTE: Everytime you terminate from the node command, the BOT will go offline so need you need to keep the file running in the background.

Currently the Bot supports only one command i.e., -todo but it has 3 additional features in this.

-todo Description
-todo show This displays the ToDo list for the current date.
-todo show DD-MM-YYYY This displays the ToDo list for any specified date. The format of the date here is very important.
-todo add "Message" Use this command to add any item to the current ToDo list.

About

This is a Discord BOT that can perform simple task and has a database to store user information.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published