Skip to content

Commit

Permalink
[find] Use the new willie.formatting functions for text formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Alfassa committed Aug 16, 2014
1 parent 1e5df0b commit afc8279
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion find.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import re
from willie.tools import Nick, WillieMemory
from willie.module import rule, priority
from willie.formatting import bold


def setup(bot):
Expand Down Expand Up @@ -131,7 +132,7 @@ def findandreplace(bot, trigger):

# output
if not me:
new_phrase = '\x02meant\x02 to say: ' + new_phrase
new_phrase = '%s to say: %s' % (bold('meant'), new_phrase)
if trigger.group(1):
phrase = '%s thinks %s %s' % (trigger.nick, rnick, new_phrase)
else:
Expand Down

0 comments on commit afc8279

Please sign in to comment.