first verified working version! c:
This commit is contained in:
parent
099cb87111
commit
6555cc9c9e
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue