renamed create.py to functions.py

This commit is contained in:
Lynne 2019-01-11 22:47:42 +10:00
parent 0a66c1db51
commit 85fec32c83
No known key found for this signature in database
GPG key ID: FB7B970303ACE499
4 changed files with 22 additions and 23 deletions

View file

@ -5,7 +5,7 @@
import mastodon
import os, random, re, json
import create
import functions
from bs4 import BeautifulSoup
cfg = json.load(open('config.json', 'r'))
@ -43,7 +43,7 @@ class ReplyListener(mastodon.StreamListener):
acct = "@" + notification['account']['acct']
post_id = notification['status']['id']
mention = extract_toot(notification['status']['content'])
toot = create.make_toot(True)['toot']
toot = functions.make_toot(True)['toot']
toot = acct + " " + toot
print(acct + " says " + mention)
visibility = notification['status']['visibility']