Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

extracord

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extracord

**Welcome to Extracord** Extracord is an easy to use discord api wrapper (IN THE WORKS!) 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

latest
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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!

Keywords

discord api

FAQs

Package last updated on 28 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts