mirror of
https://github.com/thewesker/bug-em.git
synced 2025-12-20 04:01:05 -05:00
lol
This commit is contained in:
11
app.js
11
app.js
@@ -14,12 +14,15 @@ var T = new Twit({
|
||||
|
||||
// filter the public stream by english tweets containing `#apple`
|
||||
//
|
||||
var stream = T.stream('statuses/filter', { follow: '25073877, 1339835893, 179932936, 6160792, 2853461537' })
|
||||
var stream = T.stream('statuses/filter', { follow: '25073877, 1339835893, 179932936, 6160792, 2853461537, 1214598626' })
|
||||
stream.on('tweet', function (tweet) {
|
||||
if (tweet.user.screen_name === 'realDonaldTrump') {
|
||||
var b64content = fs.readFileSync('./pics/trump.gif', { encoding: 'base64' })
|
||||
var trumpmessages = session.object.trumpmessages;
|
||||
if (tweet.user.screen_name === 'AwfulJack') {
|
||||
var trumpmessages = session.object.trump;
|
||||
var randomtrumpmessage = trumpmessages[Math.floor(Math.random() * trumpmessages.length)];
|
||||
var trumpmessage = randomtrumpmessage.pluck('message');
|
||||
var trumpgif = randomtrumpmessage.pluck('gif');
|
||||
var b64content = fs.readFileSync(trumpgif, { encoding: 'base64' })
|
||||
|
||||
|
||||
// first we must post the media to Twitter
|
||||
T.post('media/upload', { media_data: b64content }, function (err, data, response) {
|
||||
|
||||
46
config.json
46
config.json
@@ -1,13 +1,41 @@
|
||||
{
|
||||
"trumpmessages": [
|
||||
"Delete your account.",
|
||||
"Trump smells bad.",
|
||||
"You're gonna lose, cheeto monster!",
|
||||
"HAHAHAHAHAHA",
|
||||
"What a terrible tweet!",
|
||||
"Nope!",
|
||||
"Donald Dump",
|
||||
"Tronald Dump"
|
||||
"trump": [
|
||||
{
|
||||
"message": "Delete your account.",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "Trump smells bad.",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "You're gonna lose, cheeto monster!",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "HAHAHAHAHAHA",
|
||||
"gif": "./pics/trump.gif"
|
||||
{
|
||||
"message": "What a terrible tweet!",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "Nope!",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "Donald Dump",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "Tronald Dump",
|
||||
"gif": "./pics/trump.gif"
|
||||
},
|
||||
{
|
||||
"message": "Shut the FUCK up, Donny"
|
||||
"gif": "./pics/donny.gif"
|
||||
}
|
||||
|
||||
],
|
||||
"hillarymessages": [
|
||||
"Release the Benghazi emails!",
|
||||
|
||||
BIN
pics/donny.gif
Normal file
BIN
pics/donny.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 972 KiB |
Reference in New Issue
Block a user