From 7cc32f57f019d3bd88a642abb427f316b72c4035 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Mon, 1 Jun 2009 19:48:17 +0300 Subject: [PATCH] Documented the topic manipulation commands. --- index.txt | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 62 insertions(+), 2 deletions(-) diff --git a/index.txt b/index.txt index 2aaa8f3..cc75159 100644 --- a/index.txt +++ b/index.txt @@ -402,9 +402,69 @@ NOTE: There is also a global ignore list, available for admins. Related plugins: [green]#Topic#. -Supybot allows elaborate manipulation of the channel topic. +Supybot allows elaborate manipulation of the channel topic. Topic consists of items, separated by a configurable character (default is `||`). Items are one-indexed. -http://supybot.com/documentation/plugins/topic +People who have used the Oer bot may notice that the topic manipulation commands are somewhat similar. + +`topic add [channel] `:: + Add a new topic item at the end. + +`topic change [channel] `:: + Do a regular expression substitution on the topic item `number`. For example: `topic change 2 s/foo/bar/`. + +`topic default [channel]`:: + Restore topic on channel to the default set with `config plugins.Topic.default`. + +`topic fit [channel] `:: + Adds a new topic item at the end like `topic add`, but if there isn't enough space, first removes some items from the beginning. `topic add` complains if there isn't enough space. + +`topic get [channel] `:: + Return topic item `number`. + +`topic insert [channel] `:: + Add a new topic item in the beginning. + +`topic list [channel]`:: + Return list of topic items. + +`topic lock [channel]`:: + Set channel mode `+t`, preventing non-opped users from changing the topic. + +`topic redo [channel]`:: + Undo the last undo. + +`topic remove [channel] `:: + Remove item `number` from the topic. + +`topic reorder [channel] ...`:: + Reorder topic items in the given order. You must give as many numbers as there are items. For example, to move third item to first position, use `topic reorder 3 1 2`. + +`topic replace [channel] `:: + Replace topic item `number` with `text`. + +`topic restore [channel]`:: + Revert any changes made to the topic by users, and set it back to whatever the bot last set it to. + +`topic separator [channel] `:: + Change the topic separator to `separator`. + +`topic set [channel] [number] `:: + Replace either the whole topic or, if `number` is given, one item. In the latter case, this is the same as `topic replace`. + +`topic shuffle [channel]`:: + Reorder the topic items randomly. + +`topic swap [channel] `:: + Swap topic items at the given positions. + +`topic [channel]`:: + Show (the whole) topic for the channel. + +`topic undo [channel]`:: + Revert the last change a topic command made to the topic. Note that if users directly edited the topic, those changes will be lost. Can be used multiple times. + +`topic unlock [channel]`:: + Set channel mode `-t`, allowing all users to change the topic. ==== Logging ==== -- 2.11.4.GIT