Fruit Machine Mastodon Bot
Source code for the very silly bot deployed at @email@example.com.
As configured, the fruit machine symbols are set to use the fabulous Mutant Standard, an alternative emoji set with great principles, and a highly readable and all around lovely design language.
Check the official website for the license of the emoji.
- Python 3.6.
The bot's behaviour can be configured through
Then to generate a Fruit Machine locally:
$ ./bin/fruitmachine -o <path_for_image>
The standard output will show a status and image description.
Posting to Mastodon
To post to Mastodon, you need to set up the client by one of two ways:
- Set the
FRUITMACHINE_ACCESS_TOKENenvironment variables with the values given on the Settings > Development > Your application interface of your Mastodon instance;
- Create two text files,
data/user_cred.secret. The first file should have the "Client ID" in the first line, and the "Client Secret" in second line; the second file needs to have the "Access Token" in the first line.
Then just use:
and a fruit machine will be posted to the account. You can use the
to print "debug" data, and the post's visibility will be set to
only the account posting will be able to see it.
The code is licensed under an ISC license. Check
Check Mutant Standard's homepage for the emoji's license.
The Fruit Machine graphics are licensed under a Creative Commons Attribution 4.0 International License.