Erlang Irc bot
Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
config
.gitignore
Makefile
Procfile
README.md
rebar
rebar.config
relcool
relcool.config

README.md

Mmmbot

Setup

Modify ./config/sys.config.

[ 
  {mmmbot, [{host, "<IRC HOST>"},
            {port, <IRC PORT>},
            {nickname, "mmmbot"},
            {channel, "<CHANNEL>"}]},

  {mmmbot_images, [{access_key, "<AWS KEY>"},
                   {secret_key, "<SECRET KEY>"},
                   {bucket, "<S3 BUCKET>"}]},
                   
  {lager, [
           {handlers, [
                        {lager_console_backend, info}
                      ]}
          ]}
   ]}
].

Build and Run

λ make rel
λ _rel/bin/mmmbot
.......

1> mmmbot_images:start().
ok

Run on Heroku

Update your ./config/sys.config file as usual and commit that change.

λ git add ./config/sys.config
λ git commit -m "update sys.config"
λ heroku create --buildpack https://github.com/tsloughter/heroku-buildpack-erlang.git
λ git push heroku master
λ heroku scale bot=1