afk-cord
v1.0.2
Published
Easy,Understandable AFK System Module Using Discord.js!
Downloads
17
Readme
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