This is the first stable version of open-ticket 1.3
This commit is contained in:
DJj123dj
2022-04-02 16:38:00 +02:00
parent 8cab4cc686
commit 6df23d84bc
11 changed files with 319 additions and 57 deletions
+9 -3
View File
@@ -4,9 +4,15 @@ const intents = discord.Intents
const client = new discord.Client({intents:[intents.FLAGS.GUILDS,intents.FLAGS.GUILD_MESSAGES,intents.FLAGS.GUILD_MEMBERS]})
exports.client = client
client.on('ready',() => {
console.log('ready')
client.user.setActivity(config.status.text,{type:config.status.type})
require("./checker")()
client.on('ready',async () => {
const chalk = await (await import("chalk")).default
console.log(chalk.green("open-ticket ready!"))
if (config.logs){chalk.white("\n\nlogs:\n============")}
if (config.status.enabled){
client.user.setActivity(config.status.text,{type:config.status.type})
}
})
var storage = require('./storage/storage')