From 3390e1df24dbce69a4b39cff363d6616d4dd376c Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 17 Jul 2014 12:08:48 +0200 Subject: titlebot: add top command --- titlebot/commands/help | 1 + titlebot/commands/top | 1 + titlebot/titlebot.py | 1 + 3 files changed, 3 insertions(+) create mode 120000 titlebot/commands/top diff --git a/titlebot/commands/help b/titlebot/commands/help index f04e43b..fcc9b53 100755 --- a/titlebot/commands/help +++ b/titlebot/commands/help @@ -4,6 +4,7 @@ BGT Title Poll Bot: .new TITLE - suggest a new title .list <(age|votes)> - list all suggestions .highest - lists the NUM highest voted suggestions + .top - alias for .highest .up NUM (NUM ...) - upvote one or more suggestions from .list .undo NUM (NUM ...) - undo an upvote .clear - clear the poll (auth required) diff --git a/titlebot/commands/top b/titlebot/commands/top new file mode 120000 index 0000000..8f25670 --- /dev/null +++ b/titlebot/commands/top @@ -0,0 +1 @@ +highest \ No newline at end of file diff --git a/titlebot/titlebot.py b/titlebot/titlebot.py index 4171748..325fda5 100644 --- a/titlebot/titlebot.py +++ b/titlebot/titlebot.py @@ -61,6 +61,7 @@ public_commands = [ titlebot_cmd('list'), titlebot_cmd('help'), titlebot_cmd('highest'), + titlebot_cmd('top'), titlebot_cmd('up'), titlebot_cmd('new'), titlebot_cmd('undo'), -- cgit v1.2.3