Increase nice value of Markov bot
This commit is contained in:
parent
2a56054f52
commit
1b77e73da4
1 changed files with 2 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import dbtools, setuptools, twitools
|
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):
|
class Possy(markovify.NewlineText):
|
||||||
def word_split(self, sentence):
|
def word_split(self, sentence):
|
||||||
|
@ -37,4 +37,5 @@ def markovifyText(text):
|
||||||
return Possy(text).make_short_sentence(130).replace("@", "@")
|
return Possy(text).make_short_sentence(130).replace("@", "@")
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
os.nice(5)
|
||||||
twitools.tweet(markovifyText(getText()), section = setuptools.MARKOV)
|
twitools.tweet(markovifyText(getText()), section = setuptools.MARKOV)
|
||||||
|
|
Loading…
Reference in a new issue