0.0.9 • Published 3 years ago

casablanca v0.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

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


MORE FUNCTIONS COMING SOON

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago