ProgrammingWriting Your First Discord Bot [Tutorial]Posted:

Monument
  • Challenger
Status: Offline
Joined: Mar 13, 20164 Year Member
Posts: 104
Reputation Power: 5
Would recommend downloading visual studio code.

Step 1: Create A Project Folder & Open CMD.
https://gyazo.com/9d32eccd893300d734728b72ae397fd9.png

Step 2: Browse To The Project File & Install Dependencies
cd {PATH TO PROJECT}

https://gyazo.com/b503e953ad50dadf4c7645a5bb8b92b4.png

Now let's install what we need..
npm install nodejs
npm install discord.js
npm install


Step 3: Adding The Bot Code, Open Visual Studio Code
Start off with creating 2 files: index.js, botconfig.json
  • package.json - add this code

https://gyazo.com/8503e148a0574c997f07a40d6b9bf99f.png

  • index.js - add this code

https://gyazo.com/66cd432bb69736a6e5e69da0b65c49e2.png

Step 4: Bug Testing, Let's See If It Works!
Unminimize the CMD window and type:
node index.js


Should start up no problem. If you need help feel free to ask, this is an easy tutorial on a quick bot.

Need hosting for your bot? Just send me a message.


Last edited by Monument ; edited 1 time in total
#2. Posted:
Vlog
  • TTG Natural
Status: Offline
Joined: Mar 18, 20128 Year Member
Posts: 958
Reputation Power: 2649
Great tutorial!
#3. Posted:
Monument
  • Challenger
Status: Offline
Joined: Mar 13, 20164 Year Member
Posts: 104
Reputation Power: 5
Vlog wroteGreat tutorial!


Thank you, I hope people actually use it.
Users browsing this topic: None
Jump to:


RECENT POSTS

HOT TOPICS