afk-cord

1.0.2 • Public • Published

What Is AFK-CORD?

AFK-CORD Is An Npm Package That Allows You To Make AFK System Easily!

How To Use AFK-CORD?

const Discord = require("discord.js")
const client = new Discord.Client()
const afk = require("afk-cord")
const afkcord = new afk("quick.db/wio.db") // You Have 2 Choices For Database!(wio.db Uses JSON,quick.db Uses SQLITE)
client.on("ready",async()=>{
console.log("Im Ready!")
})
client.on("message",async(msg)=>{
if(msg.content === "!afk") {
let reason = blabla // somehow define the reason(like args etc)
afkcord.options({notafkmsg:"You Are Not AFK Anymore!",afkmsg:"You Are AFK Now!"}) // notafkmsg = The Message The Bot Will Send When The User Is Not AFK Anymore!,afkmsg = The Message That Bot Will Send When AFK Command Is Used! 
afkcord.afk(client,msg.author.id,reason,msg.channel.id)
msg.channel.send("You Are AFK Now!")
}
}
client.login("token")

Contact Me

Instagram:slavsponge

Discord:Crypton#0001

Package Sidebar

Install

npm i afk-cord

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

3.59 kB

Total Files

6

Last publish

Collaborators

  • npmeska
  • freakthedev