Fix titlecase
This commit is contained in:
parent
4a2d5fb075
commit
8a884625ff
3
bot.py
3
bot.py
|
@ -1,4 +1,5 @@
|
|||
import teambot, sys, traceback, requests, random, notes, words
|
||||
from titlecase import titlecase
|
||||
|
||||
BOTOP = "~minerobber@127.0.0.1"
|
||||
PREFIX = "!"
|
||||
|
@ -75,7 +76,7 @@ class MinerbotPhoenix(teambot.Handler):
|
|||
result = []
|
||||
for char in word:
|
||||
result.append(random.choice(words.getWords("^{}.*".format(char))))
|
||||
self.say(channel,nick+": "+(" ".join(result).title()))
|
||||
self.say(channel,nick+": "+titlecase(" ".join(result)))
|
||||
def on_kwam(self,channel,nick,*a):
|
||||
self.on_backronym(channel,nick,"kwam")
|
||||
|
||||
|
|
Loading…
Reference in New Issue