Skip to content
Snippets Groups Projects
Commit 7c54916e authored by Bruce Cowan's avatar Bruce Cowan
Browse files

Standard response to lack of arguments

parent e43ebe69
No related branches found
No related tags found
No related merge requests found
......@@ -21,16 +21,25 @@ class Karma(BotPlugin):
@botcmd
def karma_add(self, message, args):
"""Adds karma"""
if not args:
return "**Usage**: !karma add <target>"
self.karma[args] += 1
return "Karma for {} is now {}".format(args, self.karma[args])
@botcmd
def karma_remove(self, message, args):
"""Removes karma"""
if not args:
return "**Usage**: !karma remove <target>"
self.karma[args] -= 1
return "Karma for {} is now {}".format(args, self.karma[args])
@botcmd
def karma(self, message, args):
"""Gets karma"""
if not args:
return "**Usage**: !karma <target>"
return "Karma for {} is {}".format(args, self.karma[args])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment