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