v3.5.4 push 2

This commit is contained in:
DJj123dj
2024-04-04 14:06:48 +02:00
parent 5dfbce1856
commit e80ce1a64a
19 changed files with 299 additions and 146 deletions
+6 -2
View File
@@ -38,7 +38,7 @@
Send ./openticketdebug.txt when there are errors!
*/
/** discord :)*/
const discord = require("discord.js")
const fs = require('fs')
const {GatewayIntentBits,Partials} = discord
@@ -54,7 +54,7 @@ const client = new discord.Client({
partials:[Partials.Channel,Partials.Message]
})
exports.client = client
client.setMaxListeners(100)
client.setMaxListeners(120)
if (process.argv.some((v) => v == "--debug")) console.log("[TEMP_DEBUG]","created client")
//LOAD CONFIG
@@ -161,6 +161,10 @@ client.on('ready',async () => {
if (config.status.enabled){
setStatus(config.status.type,config.status.text)
//refresh status every 10 minutes
setInterval(() => {
setStatus(config.status.type,config.status.text)
},(60*10*1000))
}
this.actionRecorder.push({