Merge pull request #167 from nathanblaney/patch-1
Added reverse to utility.py
This commit is contained in:
commit
2e20487676
|
@ -109,6 +109,13 @@ def length(inp):
|
|||
"""length <string> -- gets the length of <string>"""
|
||||
return "The length of that string is {} characters.".format(len(inp))
|
||||
|
||||
# reverse
|
||||
|
||||
@hook.command
|
||||
def reverse(inp):
|
||||
"""Enter a string and the bot will reverse it and print it out."""
|
||||
return "You say %s, I say %s" % (inp, inp[::-1])
|
||||
|
||||
# hashing
|
||||
|
||||
@hook.command
|
||||
|
|
Reference in New Issue