Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed moduleAPI

  • Loading branch information...
commit 5b01254b84ff61fbe976695dbb3efa28bf9a26bb 1 parent 76bc46a
maneulyori authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 bot.js
4 bot.js
@@ -156,8 +156,8 @@ client.messageCallback(function(message) {
156 156 if(((processedMessage.args[1] || '').startsWith(config.commandPrefix)) || (processedMessage.args[1] || '').startsWith('!'))
157 157 {
158 158 processedMessage.isCommand = true;
159   - processedMessage.args[1] = (message.args[1] || '').substring(config.commandPrefix.length, (message.args[1] || '').length);
160   - processedMessage.splitedMessage = processedMessage.args[1].split(" ");
  159 + processedMessage.command = (message.args[1] || '').substring(config.commandPrefix.length, (message.args[1] || '').length);
  160 + processedMessage.splitedMessage = processedMessage.command.split(" ");
161 161 processedMessage.moduleCommand = processedMessage.splitedMessage[0];
162 162 }
163 163 }

0 comments on commit 5b01254

Please sign in to comment.
Something went wrong with that request. Please try again.