Mastodon bot to send congratulations to people when added to a thread.
  • C++ 78.4%
  • M4 16.8%
  • Makefile 3.8%
  • Shell 1%
Find a file
Caoimhe Chaos b8a43d1173 Add a tool to query Mastodon user profiles using the API.
The tool also pretty-prints the JSON output, which can be very useful
for development.
2022-12-10 00:51:49 +01:00
.gitignore Add a tool to query Mastodon user profiles using the API. 2022-12-10 00:51:49 +01:00
autogen.sh Add automake configuration. 2022-12-09 05:19:50 +01:00
config.proto Add a simple congratbot implementation. 2022-12-09 05:04:16 +01:00
configure.ac Add automake configuration. 2022-12-09 05:19:50 +01:00
example.conf Add example configuration file for others to use. 2022-12-10 00:51:49 +01:00
LICENSE Initial commit 2022-12-09 05:02:51 +01:00
main.cc Add a simple congratbot implementation. 2022-12-09 05:04:16 +01:00
Makefile.am Add a tool to query Mastodon user profiles using the API. 2022-12-10 00:51:49 +01:00
query_profile.cc Add a tool to query Mastodon user profiles using the API. 2022-12-10 00:51:49 +01:00
README.md Add a bit of information to the README.md file. 2022-12-09 16:37:02 +01:00
todo.md Add a todo list with just one item. 2022-12-09 16:28:09 +01:00

congratbot

Congratulation bot for Mastodon, written in C++.

The congratbot binary can be used to back a bot account on the Fediverse. When mentioned, Congratbot replies to the message where it is mentioned with a congratulatory post according to its configuration.

You can tag it into posts where people are writing about their achievements or projects, and have them properly congratulated by a third party that is not just you.

Config File

The configuration is provided in text protocol buffer format, It contains the following settings:

instance_url (string): the name of the instance that contains the account. For example, example.org.

access_token (string): Mastodon access token the bot uses. This can be found under Development -> Applications in the Mastodon Settings UI of the bot account.

congrat_variants: sub-message containing a list of congratulation strings.

congrat_variants -> congratulation_message (string): option of text to use for replies. A Reply will be picked from this list at random.

Invocation

The command line arguments for the congratbot binary are as follows:

  • -c: followed by the path to the configuration file.