tweaks done while working on CloudWeb
This commit is contained in:
parent
51bcddd44a
commit
7ec200105a
2 changed files with 5 additions and 5 deletions
|
@ -87,7 +87,7 @@ def remember(inp, nick='', db=None, say=None, input=None, notice=None):
|
|||
% data.replace('"', "''"))
|
||||
return
|
||||
else:
|
||||
notice('Remembered!')
|
||||
notice('Factoid created!')
|
||||
return
|
||||
|
||||
|
||||
|
|
|
@ -4,25 +4,25 @@ from util import hook
|
|||
|
||||
@hook.command
|
||||
def md5(inp):
|
||||
"hash <text> -- Returns a md5 hash of <text>."
|
||||
"md5 <text> -- Returns a md5 hash of <text>."
|
||||
return hashlib.md5(inp).hexdigest()
|
||||
|
||||
|
||||
@hook.command
|
||||
def sha1(inp):
|
||||
"hash <text> -- Returns a sha1 hash of <text>."
|
||||
"sha1 <text> -- Returns a sha1 hash of <text>."
|
||||
return hashlib.sha1(inp).hexdigest()
|
||||
|
||||
|
||||
@hook.command
|
||||
def sha256(inp):
|
||||
"hash <text> -- Returns a sha256 hash of <text>."
|
||||
"sha256 <text> -- Returns a sha256 hash of <text>."
|
||||
return hashlib.sha256(inp).hexdigest()
|
||||
|
||||
|
||||
@hook.command
|
||||
def sha512(inp):
|
||||
"hash <text> -- Returns a sha512 hash of <text>."
|
||||
"sha512 <text> -- Returns a sha512 hash of <text>."
|
||||
return hashlib.sha512(inp).hexdigest()
|
||||
|
||||
|
||||
|
|
Reference in a new issue