lol i can not maintain a project

This commit is contained in:
Jess 3Jane 2018-02-20 11:51:25 -05:00
parent e500cf705d
commit 36e673fad9

3
gen.py
View file

@ -1,5 +1,6 @@
import markovify import markovify
import json import json
import time
from mastodon import Mastodon from mastodon import Mastodon
api_base_url = "https://botsin.space" api_base_url = "https://botsin.space"
@ -16,7 +17,7 @@ print("Running...")
while True: while True:
print("tooting") print("tooting")
# This is not the best long term fix tbh # This is not the best long term fix tbh
sentance = None sentence = None
while sentence is None: while sentence is None:
sentence = model.make_sentence() sentence = model.make_sentence()
client.toot(sentence.replace(chr(31), "\n")) client.toot(sentence.replace(chr(31), "\n"))