From 2c8819450fefa1d747db30f59da450c171a5c188 Mon Sep 17 00:00:00 2001
From: Bruce Cowan <bruce@bcowan.eu>
Date: Wed, 7 Sep 2016 17:51:31 +0100
Subject: [PATCH] Standard response to lack of arguments

---
 unicode.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/unicode.py b/unicode.py
index 45fd4c8..9c21684 100644
--- a/unicode.py
+++ b/unicode.py
@@ -7,11 +7,17 @@ class Unicode(BotPlugin):
     @botcmd
     def ord(self, message, args):
         """Runs ord() on the characters given"""
+        if not args:
+            return "**Usage**: !ord <characters>"
+
         return [ord(c) for c in args]
 
     @botcmd
     def chr(self, message, args):
         """Runs chr() on the numbers given"""
+        if not args:
+            return "**Usage**: !chr <numbers>"
+
         try:
             return ''.join([chr(int(i)) for i in args.split()])
         except ValueError as e:
-- 
GitLab