mirror of
https://gitlab.com/oloturia/fumcaso.git
synced 2025-01-06 21:47:17 +01:00
bug
This commit is contained in:
parent
c78bc6ba7e
commit
e239f22991
1 changed files with 2 additions and 2 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue