Skip to content

Commit

Permalink
EVILBOT
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 16, 2010
1 parent 1cf0880 commit ea475c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
@@ -1 +1 @@
right?
Evil, or just misunderstood?
8 changes: 4 additions & 4 deletions conavore.coffee → evilbot.coffee
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Hello, and welcome to Conavore.
# Hello, and welcome to Evilbot.
#
# Some of this is stolen from Hubot.
# Some of this is not.
Expand All @@ -23,9 +23,9 @@ env = process.env
# robot brain
#

ua = 'conavore 1.0'
username = env.CONAVORE_USERNAME
password = env.CONAVORE_PASSWORD
ua = 'evilbot 1.0'
username = env.EVILBOT_USERNAME
password = env.EVILBOT_PASSWORD

request = (method, path, body, callback) ->
if match = path.match(/^(https?):\/\/([^/]+?)(\/.+)/)
Expand Down
6 changes: 3 additions & 3 deletions start.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
# poor man's reloader.
# re-starts conavore when it dies of an error.
# re-starts evilbot when he dies of an error.

until /usr/bin/env coffee conavore.coffee; do
echo "conavore crashed with exit code $?. respawning.." >&2
until /usr/bin/env coffee evilbot.coffee; do
echo "evilbot crashed with exit code $?. respawning.." >&2
sleep 1
done

0 comments on commit ea475c3

Please sign in to comment.