Files
open-ticket/index.js
T
DJj123dj 1fb8ece6ff v1.1.2
Fixed: Status can be "playing highmt", this is now fixed. you can also choose status now
2021-11-20 13:32:50 +01:00

28 lines
866 B
JavaScript

const discord = require('discord.js')
const config = require('./config.json')
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})
})
var storage = require('./storage/storage')
exports.TicketStorage = storage.ticketStorage
exports.userTicketStorage = storage.userTicketStorage
exports.transcriptStorage = storage.transcriptStorage
exports.ticketNumberStorage = storage.ticketNumberStorage
var ticket = require('./commands/ticket')
ticket()
var ticketSystem = require('./commands/ticketSystem')
ticketSystem()
var ticketExtra = require("./commands/ticketExtra")
ticketExtra()
client.login(config.auth_token)