diff options
| author | Alee <Alee14498@gmail.com> | 2019-10-21 20:31:12 +0000 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-10-21 20:31:12 +0000 |
| commit | 452bede9036af8db1b25f8c21939e22626db380a (patch) | |
| tree | cc93d9cbc6451519b42604297a173320d8ad145c /events/message.js | |
| parent | 352bdfba73f1e52b61f59c30bd4142f1ffe07d65 (diff) | |
| download | PokeBot-452bede9036af8db1b25f8c21939e22626db380a.tar.gz PokeBot-452bede9036af8db1b25f8c21939e22626db380a.tar.bz2 PokeBot-452bede9036af8db1b25f8c21939e22626db380a.zip | |
Prefix is now in a json file and new command
Diffstat (limited to 'events/message.js')
| -rw-r--r-- | events/message.js | 4 |
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; |
