Alias score to count
This commit is contained in:
parent
2bf89dc9b0
commit
925299a547
|
@ -57,9 +57,9 @@ def get_question():
|
|||
chq = q[3].format(*nums)
|
||||
return chq, cha
|
||||
|
||||
@plugin.group("minercoin","<ask/count/cooldown>")
|
||||
@plugin.group("minercoin","<ask/count/score/cooldown>")
|
||||
def minercoin(bot,channel,nick,*args):
|
||||
if args[0] not in "ask count cooldown".split():
|
||||
if args[0] not in "ask count cooldown score".split():
|
||||
bot.say(channel,"{}: Usage: !minercoin <ask/count/cooldown>".format(nick))
|
||||
return True # only allow selected subcommands
|
||||
elif channel!="#bots":
|
||||
|
@ -105,6 +105,8 @@ def minercoin_count(bot,channel,nick,username,*args):
|
|||
else:
|
||||
bot.say(channel,"{}: You don't have any MinerCoin! Get some by asking! (!minercoin ask)".format(nick))
|
||||
|
||||
minercoin.command("score")(username(minercoin_count))
|
||||
|
||||
@minercoin.command("cooldown")
|
||||
@username
|
||||
def minercoin_cooldown(bot,channel,nick,username,*args):
|
||||
|
|
Loading…
Reference in New Issue