diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-07-19 18:56:43 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-07-19 18:56:43 -0400 |
| commit | a59d2baa959f1113b2e0efe4bbca13fbe427da1f (patch) | |
| tree | a9a82a689735480eba6bf125fa82fef6c7c5799b | |
| parent | 28387d269223fc43483ab3e94c7fc730985b4326 (diff) | |
| download | DLAP-a59d2baa959f1113b2e0efe4bbca13fbe427da1f.tar.gz DLAP-a59d2baa959f1113b2e0efe4bbca13fbe427da1f.tar.bz2 DLAP-a59d2baa959f1113b2e0efe4bbca13fbe427da1f.zip | |
added args
| -rw-r--r-- | bot.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
