Skip to content

Commit e3732d4

Browse files
committed
Removed all hardcoded IDs
1 parent 7ffb466 commit e3732d4

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

utils/config.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,10 @@
33
"serverVersion": "2.4",
44

55
"logChannelID": "699320187664728177",
6-
"statisticsChannelID": "691936892458893342"
6+
"statisticsChannelID": "691936892458893342",
7+
"countingChannelID": "789855163393376276",
8+
"suggestionChannelID": "677616731468070921",
9+
10+
"trueEmojiID": "704740848314613960",
11+
"falseEmojiID": "692069337854378026"
712
}

utils/onmsg.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const moment = require("moment");
44
const Profile = require("../models/profile");
55
const Incident = require("../models/incident");
66
const Count = require("../models/count");
7-
const { logChannelID } = require("../utils/config.json");
7+
const { logChannelID, countingChannelID, suggestionChannelID, trueEmojiID, falseEmojiID } = require("../utils/config.json");
88

99
let cooldown = new Set();
1010

@@ -69,14 +69,14 @@ module.exports.run = async (client, message, args, color) => {
6969

7070
//---------------------------Suggestions channel------------------------------//
7171

72-
if (message.channel.id == "677616731468070921") {
73-
await message.react("704740848314613960");
74-
return await message.react("692069337854378026");
72+
if (message.channel.id == suggestionChannelID) {
73+
await message.react(trueEmojiID);
74+
return await message.react(falseEmojiID);
7575
}
7676

7777
//---------------------------Counting------------------------------//
7878

79-
if (message.channel.id == "789855163393376276") {
79+
if (message.channel.id == countingChannelID) {
8080

8181
let lm = await message.channel.messages.fetch({ limit: 2 });
8282
lm = lm.last()

0 commit comments

Comments
 (0)