Increase nice value of Markov bot

This commit is contained in:
Klaus-Uwe Mitterer 2017-02-21 16:38:33 +01:00
parent 2a56054f52
commit 1b77e73da4

View file

@ -1,7 +1,7 @@
#!/usr/bin/env python3
import dbtools, setuptools, twitools
import argparse, html, markovify, nltk, operator, random, re, string, sys
import argparse, html, markovify, nltk, operator, os, random, re, string, sys
class Possy(markovify.NewlineText):
def word_split(self, sentence):
@ -37,4 +37,5 @@ def markovifyText(text):
return Possy(text).make_short_sentence(130).replace("@", "@")
if __name__ == "__main__":
os.nice(5)
twitools.tweet(markovifyText(getText()), section = setuptools.MARKOV)