diff options
| author | Alee <alee14498@gmail.com> | 2018-07-12 22:21:42 -0400 |
|---|---|---|
| committer | Alee <alee14498@gmail.com> | 2018-07-12 22:21:42 -0400 |
| commit | 8b2d76cae12907581e804c749937af856572d328 (patch) | |
| tree | 46b33a5846bbdb30fe74a66c5f266ae9e8747072 /bot.js | |
| parent | 2b2a6bff78f0fba712585f4505cec46c2ce032ef (diff) | |
| download | AstralMod-Improved-8b2d76cae12907581e804c749937af856572d328.tar.gz AstralMod-Improved-8b2d76cae12907581e804c749937af856572d328.tar.bz2 AstralMod-Improved-8b2d76cae12907581e804c749937af856572d328.zip | |
Added quick.db
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -23,8 +23,18 @@ const amVersion = "1.2.0 Beta"; const Discord = require('discord.js'); const api = require('./keys.js'); const fs = require('fs'); +const db = require('quick.db'); const client = new Discord.Client(); +// This is going to be temporary. + +const amGuild = "243022206437687296"; +const logChannel = "318874545593384970"; +const voiceChat = "261302767811952641"; +const suggestionChat = "427495678390960148"; +const jailRole = ""; +const interrogationRole = ""; + var expletiveFilter = false; var doModeration = {}; var panicMode = {}; @@ -50,15 +60,6 @@ var actioningMember = {}; var actionStage = {}; var actionToPerform = {}; -// This is going to be temporary. - -const amGuild = "243022206437687296"; -const logChannel = "318874545593384970"; -const voiceChat = "261302767811952641"; -const suggestionChat = "427495678390960148"; -const jailRole = ""; -const interrogationRole = ""; - var dispatcher; var connection; @@ -345,7 +346,7 @@ function handleSuggest(message) { var channel; if (state.guild == amGuild) { //APHC - channel = client.channels.get("308499752993947649"); + channel = client.channels.get(suggestionChat); } else if (state.guild == 297057036292849680) { //ALA channel = client.channels.get("308547573382250497"); } @@ -526,6 +527,7 @@ client.on('ready', () => { }); */ //Get all messages in #suggestions + db.createWebview('password', 3000); client.channels.get(suggestionChat).fetchMessages({ limit: 100 }); |
