From c85bb3ef4538a7ae76cb5e11892f6ccc78b67eef Mon Sep 17 00:00:00 2001 From: ION606 <58801387+ION606@users.noreply.github.com> Date: Sun, 23 Oct 2022 18:38:07 -0400 Subject: [PATCH] Added the "roles" section to the database --- main.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index d22bc3f..1180a49 100644 --- a/main.js +++ b/main.js @@ -277,7 +277,8 @@ bot.on("guildCreate", guild => { bot.mongoconnection.then(client => { const dbo = client.db(guild.id).collection('SETUP'); - dbo.insertMany([{_id: 'WELCOME', 'welcomechannel': null, 'welcomemessage': null, 'welcomebanner': null}, {_id: 'LOG', 'keepLogs': false, 'logchannel': null, 'severity': 0}, {_id: 'announcement', channel: null, role: null}]); + dbo.insertMany([{_id: 'WELCOME', 'welcomechannel': null, 'welcomemessage': null, 'welcomebanner': null}, {_id: 'LOG', 'keepLogs': false, 'logchannel': null, 'severity': 0}, + {_id: 'announcement', channel: null, role: null}, {_id: 'roles', commands: ["Selmer Bot Commands"], announcements: "Selmer Bot Calendar"}]); }); }); @@ -402,4 +403,4 @@ bot.on('messageCreate', (message) => { //#endregion //Last Line(s) -bot.login(token); \ No newline at end of file +bot.login(token);