v2.4.0 push 5 (almost the last one)

This commit is contained in:
DJj123dj
2022-07-29 19:41:25 +02:00
parent a69f2ee5a1
commit 210923d29e
18 changed files with 218 additions and 13 deletions
+5
View File
@@ -5,6 +5,8 @@ const config = bot.config
const log = bot.errorLog.log
const l = bot.language
const APIEvents = require("../core/api/modules/events")
module.exports = () => {
const helpEmbed = new discord.EmbedBuilder()
.setColor(config.main_color)
@@ -24,6 +26,7 @@ module.exports = () => {
if (!args[1]){
msg.channel.send({embeds:[helpEmbed]})
log("command","someone used the 'help' command",[{key:"user",value:msg.author.tag}])
APIEvents.onCommand("help",true,msg.author,msg.channel,msg.guild,new Date())
return
}
@@ -31,6 +34,7 @@ module.exports = () => {
msg.channel.send({embeds:[helpEmbed]})
log("command","someone used the 'help' command",[{key:"user",value:msg.author.tag}])
APIEvents.onCommand("help",true,msg.author,msg.channel,msg.guild,new Date())
}
})
@@ -40,5 +44,6 @@ module.exports = () => {
interaction.reply({embeds:[helpEmbed]})
log("command","someone used the 'help' command",[{key:"user",value:interaction.user.tag}])
APIEvents.onCommand("help",true,interaction.user,interaction.channel,interaction.guild,new Date())
})
}