Advertisement
Guest User

Untitled

a guest
Jul 8th, 2017
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 14.93 KB | None | 0 0
  1. <?xml version='1.0'?>
  2.  
  3. <!-- Lycanobot's config file.
  4.     Put all your bot's config here.
  5.     True = true = Yes = yes = 1, and False = false = No = no = 0 -->
  6.  
  7. <lycaconf>
  8.   <!-- These settings control how and where the bot has to connect.
  9.     | Most of them are self-explicit.
  10.     | "use_random_night_channel" make the night channel more hidden (thus
  11.     | more secure) appending a minus and 8 random charachters to its name,
  12.     | changing it for each game. For instance to "#village_night-p4FaAm13".
  13.     | "active" set the bot awake. May be changed by the (de)activate commands.
  14.     | "timeout" is the ping timeout limit that makes the bot to reconnect.
  15.     | The bot had to be OP on both day_channel and night_channel. -->
  16.   <conn server="irc.ogamenet.net" port="6667" use_SSL="no"
  17.     day_channel="#village" night_channel="#village_night"
  18.     use_random_night_channel="yes"
  19.     active="yes" timeout="300" />
  20.  
  21.   <!-- Who is the bot? Put here his nick, irc name and user name.
  22.       You may also put here the "op_user" and "op_passwd" attributes if you
  23.       want the bot to ask to be an IRC Operator when it connects. -->
  24.   <identity nick="[Game]" irc_name="[Game]"
  25.            user_name="Game"/>
  26.  
  27.   <admins>
  28.     <!-- The admins' identifiers.
  29.       | They can do everything, including sensitive commands like reloadconf
  30.       | and talkserv. Only for people you fully trust into.
  31.       | There is no need to put the bot itself here, it's just some god :)
  32.       | Here you can use the <mask> or <regnick> tag to specify who is admin.
  33.       | <regnick> means a registered nick (done the nick service, see <hacks>
  34.       | below). Just /whois someone to see who is it and put it here. Ex:
  35.       |
  36.        <mask>*!some_ircname@some_address</mask>
  37.       | <mask>*!*@*.kipof.net</mask>
  38.       | <regnick>kipof</regnick>                                             -->
  39.     <!-- Some people you fully trust into... -->
  40. <mask>*!HeisSpiter@ipv6.heisspiter.net</mask>
  41.    <regnick>HeisSpiter</regnick>
  42.    <mask>*!kipof@srv.kipof.net</mask>
  43.    <regnick>kipof</regnick>
  44.   </admins>
  45.  
  46.   <moderators>
  47.     <!-- The moderators' identifiers.
  48.       | Exaclty the same as <admins> above (use <mask> or <regnick>), but this
  49.       | time for the moderators. Such people are only able to moderate games
  50.       | (stop game, change settings, and (de)activate the bot). Especially,
  51.       | they cannot run sensitive commands like reloadconf and talkserv    -->
  52.     <!-- Some people you normally trust into... -->
  53.   </moderators>
  54.  
  55.   <!-- Ignored users.
  56.     | Any users nicks which are in the day and/or night channel, but you want
  57.     | to be ignored by the bot. He will not see they are in the channel with
  58.     | him. Useful for ChanServ and others bots.
  59.     | Separate multiple nicks with a comma, e.g. <ignore>foo,bar</ignore>  -->
  60.   <ignore>ChanServ</ignore>
  61.  
  62.   <!-- The werewolves players proportion.
  63.     | It's a number between 0 and 1. It can also be a fraction.
  64.     | E.g. with <werewolves proportion="1/3" /> and 6 players
  65.     | you'll get 2 werewolves and 4 villagers.
  66.     | Note that 0.22 matches the official game advices. -->
  67.   <werewolves proportion="0.22" />
  68.  
  69.   <!-- The identification mode.
  70.     | This var configures the way the bot will identify real users from their
  71.     | clones. Each user and his clones share the same personal information
  72.     | and settings.
  73.     |
  74.     | The bot is able to use the following informations to identify a user:
  75.     | nick, user, host, domain, server, realname, regnick
  76.     | Which refers to :
  77.     | the nick, the /whois result user@host.domain, the server name,
  78.     | the real name, and the nick the user registered with.
  79.     | When host is an IP, domain is unavailable.
  80.     |
  81.     | Some of these informations may not be available: domain and regnick.
  82.     | That's why the bot is able to try some combinations before finding one
  83.     | with all the informations requiered available. It will begin with try="1"
  84.     | then try="2" and so on.
  85.     |
  86.     | If the bot is unable to identify a user because it can't collect
  87.     | the informations you specify (in all the trys), the settings of that user
  88.     | will remain only until he disconnects, and he will be considered as a new
  89.     | user if he reconnects (the bot will welcome him etc.).
  90.     |
  91.     | Some examples:
  92.     |  <ident try="1" use="user host domain" /> // This is the default : use
  93.     |  <ident try="2" use="user host" />        // user@domain.tld or user@IP
  94.     |
  95.     |  <ident try="1" use="regnick"             // Use registration nick, or
  96.     |  <ident try="2" use="user host domain"    // this, for unregistered users
  97.     |
  98.     |  <ident try="1" use="user domain" />      // Work around dynamic IPs,
  99.     |  <ident try="2" use="user" />             // but it's unsecure
  100.     |
  101.     |  <ident try="1" use="nick" />             // On a trustworthy IRC network
  102.   -->
  103.   <identification>
  104.     <ident try="1" use="user host domain" />
  105.     <ident try="2" use="user host" />
  106.   </identification>
  107.  
  108.   <!-- Quit recovery system
  109.     | When a player quits during a game, lycanobot can continue the game as he
  110.     | were here, until he comes backs and is recognized. Here you may set
  111.     | when you want this to happens, using <recover> tags, depending on :
  112.     |
  113.     | - the type of the quit, attribute "on", can be "part" or "quit".
  114.     | - the exit message, attribute "msg" (simple string) or "regexp" (a Perl
  115.     |   regular expression). Put an '!' (exclamation mark) before the regexp to
  116.     |   inverse its matching.
  117.     |
  118.     | In the wait="" attribute, you can also specify the maximum amount of time
  119.     | (in seconds) the bot may wait before kicking the player out of the game,
  120.     | if he havn't came back. Put zero if you don't want the bot to do that.
  121.     |
  122.     | Some examples:
  123.     |  <recover on="quit" msg="EOF From client" />    // Simple EOF
  124.     |  <recover on="quit" regexp="/^Ping timeout/" /> // Beginning with that
  125.     |  <recover on="quit" regexp="!/^Quit: /" />      // Not starting with that
  126.     |  <recover on="part" msg="Leaving" />            // Standard leaving  -->
  127.   <quit_recovery wait="130">
  128.  
  129.   </quit_recovery>
  130.  
  131.   <!-- IRC Hacks
  132.     | Here you tell the bot to use some specials IRC features.
  133.     | Available hacks includes:
  134.     | + Special commands, using the <command>name</command> tag.
  135.     |   Lycanobot can use the SAJOIN command to force the werewolves to join
  136.     |   their channel in the beginning of a game, instead of politely inviting
  137.     |   them. Beware that you don't make sure they are ready if you force them.
  138.     |   You may put <command>sajoin</command> for that.
  139.     |  
  140.     | + Services, using the <service> tag as following:
  141.     |    <service name="the_foo_service" nick="FooServ">
  142.     |    <the_foo_service feature="bar!" do_that="yes" ...>
  143.     |
  144.     |   Supported <service> "name" attribute values are "nick" and "chan".
  145.     |   "nick" provides:
  146.     |    - the "password" attribute (to make the bot identify itself)
  147.     |    - the optionnal "say" attribute to tell the bot the message it
  148.     |      must send in case it's not the regular "IDENTIFY <password>"
  149.     |   For instance: <service name="nick" nick="NickServ" />
  150.     |                 <nick password="bad" say="AUTH lycanobot bad"/>
  151.     |   By the way, you can make the bot register with the "talkserv" command.
  152.     |
  153.     |   "chan" privides:
  154.     |    - the boolean "ask_invite" attribute to tell the bot it must
  155.     |      asks this service to invites it in the night channel
  156.     |    - the optionnal "say" attribute, to tell the bot the message it
  157.     |      must send in case it's not the regular "INVITE <#channel>"
  158.     |   For instance: <service name="chan" nick="ChanServ" />
  159.     |                 <chan ask_invite="yes" />                            -->
  160.   <hacks>
  161.    
  162.   </hacks>
  163.  
  164.   <!-- Modes
  165.     | /!\  Warning: You should not change these settings unless you know
  166.     [ ^|^           what you are doing! Defaults should be OK.
  167.     | This specify which channel and user modes the bot have to set, and when.
  168.     | "on" can be "connect", "chanop", "end_game" or "begin_game".
  169.     | "to" can be "ourself" (results in a user mode, for the bot),
  170.     |             "day_channel" or "night_channel".
  171.     | +N channel mode was needed before, but it's no longer true.
  172.     | The bot automatically sets the +i mode in the night channel, when
  173.     | everybody in it has been kicked out. It also avoid setting a mode that
  174.     | is already set.
  175.     |
  176.     | Some channel modes reminders:
  177.     | n = no external messages
  178.     | m = moderated chan, only voiced users may talk
  179.     | s = secret channel (hidden from /whois etc.)
  180.     | i = can be joined on invite only
  181.     | The unofficial +B user mode (for bots) is quite common.
  182.   -->
  183.   <modes>
  184.     <mode on="chanop"     to="day_channel">-m+n</mode>
  185.     <mode on="end_game"   to="day_channel">-m</mode>
  186.     <mode on="begin_game" to="day_channel">+m</mode>
  187.     <!-- mode +i is automatically set on begin_game in the night channel -->
  188.     <mode on="begin_game" to="night_channel">+mns</mode>
  189.   </modes>
  190.  
  191.   <!-- Talk settings.
  192.     | Handles how the bot talks and how users have to talk to it.
  193.     | For the language, see which ones are available in the messages/
  194.     | directory.
  195.     |
  196.     | "cmd_prefix" is the commands prefix character.
  197.     | E.g. with cmd_prefix="!" you'll call the command "start" saying "!start"
  198.     |
  199.     | "charset" is the charset you want the bot to both talk in and listen in.
  200.     | Default and native one is utf-8, others charsets need the Encode module.
  201.     | Additionaly, iso-* users should install the Search::Tools::Transliterate
  202.     | module to convert fancy utf-8 characters into iso equivalents, otherwise
  203.     | you would get some '?' instead (e.g. '…' gets transliterated into '...').
  204.     | Some common charsets : iso-8859-1, iso-8859-15, us-ascii, utf-8
  205.     |
  206.     | "charset_fallback", if non-empty, is the charset the bot will try to
  207.     | decode input messages in, if the above "charset" failed. Usefull on
  208.     | channels with users mixing utf8 and another charset.
  209.     |
  210.     | "decode_errors" sets what to do when it can't decode a message using
  211.     | the above "charset" and "charset_fallback". Possible values include :
  212.     | - "ignore" : messages with invalid characters will be silently ignored.
  213.     | - "keep" : invalid characters will be kept in a hex form (\xNN) and the
  214.     |            the message will be parsed.
  215.     | - "warn" : the bot will say a warning showing the problematic characters
  216.     |            in a hex form and the message will be ignored.
  217.     |
  218.     | Note : control characters are always silently stripped after decoding.
  219.     |        Also, non-multibytes charsets decoding cannot fail.
  220.  -->
  221.   <talk language="en" cmd_prefix="!"
  222.       charset="utf8" charset_fallback="iso-8859-1"
  223.       decode_errors="warn" />
  224.  
  225.   <!-- Messages settings.
  226.     | Controls for each messages types how to say them:
  227.     | - privmsg (classic irc message) or notice
  228.     | - with an eventual prefix
  229.     | By default all is sent in privmsg.
  230.     |
  231.     | Some special sequences can be used:
  232.     |  \B = start/stop blod
  233.     |  \U = start/stop underline
  234.     |  \I = start/stop italic
  235.     |  \Cxx = mIRC color number xx
  236.     |
  237.     | "to_user_char" is the completion char the bot will put after a nick
  238.     | that prefixes a message said on a channel but for this specific nick.
  239.     | E.g., with to_user_char=":" you'll get channel messages like :
  240.     | "foobar: you cannot vote against your team."
  241.  -->
  242.   <messages to_user_char=",">
  243.     <message type="error" send="privmsg" prefix="" />
  244.     <message type="info"  send="privmsg" prefix="" />
  245.     <message type="query" send="privmsg" prefix="" />
  246.     <message type="reply" send="privmsg" prefix="" />
  247.   </messages>
  248.  
  249.   <!-- Rate control. These settings prevent the bot from flooding, and let it
  250.     | readable.
  251.     |
  252.     | "talk_speed" is the talking speed in number of characters per seconds.
  253.     | "max_mode_params" is the maximum number of players the bot can mode in
  254.     | a single command. Check it in the irc server's config.
  255.     | E.g. with "3" it will voice 3 players at the same time
  256.     | using /mode +vvv player1 player2 player3
  257.     |
  258.     | "max_whois_params" is the same as "max_mode_params" but for /whois.
  259.     | /whois are currently used by the bot only if you use the regnick flag
  260.     | in the identification variables above. Otherwise /who is enougth.
  261.     | E.g. with "4" it will whois 4 players at the same time
  262.     | using /whois player1,player2,player3,player4
  263.     |
  264.     | "mode_speed" The number of modes the bot can do per seconds
  265.     | Count 4 modes for doing something like +mnsi
  266.     |
  267.     | "global_limit". Is the previous limitations are global or for each user.
  268.     | Set it if you want the bot to send a message to one user or channel
  269.     | at a time. This would not makes the bot to heavily lag if he talks
  270.     | to several users simultaneously (there is a round-robin between each
  271.     | message destination), but must be used if the irc server have
  272.     | per-user rate limitations. You should set it to "no" if you can.
  273.  -->
  274.   <rate talk_speed="20" mode_speed="1"
  275.        max_mode_params="3" max_whois_params="4"
  276.        global_limit="no" />
  277.  
  278.   <!-- Send queue control (has a superior priority than the rate contol).
  279.     | These settings prevents flooding from a lower level. You may
  280.     | exactly match the server receive queue restrictions, giving how much
  281.     | bytes in can hold, and how long it takes to be entierly emptied.
  282.     | For instance, using 1024 bytes and 6 seconds, the bot may send 1024
  283.     | bytes instantly, but then would wait 6 seconds before sending anything
  284.     | else. Also, if the bot continusly send some messages, its average rate
  285.     | will never excess 1024/6 = 170 bytes per seconds.
  286.     |
  287.     | These settings can only work with the lycanobot patched version of
  288.     | Net::IRC. To disable this feature, put a zero for one of the attributes.
  289.  -->
  290.   <sendq max_bytes_sent="512"
  291.         max_bytes_time="0" /> <!-- Disabled by default. -->
  292.  
  293.   <!-- Persistent data is stored in some XML files, so that if lycanobot stops,
  294.     | this stuff can be restored on restart.
  295.     |
  296.     | Note: Lycanobot can use a cache system not to write his data on disk
  297.     | if it do not have changed. This feature is automatically enabled
  298.     | if you have the Digest::MD5 module.
  299.     |
  300.     | "sync" You may want to save lycanobot's status on disk only after
  301.     | a given time. Thus, the bigger this time is, the less your disk will
  302.     | be used, but the more probably you can loose data if a crash happens.
  303.     | Data is always saved on proper shutdown or reboot.
  304.     | Use: -1 for full sync,
  305.     |       0 for no sync (only on shutdown/reboot),
  306.     |      or any time in seconds.
  307.  -->
  308.   <storing sync="3600" />
  309. </lycaconf>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement