Added comment to dump command
This commit is contained in:
@@ -2,7 +2,26 @@ import {openticket, api, utilities} from "../../index"
|
|||||||
import * as discord from "discord.js"
|
import * as discord from "discord.js"
|
||||||
import * as fs from "fs"
|
import * as fs from "fs"
|
||||||
|
|
||||||
|
|
||||||
|
/** WHAT IS THIS??
|
||||||
|
* This is the '!OPENTICKET:dump' command.
|
||||||
|
* It's a utility command which can only be used by the creator of Open Ticket or the owner of the bot.
|
||||||
|
* This command will send the `otdebug.txt` file in DM. It's not dangerous as the `otdebug.txt` file doesn't contain any sensitive data (only logs).
|
||||||
|
*
|
||||||
|
* WHY DOES IT EXIST??
|
||||||
|
* This command can be used to quickly get the `otdebug.txt` file without having access to the hosting
|
||||||
|
* in case you're helping someone with setting up (or debugging) Open Ticket.
|
||||||
|
*
|
||||||
|
* CAN I DISABLE IT??
|
||||||
|
* If you want to turn it off, you can always do it below this message!
|
||||||
|
*/
|
||||||
|
|
||||||
|
///////// DISABLE DUMP COMMAND /////////
|
||||||
|
const disableDumpCommand = false
|
||||||
|
////////////////////////////////////////
|
||||||
|
|
||||||
export const loadDumpCommand = () => {
|
export const loadDumpCommand = () => {
|
||||||
|
if (disableDumpCommand) return
|
||||||
openticket.client.textCommands.add(new api.ODTextCommand("openticket:dump",{
|
openticket.client.textCommands.add(new api.ODTextCommand("openticket:dump",{
|
||||||
allowBots:false,
|
allowBots:false,
|
||||||
guildPermission:true,
|
guildPermission:true,
|
||||||
|
|||||||
Reference in New Issue
Block a user