Fix titlecase

This commit is contained in:
minerobber 2018-12-09 16:08:55 +00:00
parent 4a2d5fb075
commit 8a884625ff
1 changed files with 2 additions and 1 deletions

3
bot.py
View File

@ -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")