aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-07-19 18:56:43 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-07-19 18:56:43 -0400
commita59d2baa959f1113b2e0efe4bbca13fbe427da1f (patch)
treea9a82a689735480eba6bf125fa82fef6c7c5799b
parent28387d269223fc43483ab3e94c7fc730985b4326 (diff)
downloadDLAP-a59d2baa959f1113b2e0efe4bbca13fbe427da1f.tar.gz
DLAP-a59d2baa959f1113b2e0efe4bbca13fbe427da1f.tar.bz2
DLAP-a59d2baa959f1113b2e0efe4bbca13fbe427da1f.zip
added args
-rw-r--r--bot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index d17421e..9c11699 100644
--- a/bot.js
+++ b/bot.js
@@ -19,7 +19,6 @@ function playAudio() {
console.log("Successfully connected to this channel.");
connection.play('./music/4616-werq-by-kevin-macleod.mp3');
}).catch(e => {
- // Oh no, it errored! Let's log it to console :)
console.error(e);
});
}
@@ -33,6 +32,7 @@ client.on('ready', () => {
client.on('message', async msg => {
if (!['242775871059001344'].includes(msg.author.id)) return;
+ const args = msg.content.slice(prefix.length).trim().split(/ +/g);
if (!msg.guild) return;
if (msg.author.bot) return;
if (!msg.content.startsWith(prefix)) return;