aboutsummaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js22
1 files changed, 12 insertions, 10 deletions
diff --git a/bot.js b/bot.js
index e468617..e5edb5f 100644
--- a/bot.js
+++ b/bot.js
@@ -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
});