Fixed message size
This commit is contained in:
parent
b3a70dde59
commit
d88df331f1
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -43,6 +43,8 @@ stream.on("tweet", function(tweet) {
|
|||
if(tweet.user.screen_name === config.get("bot.handle").substring(1)) return;
|
||||
let msg = checkTrunc(tweet);
|
||||
msg = msg.slice(msg.indexOf(config.get("bot.handle"))).split(" ");
|
||||
msg = msg.filter(a => a !== config.get("bot.handle"));
|
||||
msg.unshift(config.get("bot.handle"));
|
||||
if (msg.length >= 2) checkTweet(tweet, msg);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue