.. _plugin-Format: Documentation for the Format plugin for Supybot =============================================== Purpose ------- Provides simple commands for formatting text on IRC (like bold), and to change the output of the bot for a particular command. See also the :ref:`Filter plugin ` to configure the output format for all commands. Usage ----- Provides some commands for formatting text, such as making text bold or capitalized. .. _commands-Format: Commands -------- .. _command-format-bold: ``bold `` Returns bolded. .. _command-format-capitalize: ``capitalize `` Returns capitalized. .. _command-format-color: ``color [] `` Returns with foreground color and background color (if given) .. _command-format-concat: ``concat `` Concatenates two strings. Do keep in mind that this is *not* the same thing as join "", since if contains spaces, they won't be removed by concat. .. _command-format-cut: ``cut `` Cuts down to by chopping off the rightmost characters in excess of . If is a negative number, it chops that many characters off the end of . .. _command-format-field: ``field `` Returns the th space-separated field of . I.e., if text is "foo bar baz" and is 2, "bar" is returned. .. _command-format-format: ``format [ ...]`` Expands a Python-style format string using the remaining args. Just be sure always to use %s, not %d or %f or whatever, because all the args are strings. .. _command-format-join: ``join [ ...]`` Joins all the arguments together with . .. _command-format-lower: ``lower `` Returns lowercased. .. _command-format-replace: ``replace `` Replaces all non-overlapping occurrences of with in . .. _command-format-repr: ``repr `` Returns surrounded by double quotes. .. _command-format-reverse: ``reverse `` Returns in reverse-video. .. _command-format-title: ``title `` Returns titlecased. .. _command-format-translate: ``translate `` Replaces with in . The first and second arguments must necessarily be the same length. .. _command-format-underline: ``underline `` Returns underlined. .. _command-format-upper: ``upper `` Returns uppercased. .. _conf-Format: Configuration ------------- .. _conf-supybot.plugins.Format.public: supybot.plugins.Format.public This config variable defaults to "True", is not network-specific, and is not channel-specific. Determines whether this plugin is publicly visible.