Remove @JavaScriptBot from commands' responses

This commit is contained in:
Mahdi Dibaiee
2015-07-04 20:03:21 +04:30
parent 4223613c16
commit 06bcc25801
2 changed files with 2 additions and 1 deletions

View File

@ -144,6 +144,7 @@ export default class Bot extends EventEmitter {
// Commands are sent in /command@thisusername format in groups
const regex = new RegExp(`@${this.info.username}$`);
text = text.replace(regex, '');
res.message.text = text;
}
let ev = this._userEvents.find(({pattern}) => pattern.test(text));