A Twitter bot that interprets Brainfuck code. Twitter account is @bf_interpreter. Hosted on Heroku (Nothing there though since it doesn't have a frontend). Dev's Twitter account is @L3Sota
git clone
npm install
That's it!
You will need to set 5 environment variables related to Twitter:
TWTR_USER_ID
TWTR_C_KEY
TWTR_C_SECRET
TWTR_ACCESS_T_KEY
TWTR_ACCESS_T_SECRET
These can be obtained from either your Twitter account details or from your app details in Twitter Apps. The account should be an account created solely for the bot. _C_
stands for Consumer and _ACCESS_T_
stands for Access Token. Your TWTR_USER_ID
can also be found by taking the numbers in TWTR_ACCESS_T_KEY
up to (but not including) the first hyphen. export
these variables through a .bashrc
, or put them in an environment file to be export
ed when running the server. If you are using Heroku, placing the environment variables in KEY=VALUE
format in a .env
file in the base directory allows heroku local
to automatically load these variables for you.
npm start
will start the server. If you're using Heroku, heroku local
will do the same (and add colorful timestamps and log messages).
npm test
. Tests are run using Mocha.
server.js
(line 195).max_uptime
in bf.js
(line 76).