License bot adds a comment to Reddit submissions that link to any Github repository which doesn't contain a license file.
Create a .env
file in the root project directory, based off of the .env.example
file.
// Required on OSX >=10.11
brew install openssl
export OPENSSL_INCLUDE_DIR="$(brew --prefix openssl)/include"
export OPENSSL_LIB_DIR="$(brew --prefix openssl)/lib"
cargo build
// First be sure to complete the setup above
cargo run
- Create a new Heroku app
- Install the
Heroku Scheduler
add-on - Add Heroku as a git remote
heroku git:remote -a license-bot
- Tell Heroku to use the Rust buildpack
heroku buildpacks:set https://github.com/emk/heroku-buildpack-rust.git
- Push to the Heroku repo
git push heroku master
- Setup the environment variables on Heroku
- Setup the heroku scheduler to run
./target/release/license-bot
- Test run the bot with
heroku run ./target/release/license-bot
- Resouces
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.