From b4aacd28e7fc7caf2d8cf35c7ac2310d4c19b198 Mon Sep 17 00:00:00 2001 From: Thomas Mercurio Date: Mon, 29 Aug 2016 20:55:03 -0700 Subject: [PATCH] Added error, warning and info formats to chat_formatting (#353) --- cogs/utils/chat_formatting.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cogs/utils/chat_formatting.py b/cogs/utils/chat_formatting.py index 6b6639a87..5344ca6f6 100644 --- a/cogs/utils/chat_formatting.py +++ b/cogs/utils/chat_formatting.py @@ -1,3 +1,15 @@ +def error(text): + return ":no_entry_sign: {}".format(text) + + +def warning(text): + return ":warning: {}".format(text) + + +def info(text): + return ":information_source: {}".format(text) + + def bold(text): return "**{}**".format(text)