dpb587 / theloopyewe-elfbot

A bot for the elves' workstations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A bot for the elves' workstations. You probably won't find this very useful. If we can improve here, let us know!

Learn more about the background of this project from this post.

Requirements

A recent version of PHP. If you're on an outdated OS X system, you can try installing Liip's PHP package:

$ curl -s http://php-osx.liip.ch/install.sh | bash -s 5.5

If you are working from source, you will need composer:

$ curl -sS https://getcomposer.org/installer | php

If you are creating releases, you will need jq and bumpversion.

Configuration

Configure the endpoints, queue, and tasks in a JSON file. Get started from the etc/example.json file.

Installation

Deploy

# download the PHAR from the latest release
$ open https://github.com/theloopyewe/elfbot/releases/latest
$ chmod +x ~/Applications/elfbot.phar

# run it
$ ~/Applications/elfbot.phar -vvv \
  --config="${HOME}/Library/Preferences/com.theloopyewe.elfbot.default.json" \
  run

# or install and start it as a launchd agent
$ ~/Applications/elfbot.phar -vvv \
  --config="${HOME}/Library/Preferences/com.theloopyewe.elfbot.default.json" \
  install-launchd \
  --start \
  --executable=/usr/local/php5-5.5.5-20131020-222726/bin/php \
  com.theloopyewe.elfbot.default

Development

$ git clone git@github.com:theloopyewe/elfbot.git
$ cd elfbot/
$ composer.phar install
$ ./bin/console -vvv --config=etc/dev.json work

Release

# write some release notes
$ vim release.md

# publish
$ ./bin/build-publish patch release.md

# cleanup
$ rm release.md

License

MIT License

About

A bot for the elves' workstations.

License:MIT License


Languages

Language:PHP 93.6%Language:Shell 3.7%Language:AppleScript 2.7%