Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/0xAX/Ybot into webadmin_auth
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrk committed Mar 17, 2014
2 parents 20a6d73 + b7247dc commit fd1d2e2
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 7 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ After getting source you need to download dependencies and build the source:
./rebar get-deps && ./rebar compile
```

Then edit the `ybot.config` configuration file and you can run your Ybot copy:
Rename configration template `ybot.config.template` to `ybot.config` and edit configuration file and you can run your Ybot copy:

Start Ybot node:
```
./start.sh
./bin/start.sh
```

Connect to Ybot node console:
```
./bin/console.sh
```

Run on heroku
Expand Down
3 changes: 3 additions & 0 deletions bin/console.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

erl -remsh ybot@$(hostname) -sname ybot_$RANDOM@$(hostname)
22 changes: 22 additions & 0 deletions bin/start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash

SKYPE_PID=$(ps x | grep 'skype.py' | awk '/python/' | awk '{print $1}')
if [ -n "$SKYPE_PID" ]; then
kill $SKYPE_PID
fi

if [ -f "ybot.config" ]
then
cp ybot.config ebin/
else
echo "Unable to find ybot.config file!"
exit 1
fi

erl -pa deps/*/ebin plugins/*/ebin ebin \
-boot start_sasl +P 2000000 \
-sname ybot@$(hostname) \
-s ybot \
-config ybot \
-noshell \
-detached
5 changes: 0 additions & 5 deletions start.sh

This file was deleted.

File renamed without changes.

0 comments on commit fd1d2e2

Please sign in to comment.