update/add logs and update prefix

This commit is contained in:
SowinskiBraeden committed 2022-03-08 13:27:23 -08:00
1 parent 0495577b3c
commit 2c1d15cfc4
9 files changed
+228 -31

No files matched your search

+7 -4
View File
@@ -12,7 +12,7 @@ module.exports = {
aliases: ["stat", "statistics", "info"],
/**
*
* @param {import("../LPS")} client
* @param {require("../structures/LinesPoliceCadBot")} client
* @param {import("discord.js").Message} message
* @param {string[]} args
* @param {*} param3
@@ -30,12 +30,15 @@ module.exports = {
SlashCommand: {
/**
*
* @param {import("../LPS")} client
* @param {require("../structures/LinesPoliceCadBot")} client
* @param {import("discord.js").Message} message
* @param {string[]} args
* @param {*} param3
*/
run: async (client, interaction) => {
run: async (client, interaction, args, { GuildDB }) => {
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send(`You are not allowed to use the bot in this channel.`);
}
const { version } = require("discord.js");
const stats = new MessageEmbed()
.setColor('#0099ff')
@@ -44,7 +47,7 @@ module.exports = {
.addField(" \u200B ", "**Channels** : ` " + `${client.channels.cache.size}` + " `")
.addField(" \u200B ", "**Servers** : ` " + `${client.guilds.cache.size}` + " `")
.addField(" \u200B ", "**Users** : ` " + `${client.users.cache.size}` + " `")
return message.channel.send(stats)
interaction.send(stats)
},
},
};