This is a javascript app built with Node.js, and all of the app code is in the src directory.
The app starts in bot.js, and it polls the Reddit servers in an infinite loop. The app has two major components:
converter.js and conversion_helper.js are responsible for converting imperial units to metric units. See documentation to add a conversion
personality/index.js create sassy responses to certain trigger words.
For changes not related to networking, running tests is often enough. But if you want to see the bot hitting the Reddit servers:
script
app through your reddit preferences. (Use http://localhost
as your redirect url, we don't need it.)./private/environment.yaml
that looks like sample-environment.yamlnode --version
is >= v6.2.1npm install
node ./src/bot.js
Note: You can run the bot in development mode (which won't POST requests to reddit servers) by changing the dev-mode
environment variable to true
You do not need to create a reddit app to run the tests, you can use the sample-environment.yaml default values.
run npm test
Note: To run a single spec, add .only
Feel free to drop by the subreddit or open a github issue
See Contributing Guideline and Code of Conduct
First time getting involved in Open Source Software? Welcome, and we hope you stick around! See New to OSS guide
Thanks goes to these wonderful people who have contributed (emoji key):
See the Contributor Introductions thread to learn more about the people who help make this project happen!
This project follows the all-contributors specification. Contributions of any kind welcome!
This source is distributed under GNU GPLv3