Browse Source

mastodon replier setup

oloturia 2 years ago
parent
commit
157c6387c1
2 changed files with 18 additions and 0 deletions
  1. 3 0
      config.json
  2. 15 0
      mastodon_replier.py

+ 3 - 0
config.json

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

+ 15 - 0
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
+
+