Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var Twit = require("twit");
var T = new Twit({
consumer_key: "####",
consumer_secret: "####",
access_token: "####",
access_token_secret: "####",
});
var stream = T.stream("statuses/filter", {
track: ["hey invite", "hey code", "#hey", "hey.com"],
});
console.log("hunter bot started");
stream.on("tweet", function (tweet) {
bingoTweet = tweet.text.match(/\b[A-z0-9]{7}\b/g);
console.log(tweet.text);
if (bingoTweet != null) {
console.log("🔥 " + bingoTweet + "\n");
}
console.log("");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.