1
0
Fork 0
mirror of https://gitlab.com/oloturia/fumcaso.git synced 2025-01-06 21:47:17 +01:00

mastodon replier setup

This commit is contained in:
oloturia 2022-04-27 17:12:37 +02:00
parent f5c972cef0
commit 157c6387c1
2 changed files with 18 additions and 0 deletions

View file

@ -1,5 +1,8 @@
{
"defaultProfile": "oloturia",
"defaultMastodonToken": "./mastodon_token",
"defaultTelegramToken": "./telegram_token",
"defaultTwitterToken": "./twitter_token",
"oloturia": {
"saveLocation": "/var/tmp",

15
mastodon_replier.py Normal file
View file

@ -0,0 +1,15 @@
#!/usr/bin/python3
from randstrip import createStrip,readConfig
from mastodon import Mastodon
import os
import sys
fileDir = os.path.dirname(os.path.abspath(__file__))
fileDir = fileDir + "/"
API_URL = "https://botsin.space"
if __name__ == "__main__":
config = readConfig