Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
img
lib
public
spec
views
.codeclimate.yml
.coveralls.yml
.env.example
.foreman
.gitignore
.rspec
.rubocop.yml
.ruby-version
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
app.json
app.rb
config.ru
wercker.yml

README.md

cure-mastodon-bots

Precure mastodon bot

wercker status Coverage Status

Setup

bundle install
cp .env.example .env
vi .env

Run

bundle exec foreman s

open http://localhost:3000/

Heroku

Setup

heroku config:set MASTODON_URL=https://precure.ml
heroku config:set RACK_ENV=production
heroku config:set ACCESS_TOKEN_SAMPLE=xxxxxxxxx
heroku config:set ACCESS_TOKEN_BIRTHDAY=xxxxxxxxx
heroku config:set ACCESS_TOKEN_ON_AIR=xxxxxxxxx
heroku config:add ROLLBAR_ACCESS_TOKEN=xxxxxxxxx

Scheduler

Register rake tasks to Heroku Scheduler

Heroku Scheduler

tasks

  • bundle exec rake bot:birthday
  • bundle exec rake bot:on_air
  • bundle exec rake bot:today_on_air

Deploy to Heroku

Deploy