Carp Bot - chat bot for retroshare, written in php.
-
Rename "config.php.default" to "config.php";
-
Start retroshare with an active webserver. To start nogui version with a web api:
$ retroshare-nogui --webinterface 9090 -i 127.0.0.1 --http-allow-all
Highly recomended to start retroshare node and carpbot in a screens:
$ screen -S retroshare
$ retroshare-nogui --webinterface 9090 -i 127.0.0.1 --http-allow-all
For more information read "man screen".
- Change these constants in the "config.php":
- RS_HOST
- RS_PORT
- BOT_GXS_ID
-
If you want to save history after SIGINT, set "SAVE_CHAT_HISTORY" to (bool) true, and change the log path in "SAVE_CHAT_HISTORY_FILENAME";
-
Start chat bot:
$ screen -S carpbot
$ cd ~/[bot_dir]
$ php carpbot.php "config.php"
Where "config.php" is the absolute/relative path to the config file.