Merge branch 'dev' into 'main'
Last bug fix hopefully See merge request illegitimate/illegitimate-bot!40
This commit is contained in:
@@ -37,12 +37,14 @@ module.exports = {
|
|||||||
|
|
||||||
if (!settingsData) {
|
if (!settingsData) {
|
||||||
|
|
||||||
await settings.create({
|
const newSetting = new settings({
|
||||||
_id: mongoose.Types.ObjectId(),
|
_id: new mongoose.Types.ObjectId(),
|
||||||
name: setting,
|
name: setting,
|
||||||
value: value
|
value: value
|
||||||
});
|
});
|
||||||
|
|
||||||
|
await newSetting.save();
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
description: "Successfully created `" + setting + "` with value `" + value + "`.",
|
description: "Successfully created `" + setting + "` with value `" + value + "`.",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
const { REST, Routes } = require('discord.js');
|
const { REST, Routes } = require('discord.js');
|
||||||
const env = require('dotenv').config();
|
const env = require('dotenv').config();
|
||||||
const token = process.env.TOKEN;
|
const token = process.env.DEVTOKEN;
|
||||||
const clientId = process.env.DEVID;
|
const clientId = process.env.DEVID;
|
||||||
const guildId = process.env.GUILDID;
|
const guildId = process.env.GUILDID;
|
||||||
|
|
||||||
@@ -9,7 +9,7 @@ const commands = [];
|
|||||||
// const commandFiles = fs.readdirSync('./commands-testing').filter(file => file.endsWith('.js'));
|
// const commandFiles = fs.readdirSync('./commands-testing').filter(file => file.endsWith('.js'));
|
||||||
|
|
||||||
const commandFiles = [
|
const commandFiles = [
|
||||||
'./commands/config.js',
|
"../commands/config.js"
|
||||||
]
|
]
|
||||||
|
|
||||||
// Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment
|
// Grab the SlashCommandBuilder#toJSON() output of each command's data for deployment
|
||||||
|
|||||||
Reference in New Issue
Block a user