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
+8 -9
View File
@@ -7,16 +7,15 @@ const config = require("../config.json")
module.exports = () => {
client.on("messageCreate",(msg) => {
var args = msg.content.split(" ")
if (args[0] == config.prefix+"resetdatabase"){
if (msg.author.id == client.application.owner.id){
const databaseEmbed = new discord.MessageEmbed()
.setColor(config.main_color)
.setTitle("How to reset the database:")
.setDescription("1: Go to the folder `./storage` in your bot's directory.\n\n2: If posible remove the folders\n`./tickets`, `./transcripts` & `./userTickets`\nfrom the folder `./storage`\n\n3: Restart the bot")
.setFooter({text:"if it doesn't work, create an issue on github or DM me on discord!"})
if (args[0] == config.prefix+"resetdatabase" || args[0] == config.prefix+"resetdb"){
const databaseEmbed = new discord.MessageEmbed()
.setColor(config.main_color)
.setTitle("How to reset the database:")
.setDescription("1: Go to the folder `./storage` in your bot's directory.\n\n2: If posible remove the folders\n`./tickets`, `./transcripts` & `./userTickets`\nfrom the folder `./storage`\n\n3: Restart the bot")
.setFooter({text:"if it doesn't work, create an issue on github or DM me on discord!"})
msg.channel.send({embeds:[databaseEmbed]})
}
msg.channel.send({embeds:[databaseEmbed]})
if (config.logs){console.log("[command] "+config.prefix+"resetdatabase (user:"+msg.author.username+")")}
}
})
}