From 157c6387c1fbe4450df05c44e6716b38e1a10d54 Mon Sep 17 00:00:00 2001 From: oloturia <5429234+oloturia@users.noreply.github.com> Date: Wed, 27 Apr 2022 17:12:37 +0200 Subject: [PATCH] mastodon replier setup --- config.json | 3 +++ mastodon_replier.py | 15 +++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 mastodon_replier.py diff --git a/config.json b/config.json index ae6268d..9d821cc 100644 --- a/config.json +++ b/config.json @@ -1,5 +1,8 @@ { "defaultProfile": "oloturia", + "defaultMastodonToken": "./mastodon_token", + "defaultTelegramToken": "./telegram_token", + "defaultTwitterToken": "./twitter_token", "oloturia": { "saveLocation": "/var/tmp", diff --git a/mastodon_replier.py b/mastodon_replier.py new file mode 100644 index 0000000..45a2711 --- /dev/null +++ b/mastodon_replier.py @@ -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 + +