[Bot] ## This section defines configuration the bot uses for its entire ## connection and runtime. ## jid is required, and where the bot connects to XMPP. ## If jid does not specify a resource, it will default to "ForwardXMPP". # jid = node@example.org/ForwardBot ## password is required. # password = ExamplePassword ## nickname is optional. The bot will use this nickname in any MUCs it ## joins, and on messages it sends. It defaults to the node name in the ## jid setting above. # nickname = FowardBot ## loglevel is optional. Logs will be written to standard error at this ## level and above. You can specify debug, info, warning, error, or ## critical. The default is "warning". # loglevel = warning # [Forward example.com messages] ## Any sections in the configuration file with ``Forward `` at the start of ## their name define a rule for how messages are forwarded. You can specify ## as many forwarding rules as you like. You are only limited by the ## resources available to the bot. ## from is required. Write a Python regular expression to match against the ## sender's JID. NOTE the regular expression is checked against the *entire* ## JID, including the resource. # from = @example\.com($|/) ## to is required. Messages that match from are sent to this JID. # to = example@example.org ## format is optional. Write a Python format string that will be used as the ## body of the formatted message. Available variables are ``type``, ``body``, ## ``from``, and ``to``. Refer to the README for full details about each. # format = Message from {from.full}: {body}