Advertisement
Guest User

Untitled

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