Skip to content

Commit

Permalink
fixed the "startsWith" bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DJj123dj committed Jun 28, 2022
1 parent aab5a9c commit 702f225
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,21 @@ const log = this.errorLog.log
client.on('ready',async () => {
const chalk = await (await import("chalk")).default

if (!process.argv[2]){
console.log(chalk.red("WELCOME TO OPEN TICKET!"))
log("info","open ticket ready",[{key:"version",value:require("./package.json").version},{key:"language",value:config.languagefile}])

console.log(chalk.blue("\n\nlogs:")+"\n============")
if (config.status.enabled){
client.user.setActivity(config.status.text,{type:config.status.type})
}

log("system","bot logged in!")

await client.guilds.cache.find((g) => g.id == config.server_id).members.fetch()
return
}

if (!process.argv[2].startsWith("slash")){
console.log(chalk.red("WELCOME TO OPEN TICKET!"))
log("info","open ticket ready",[{key:"version",value:require("./package.json").version},{key:"language",value:config.languagefile}])
Expand Down

0 comments on commit 702f225

Please sign in to comment.