debug management
This commit is contained in:
22 files changed
+100
-24
No files matched your search
@@ -1,7 +1,8 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "add-monet",
|
||||
name: "add-money",
|
||||
debug: false,
|
||||
description: "change the starting balance for the server",
|
||||
usage: "[user] [amount]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed, Guild } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "bal",
|
||||
debug: false,
|
||||
description: "View balance",
|
||||
usage: "[user]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "deposit",
|
||||
debug: false,
|
||||
description: "deposit cash to your balance",
|
||||
usage: "[amount]",
|
||||
permissions: {
|
||||
|
||||
@@ -3,6 +3,7 @@ const Inventory = require('../structures/inventory');
|
||||
|
||||
module.exports = {
|
||||
name: "give",
|
||||
debug: false,
|
||||
description: "give user an amount of cash",
|
||||
usage: "[amount]",
|
||||
permissions: {
|
||||
|
||||
+4
-1
@@ -2,6 +2,7 @@ const { MessageEmbed } = require("discord.js");
|
||||
|
||||
module.exports = {
|
||||
name: "help",
|
||||
debug: false,
|
||||
description: "Get information on a specific command",
|
||||
usage: "[command]",
|
||||
permissions: {
|
||||
@@ -30,7 +31,9 @@ module.exports = {
|
||||
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
|
||||
return interaction.send(`You are not allowed to use the bot in this channel.`);
|
||||
}
|
||||
let Commands = client.commands.map((cmd) =>
|
||||
let Commands = client.commands.filter((cmd) => {
|
||||
return !cmd.debug
|
||||
}).map((cmd) =>
|
||||
`\`/${cmd.name}${cmd.usage ? " " + cmd.usage : ""}\` - ${cmd.description}`
|
||||
);
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "id-set",
|
||||
debug: false,
|
||||
description: "set a value on your wallet ID",
|
||||
usage: "[firstname/lastname/dob] [value]",
|
||||
permissions: {
|
||||
|
||||
@@ -4,6 +4,7 @@ const action = ['pick up', 'grab', 'get', 'aquire', 'obtain', 'gain', 'take poss
|
||||
|
||||
module.exports = {
|
||||
name: "inventory-add",
|
||||
debug: false,
|
||||
description: "add item to inventory",
|
||||
usage: "[item]",
|
||||
permissions: {
|
||||
|
||||
@@ -5,6 +5,7 @@ const action = ['ditch', 'drop', 'forget', 'throw out', 'leave', 'set down', 'le
|
||||
|
||||
module.exports = {
|
||||
name: "inventory",
|
||||
debug: false,
|
||||
description: "Manage your inventory",
|
||||
usage: "[command]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "me",
|
||||
debug: false,
|
||||
description: "Send a message stating your characters action",
|
||||
usage: "[action]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "ping",
|
||||
debug: true,
|
||||
description: "Test bot activity",
|
||||
usage: "",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed, MessageActionRow, MessageButton } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "remove-channel",
|
||||
debug: false,
|
||||
description: "Remove channel",
|
||||
usage: "[channel type]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed, Guild } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "remove-income",
|
||||
debug: false,
|
||||
description: "remove an income role",
|
||||
usage: "[role] [amount daily]",
|
||||
permissions: {
|
||||
|
||||
@@ -3,6 +3,7 @@ const Inventory = require('../structures/inventory');
|
||||
|
||||
module.exports = {
|
||||
name: "search",
|
||||
debug: false,
|
||||
description: "Search a users inventory",
|
||||
usage: "[user]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "set-channel",
|
||||
debug: false,
|
||||
description: "set a channel",
|
||||
usage: "[channel type] [channel]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed, Guild } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "set-income",
|
||||
debug: false,
|
||||
description: "set a role to recieve income when working",
|
||||
usage: "[role] [amount daily]",
|
||||
permissions: {
|
||||
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "set-starting-balance",
|
||||
debug: false,
|
||||
description: "change the starting balance for the server",
|
||||
usage: "[amount]",
|
||||
permissions: {
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "stats",
|
||||
debug: true,
|
||||
description: "check bot statistics",
|
||||
usage: "",
|
||||
permissions: {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: [],
|
||||
},
|
||||
SlashCommand: {
|
||||
options: [],
|
||||
/**
|
||||
*
|
||||
* @param {require("../structures/QuarksBot")} client
|
||||
* @param {import("discord.js").MessageCreate} message
|
||||
* @param {string[]} args
|
||||
* @param {*} param3
|
||||
*/
|
||||
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 data = `
|
||||
\`\`\`
|
||||
*******************************
|
||||
* Channels *${client.padding(client.channels.cache.size)}*
|
||||
*******************************
|
||||
* Servers *${client.padding(client.guilds.cache.size)}*
|
||||
*******************************
|
||||
* Users *${client.padding(client.users.cache.size)}
|
||||
* *****************************
|
||||
\`\`\`
|
||||
`
|
||||
|
||||
const stats = new MessageEmbed()
|
||||
.setColor(client.config.EmbedColor)
|
||||
.setTitle('Statistics')
|
||||
.setDescription(data)
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -2,6 +2,7 @@ const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "tweet",
|
||||
debug: false,
|
||||
description: "Tweet your thoughts to the local twitter page",
|
||||
usage: "[message]",
|
||||
permissions: {
|
||||
|
||||
@@ -3,6 +3,7 @@ const inventory = require('./inventory');
|
||||
|
||||
module.exports = {
|
||||
name: "withdraw",
|
||||
debug: false,
|
||||
description: "withdraw cash from balance",
|
||||
usage: "[amount]",
|
||||
permissions: {
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
const { MessageEmbed } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
name: "work",
|
||||
debug: false,
|
||||
description: "work to earn your income",
|
||||
usage: "",
|
||||
permissions: {
|
||||
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
|
||||
member: [],
|
||||
},
|
||||
SlashCommand: {
|
||||
options: [],
|
||||
/**
|
||||
*
|
||||
* @param {require("../structures/QuarksBot")} client
|
||||
* @param {import("discord.js").MessageCreate} message
|
||||
* @param {string[]} args
|
||||
* @param {*} param3
|
||||
*/
|
||||
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.`);
|
||||
}
|
||||
|
||||
console.log(interaction.member)
|
||||
return interaction.send('Debugging...')
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in new issue
Block a user