extracord
v0.0.3
Published
**Welcome to Extracord** <br> Extracord is an easy to use discord api wrapper (IN THE WORKS!) <br> So, here is an example of a simple bot. ```js const Discord = require('extracord') let client = new Discord.Client({token:"my token"}) client.on('read
Downloads
11
Maintainers
Readme
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!