Skip to content

mdaimda/carpbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Retroshare chat bot

Carp Bot - chat bot for retroshare, written in php.

Getting Started

  1. Rename "config.php.default" to "config.php";

  2. 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".

  1. Change these constants in the "config.php":
  • RS_HOST
  • RS_PORT
  • BOT_GXS_ID
  1. 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";

  2. 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.

About

Chat bot for RetroShare

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages