casablanca

0.0.9 • Public • Published

CASABLANCA

NEW IN THE UPDATE

  • 1 added readme.md file

  • 2 fixed the error


how to use the package:

//calling the required stuff
const discord = require("disocrd.js")
const client = new discord.Client()
const config = require("./config.js")
const cas = require("casablanca")
client.db = require("old-wio.db")
//making the onready function
client.on("ready", () => {
    console.log("loading all the commands and logging in")
    setTimeout(() => {
console.clear()
console.log(`logged into: ${client.user.tag}`)
console.log(" ")
console.log("ALL THE COMMANDS ARE LOADED")
    }, 500)
})
//making a person varible for the package
var person;
//makign an message function for commands
client.on("message", async message => {
    let guild = message.guild
    let prefix = client.db.fetch(`Prefix_${guild.id}`)
    if (prefix === null) prefix = config.Prefix
    let args = message.content.slice(prefix.length).trim().split(/ +/g)
    let cmd = args.shift()
    if (cmd === "pluto") {
        person = cas.People.Pluto.tag
        message.channel.send(person)
    }
})
//logging in with the bot's token
client.login(config.Token)

OTHER FUNCTIONS

  • Damon [tag, username, id]

  • Puto [tag, username, id]

  • Shaw [tag, username, id]


MORE FUNCTIONS COMING SOON

Readme

Keywords

none

Package Sidebar

Install

npm i casablanca

Weekly Downloads

0

Version

0.0.9

License

ISC

Unpacked Size

2.23 kB

Total Files

4

Last publish

Collaborators

  • ytygrunn1ngark456