Updated eslintrc and fixed errors in files
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
const { SlashCommandBuilder, PermissionFlagsBits, userMention, EmbedBuilder, ChannelType } = require("discord.js")
|
||||
const { SlashCommandBuilder, PermissionFlagsBits } = require("discord.js")
|
||||
|
||||
module.exports = {
|
||||
name: "admin",
|
||||
@@ -12,18 +12,6 @@ module.exports = {
|
||||
subcommand
|
||||
.setName("reload")
|
||||
.setDescription("Reload the bot."))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("listallverified")
|
||||
.setDescription("List all verified users."))
|
||||
.addSubcommand(subcommand =>
|
||||
subcommand
|
||||
.setName("purgereactions")
|
||||
.setDescription("Purge all reactions from a messages.")
|
||||
.addIntegerOption(option =>
|
||||
option
|
||||
.setName("count")
|
||||
.setDescription("Count of messages to purge reactions from.")))
|
||||
.setDefaultMemberPermissions(PermissionFlagsBits.Administrator)
|
||||
.setDMPermission(false),
|
||||
|
||||
@@ -38,7 +26,7 @@ module.exports = {
|
||||
const { exec } = require("child_process")
|
||||
await interaction.reply({ content: "Reloading...", ephemeral: true })
|
||||
|
||||
exec("pm2 restart 0", async (err, stdout, stderr) => {
|
||||
exec("pm2 restart 0", async (err) => {
|
||||
if (err) {
|
||||
await interaction.reply({ content: "Error while reloading: " + err, ephemeral: true })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user