
4 changed files with 89 additions and 3 deletions
@ -0,0 +1,16 @@
|
||||
# drop at /etc/systemd/system/mastodon_follow_autorespond_bot.service |
||||
|
||||
[Unit] |
||||
Description=mastodon-follow-autorespond-bot |
||||
After=network.target |
||||
|
||||
[Service] |
||||
Type=simple |
||||
User=mastodon |
||||
WorkingDirectory=/home/mastodon/bot |
||||
ExecStart=/usr/bin/python3 /home/mastodon/bot/toot_bot.py --config /home/mastodon/bot/follow_autorespond_bot.yaml followautorespond |
||||
TimeoutSec=15 |
||||
Restart=always |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
@ -0,0 +1,25 @@
|
||||
# Setup general config for the bot (registered name, instance url, credential cache) |
||||
# This section is REQUIRED |
||||
config: |
||||
app_name: autorespond to new followers |
||||
api_base_url: https://instance.com |
||||
client_cred_file: /home/mastodon/bot/client_cred.secret |
||||
user_cred_file: /home/mastodon/bot/user_cred.secret |
||||
local_only: True #OMIT for non-local too |
||||
|
||||
# Setup the cache file used for ensuring users aren't welcomed more than once |
||||
stream: |
||||
cache_file: /home/mastodon/bot/follow_autorespond_cache.db |
||||
|
||||
# Setup the toots that will be sent |
||||
# These static toots will ALWAYS be sent |
||||
# This section is REQUIRED |
||||
toot: |
||||
visibility: public # One of: public, unlisted, private, or direct |
||||
cw_text: Hello @{0.username}! |
||||
toot_text: | |
||||
I'm your friendly autoresponding toot bot |
||||
|
||||
Hi there! :sunglasses: |
||||
|
||||
{0.mentions} |
Loading…
Reference in new issue