soupbot is a soup-recommending bot for Mastodon.
Go to file
tastytea 75a86a9df5
error checking
2018-01-23 20:40:14 +01:00
src error checking 2018-01-23 20:40:14 +01:00
.gitignore initial commit 2018-01-22 03:01:32 +01:00
CMakeLists.txt error checking 2018-01-23 20:40:14 +01:00
LICENSE initial commit 2018-01-22 03:01:32 +01:00
README.md error checking 2018-01-23 20:40:14 +01:00
ingredients.json more fruits 2018-01-23 17:13:57 +01:00

README.md

soupbot is a soup-recommending bot for Mastodon.

Install

Dependencies

  • Tested OS: Linux
  • C++ compiler (tested: gcc 6.4)
  • cmake (tested: 3.9.6)
  • boost (tested: 1.63.0)
  • mastodon-cpp (at least: 0.1.5)

Get sourcecode

Development version

git clone https://github.com/tastytea/soupbot-cpp.git

Compile

mkdir build
cd build/
cmake ..
make

cmake options:

  • -DCMAKE_BUILD_TYPE=Debug for a debug build

Install with make install.

Usage

Copy ingredients.json to ~/.config/soupbot/ingredients.json.

You will need a pre-generated authentication code.

Error codes

Code Explanation
0 No error
1 Invalid call
2 Not implemented
16 Connection failed
17 TLS error
18 Invalid response from server
32 File not readable
100 - 999 HTTP status codes
65535 Unknown exception

If you use a debug build, you get more verbose error messages.

Copyright

Copyright © 2018 tastytea <tastytea@tastytea.de>.
License GPLv3: GNU GPL version 3 <https://www.gnu.org/licenses/gpl-3.0.html>.
This program comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to redistribute it under certain conditions.