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:
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:
- 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
-
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 theindex.js
file a NodeJs environment variable has been used as the Discord Login Token by the nameprocess.env.DISCORD_TOKEN
as this a secret token so that's why i have used the environment varibale to hide it. -
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. -
Now a General Information page of your application will open. Now on the sidebar click on BOT.
-
Go to
Build-A-Bot
and click on Add Bot button, now click onYes, do it!
. Now you will see a Build-A-Bot section like this: Click on Copy to copy your DISCORD TOKEN. -
Replace
process.env.DISCORD_TOKEN
in your index.js file with this copied token. -
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. |