Tutorial: Building a Discord bot with Node.js
GarethDwyer1 (277)

Hey all,

This is the Node.js version of my tutorial on building Discord chatbot's (the other version is in Python). I'm watching the comments here and at codementor, so shout if you have any questions!


You are viewing a single comment. View All
Albxyiscool (0)

How do i make a command

GarethDwyer1 (277)

@Albxyiscool just check if the input starts with an exclamation mark or however you want to run your commands. e.g.

if(message.charAt(0) == '!') { // logic for your command }