From 3a2f4232851279d6581993aaf779bbe53089f67e Mon Sep 17 00:00:00 2001 From: Justin Yulli Kim Date: Mon, 16 Jul 2012 18:53:16 -0400 Subject: [PATCH] Capitalise replies in !crypt: !hash, !encrypt, !decrypt --- earwigbot/commands/crypt.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/earwigbot/commands/crypt.py b/earwigbot/commands/crypt.py index c432594..d77a8c8 100644 --- a/earwigbot/commands/crypt.py +++ b/earwigbot/commands/crypt.py @@ -34,12 +34,12 @@ class Crypt(Command): def process(self, data): if data.command == "crypt": - msg = "available commands are !hash, !encrypt, and !decrypt." + msg = "Available commands are !hash, !encrypt, and !decrypt." self.reply(data, msg) return if not data.args: - msg = "what do you want me to {0}?".format(data.command) + msg = "What do you want me to {0}?".format(data.command) self.reply(data, msg) return @@ -47,14 +47,14 @@ class Crypt(Command): algo = data.args[0] if algo == "list": algos = ', '.join(hashlib.algorithms) - msg = algos.join(("supported algorithms: ", ".")) + msg = algos.join(("Supported algorithms: ", ".")) self.reply(data, msg) elif algo in hashlib.algorithms: string = ' '.join(data.args[1:]) result = getattr(hashlib, algo)(string).hexdigest() self.reply(data, result) else: - msg = "unknown algorithm: '{0}'.".format(algo) + msg = "Unknown algorithm: '{0}'.".format(algo) self.reply(data, msg) else: @@ -62,7 +62,7 @@ class Crypt(Command): text = " ".join(data.args[1:]) if not text: - msg = "a key was provided, but text to {0} was not." + msg = "A key was provided, but text to {0} was not." self.reply(data, msg.format(data.command)) return