.. _plugin-topic: The Topic plugin ================ Getting ------- .. _command-topic-topic: topic topic [] ^^^^^^^^^^^^^^^^^^^^^^^ Returns the topic for **. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-get: topic get [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Returns topic number ** from **. ** is a one-based index into the topics. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-list: topic list [] ^^^^^^^^^^^^^^^^^^^^^^ Returns a list of the topics in **, prefixed by their indexes. Mostly useful for topic reordering. ** is only necessary if the message isn't sent in the channel itself. Defining -------- .. _command-topic-restore: topic restore [] ^^^^^^^^^^^^^^^^^^^^^^^^^ Restores the topic to the last topic set by the bot. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-set: topic set [] [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Sets the topic ** to be **. If no ** is given, this sets the entire topic. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-replace: topic replace [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Replaces topic ** with **. .. _command-topic-fit: topic fit [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Adds ** to the topics for **. If the topic is too long for the server, topics will be popped until there is enough room. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-add: topic add [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Adds ** to the topics for **. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-remove: topic remove [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Removes topic ** from the topic for ** Topics are numbered starting from 1; you can also use negative indexes to refer to topics starting the from the end of the topic. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-change: topic change [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Changes the topic number ** on ** according to the regular expression **. ** is the one-based index into the topics; ** is a regular expression of the form s/regexp/replacement/flags. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-insert: topic insert [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Adds ** to the topics for ** at the beginning of the topics currently on **. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-default: topic default [] ^^^^^^^^^^^^^^^^^^^^^^^^^ Sets the topic in ** to the default topic for **. The default topic for a channel may be configured via the configuration variable :ref:`supybot.plugins.Topic.default.` Re-ordering ----------- .. _command-topic-shuffle: topic shuffle [] ^^^^^^^^^^^^^^^^^^^^^^^^^ Shuffles the topics in **. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-reorder: topic reorder [] [ ...] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Reorders the topics from ** in the order of the specified ** arguments. ** is a one-based index into the topics. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-swap: topic swap [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Swaps the order of the first topic number and the second topic number. ** is only necessary if the message isn't sent in the channel itself. Locking ------- .. _command-topic-lock: topic lock [] ^^^^^^^^^^^^^^^^^^^^^^ Locks the topic (sets the mode +t) in **. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-unlock: topic unlock [] ^^^^^^^^^^^^^^^^^^^^^^^^ Unlocks the topic (sets the mode +t) in **. ** is only necessary if the message isn't sent in the channel itself. Utilities --------- .. _command-topic-undo: topic undo [] ^^^^^^^^^^^^^^^^^^^^^^ Restores the topic to the one previous to the last topic command that set it. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-redo: topic redo [] ^^^^^^^^^^^^^^^^^^^^^^ Undoes the last undo. ** is only necessary if the message isn't sent in the channel itself. .. _command-topic-separator: topic separator [] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Sets the topic separator for ** to ** Converts the current topic appropriately.