Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

Commit e215499

Browse files
committed
Fixing RT exclusion bug
1 parent 581d62a commit e215499

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bot.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function listen(T) {
5656

5757
function checkHashtag(tweet) {
5858
var matches = tweet.text.toLowerCase().match(/#crimeisdown/);
59-
if (matches) {
59+
if (matches && tweet.text.toLowerCase().indexOf("spotnewsonig")==-1 && tweet.user.screen_name.toLowerCase()!=="spotnewsonig") {
6060
T.post('statuses/retweet/:id', { id: tweet.id_str }, function (err, data, response) {
6161
if (err) console.error(err);
6262
// console.log(data);

0 commit comments

Comments
 (0)