3.0 public beta 3

This commit is contained in:
DJj123dj
2022-10-01 12:08:42 +02:00
parent 893a7c5b1f
commit 69b669956e
12 changed files with 34 additions and 23 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ const log = bot.errorLog.log
const l = bot.language
const APIEvents = require("../core/api/modules/events")
const DISABLE = require("../core/api/api.json").disable
module.exports = () => {
bot.errorLog.log("debug","COMMANDS: loaded help.js")
@@ -22,7 +23,7 @@ module.exports = () => {
var otherprefix = prefix.endsWith(" ") ? prefix.substring(0,prefix.length-1) : prefix
client.on("messageCreate",msg => {
if (!DISABLE.commands.text.help) client.on("messageCreate",msg => {
if (!msg.content.startsWith(config.prefix)) return
var args = msg.content.split(config.prefix)
@@ -42,7 +43,7 @@ module.exports = () => {
}
})
client.on("interactionCreate",(interaction) => {
if (!DISABLE.commands.slash.help) client.on("interactionCreate",(interaction) => {
if (!interaction.isChatInputCommand()) return
if (interaction.commandName != "help") return