1
0
Fork 0
mirror of https://gitlab.com/oloturia/fumcaso.git synced 2025-01-06 21:47:17 +01:00
This commit is contained in:
oloturia 2022-05-02 02:02:22 +02:00
parent c78bc6ba7e
commit e239f22991

View file

@ -18,7 +18,7 @@ class stripListener(StreamListener):
content = notification["status"]["content"]
if content.find("help") != -1:
mastodon.status_post("Hello "+account+" just send me a message with 'new strip' and the desired profile. Try with 'oloturia' (Italian), 'oloeng' (broken English) or 'olofra' (French). If not specified, Italian will be selected as default.",visibility="direct")
elif content.find("strip") != -1:
elif content.find("new strip") != -1:
if content.find("oloeng") != -1:
profile = "oloeng"
elif content.find("olofra") != -1:
@ -33,7 +33,7 @@ class stripListener(StreamListener):
if __name__ == "__main__":
with open(fileDir+"/config.json") as f:
config = json.load(f)
with open(config["mastodonListenerToken"]) as f:
with open(fileDir+config["mastodonListenerToken"]) as f:
createapp = f.readlines()
createapp = [x.strip() for x in createapp]
TOKEN = createapp[0]