aboutsummaryrefslogtreecommitdiff
path: root/events
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-10-21 20:31:12 +0000
committerAlee <Alee14498@gmail.com>2019-10-21 20:31:12 +0000
commit452bede9036af8db1b25f8c21939e22626db380a (patch)
treecc93d9cbc6451519b42604297a173320d8ad145c /events
parent352bdfba73f1e52b61f59c30bd4142f1ffe07d65 (diff)
downloadPokeBot-452bede9036af8db1b25f8c21939e22626db380a.tar.gz
PokeBot-452bede9036af8db1b25f8c21939e22626db380a.tar.bz2
PokeBot-452bede9036af8db1b25f8c21939e22626db380a.zip
Prefix is now in a json file and new command
Diffstat (limited to 'events')
-rw-r--r--events/message.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/events/message.js b/events/message.js
index 238d95e..d485ed3 100644
--- a/events/message.js
+++ b/events/message.js
@@ -27,8 +27,8 @@ module.exports = (bot, msg) => {
function parseCommand(bot, msg) {
let category;
-
- const prefix = 'p:';
+ const settings = require("../assets/settings.json");
+ const prefix = settings.prefix;
if (msg.author.bot) return;
if (!msg.content.startsWith(prefix)) return;