L3Sota / bf-interpreter

Interprets Brainfuck code (for a Twitter bot)
https://twitter.com/bf_interpreter
MIT License
0 stars 0 forks source link

Build Status

bf-interpreter

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

Installation

  1. Git: git clone
  2. NPM: npm install

That's it!

Environment

You will need to set 5 environment variables related to Twitter:

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 exported 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.

Running

npm start will start the server. If you're using Heroku, heroku local will do the same (and add colorful timestamps and log messages).

Testing

npm test. Tests are run using Mocha.

Quirks