aboutsummaryrefslogtreecommitdiffstats
path: root/titlebot
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-07-17 12:08:48 +0200
committermakefu <root@pigstarter.de>2014-07-17 12:08:48 +0200
commit3390e1df24dbce69a4b39cff363d6616d4dd376c (patch)
tree9e51f7443e4a59b7980ca8bc8589b47ed917a526 /titlebot
parentf614b718d73ed082761175800bf64a2f89d986b9 (diff)
titlebot: add top command
Diffstat (limited to 'titlebot')
-rwxr-xr-xtitlebot/commands/help1
l---------titlebot/commands/top1
-rw-r--r--titlebot/titlebot.py1
3 files changed, 3 insertions, 0 deletions
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 <NUM> - lists the NUM highest voted suggestions
+ .top <NUM> - 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'),