Skip to content

dariusk/latourswag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#LatourSwag

This bot mixes quotes from renowned sociologist Bruno Latour with the last 100 results for the Twitter search "#swag and".

The code in latourswag.js is pretty extensively commented, so hopefully it answers all your questions about how it oworks.

NOTE: this is the source code to an earlier version of @latourswag than what lives at the official @LatourSwag twitter account. I hope to update this soon with the newer version, but I had this one sitting around with the code already commented all nice and pretty.

##Instructions

Requires node and npm (installing node installs npm too). You also need a Twitter App access token, consumer key, and associated secrets. You can get those here. You'll probably also want a fresh twitter account for your bot, though you could have it post to one you already own, too!

Clone the repo, then in your project directory, install the dependencies:

$ npm install

Next, edit config.js to include your Twitter App access token, consumer key, and associated secrets. This is important! Without this you'll be unable to tweet.

$ node latourswag.js

This will give you some output, including, after a bit, a bunch of text that is the tweet that's just been tweeted. You can check the twitter account to see if it's updated to verify that it actually works.

About

Bruno Latour + #swag = Twitter bot!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published