extracord
0.0.3 • Public • Published Welcome to Extracord
Extracord is an easy to use discord api wrapper (IN THE WORKS!)
So, here is an example of a simple bot.
const Discord = require('extracord')
let client = new Discord.Client({token:"my token"})
client.on('ready',()=>{
console.log(`I'm not online!`)
})
client.on('message',async(msg)=>{
if(msg.author.bot) return;
if(message.content.toLowerCase()=="!ping"){
client.makeMessage(msg.channel.id,"Pong!")
}
})
So when you run !ping, it would reply with Pong!
I hope this helps you!
Package Sidebar
Install
Weekly Downloads