New toy

Joined
Sep 24, 2016
Messages
7,217
Reaction score
21,922
upload_2018-1-6_19-13-2.png


I swear this is my new favourite toy lmao @Strelitzia @M_MyGames16 @Diavent
No not Discord... the bot itself xD
 
To make him I used:

Node.js
Discord.js
Sublime Text 3 (with ESLinter)
Discord

STEPS: The basics you need to start of with is to make sure Discord.js is required to run the bot which would be
Code:
 const = required("Discord.js");
const client = new Discord.Client();

BOT CODE
BOT CODE
BOT CODE

client.login('Insert Bot Token Here');
Where it says bot code is where your bot will manage commands etc. For example if you want your bot to respond to a user when they type a message the bot would reply back saying what you want it to say with the following code below:
Code:
client.on('message', msg => {
  if (msg.content === '') {
  msg.reply('')
  }
});

I use JavaScript to code the bot, still learning to go more in depth with it though. If you don't have Discord.js open up your cmd.exe console as an Administrator and type
Code:
 npm install discord.js --save
This will install the Discord.js directory into the folder you are using to create your bot.
View reply.
 
Last edited:
Congrats on making the digital version of The Watcher :lmao:?
View reply.
 
To make him I used:

Node.js
Discord.js
Sublime Text 3 (with ESLinter)
Discord

STEPS: The basics you need to start of with is to make sure Discord.js is required to run the bot which would be
Code:
 const = required("Discord.js");
const client = new Discord.Client();

BOT CODE
BOT CODE
BOT CODE

client.login('Insert Bot Token Here');
Where it says bot code is where your bot will manage commands etc. For example if you want your bot to respond to a user when they type a message the bot would reply back saying what you want it to say with the following code below:
Code:
client.on('message', msg => {
  if (msg.content === '') {
  msg.reply('')
  }
});

I use JavaScript to code the bot, still learning to go more in depth with it though. If you don't have Discord.js open up your cmd.exe console as an Administrator and type
Code:
 npm install discord.js --save
This will install the Discord.js directory into the folder you are using to create your bot.

That’s so clever :o Wow
View reply.
 

Users Who Are Viewing This Thread (Total: 0, Members: 0, Guests: 0)

Back
Top