Ejemplo 1: cómo codificar un bot de discordia en javascript
/* Okay So
1. You need to know the basics of Discord.js (learn on yt)
2. Go to dev portal (https://discord.com/developers/applications) Make a bot
Invite to your server
3. Start coding the bot in Discord.js
4. Host the bot somewhere like repl.it
5. You're done / Implement the bot
*/
Ejemplo 2: código de inicio de discord.js
const Discord = require('discord.js') //this says that its using discord.js and classifing it as a bot
const bot = new Discord.Client();
const token = 'put your bots token here!';
//link to the dev portal to make your own discord bot here: https://discord.com/developers/applications
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)