2018-01-22 05:04:40 +01:00
|
|
|
**soupbot** is a soup-recommending bot for Mastodon.
|
2018-01-22 03:01:32 +01:00
|
|
|
|
|
|
|
# Install
|
|
|
|
|
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
* Tested OS: Linux
|
2019-04-21 16:42:28 +02:00
|
|
|
* C++ compiler (tested: gcc 8)
|
|
|
|
* [cmake](https://cmake.org/) (tested: 3.9)
|
|
|
|
* [boost](http://www.boost.org/) (tested: 1.65)
|
|
|
|
* [mastodon-cpp](https://schlomp.space/tastytea/mastodon-cpp) (at least: 0.105.0)
|
2018-01-22 03:01:32 +01:00
|
|
|
|
|
|
|
## Get sourcecode
|
|
|
|
|
|
|
|
### Development version
|
|
|
|
|
2019-04-21 16:42:28 +02:00
|
|
|
``` shellsession
|
|
|
|
git clone https://schlomp.space/tastytea/soupbot.git
|
|
|
|
```
|
2018-01-22 03:01:32 +01:00
|
|
|
|
|
|
|
## Compile
|
|
|
|
|
2019-04-21 16:42:28 +02:00
|
|
|
``` shellsession
|
|
|
|
mkdir build
|
|
|
|
cd build/
|
|
|
|
cmake ..
|
|
|
|
make
|
|
|
|
```
|
2018-01-22 03:01:32 +01:00
|
|
|
|
|
|
|
cmake options:
|
|
|
|
|
|
|
|
* `-DCMAKE_BUILD_TYPE=Debug` for a debug build
|
|
|
|
|
|
|
|
Install with `make install`.
|
|
|
|
|
|
|
|
# Usage
|
|
|
|
|
|
|
|
Copy `ingredients.json` to `~/.config/soupbot/ingredients.json`.
|
|
|
|
|
2018-01-22 05:04:40 +01:00
|
|
|
You will need a pre-generated authentication code.
|
|
|
|
|
2018-01-22 03:01:32 +01:00
|
|
|
## Error codes
|
|
|
|
|
2019-04-21 16:42:28 +02:00
|
|
|
Same as
|
|
|
|
[mastodon-cpp](https://schlomp.space/tastytea/mastodon-cpp/src/branch/master/README.md#error-codes),
|
|
|
|
plus:
|
2018-02-28 22:47:29 +01:00
|
|
|
|
2018-01-22 03:01:32 +01:00
|
|
|
| Code | Explanation |
|
|
|
|
| --------: |:------------------------------|
|
2018-02-28 22:47:29 +01:00
|
|
|
| 1 | File not readable |
|
2018-01-22 03:01:32 +01:00
|
|
|
|
|
|
|
# Copyright
|
|
|
|
|
2019-04-21 16:42:28 +02:00
|
|
|
``` text
|
|
|
|
Copyright © 2018, 2019 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.
|
|
|
|
```
|