first verified working version! c:

This commit is contained in:
Lynne Megido 2018-10-27 23:33:12 +10:00
parent 099cb87111
commit 6555cc9c9e
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499

View file

@ -7,7 +7,8 @@
import requests import requests
import mastodon import mastodon
import json from bs4 import BeautifulSoup
import json, re
cfg = json.load(open('config.json', 'r')) cfg = json.load(open('config.json', 'r'))
@ -44,6 +45,7 @@ class ReplyListener(mastodon.StreamListener):
acct = "@" + notification['account']['acct'] acct = "@" + notification['account']['acct']
post_id = notification['status']['id'] post_id = notification['status']['id']
mention = extract_toot(notification['status']['content']) mention = extract_toot(notification['status']['content'])
q = mention
print(acct + " says " + mention) print(acct + " says " + mention)
kind = 'general' #todo: support for images kind = 'general' #todo: support for images