Guest User

Untitled

a guest
Aug 13th, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.99 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.evolu.net" port="6667" use_SSL="no"
  17. day_channel="#loup-garou" night_channel="#loup-garou"
  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="Loubotte" irc_name="Loubotte"
  25. user_name="lycanobot vs 0.1.2"/>
  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>*!*@*.domain.org</mask>
  38. | <regnick>Jah</regnick> -->
  39. <!-- Some people you fully trust into... -->
  40. <regnick>tsukii</regnick>
  41. </admins>
  42.  
  43. <moderators>
  44. <!-- The moderators' identifiers.
  45. | Exaclty the same as <admins> above (use <mask> or <regnick>), but this
  46. | time for the moderators. Such people are only able to moderate games
  47. | (stop game, change settings, and (de)activate the bot). Especially,
  48. | they cannot run sensitive commands like reloadconf and talkserv -->
  49. <!-- Some people you normally trust into... -->
  50. </moderators>
  51.  
  52. <!-- Ignored users.
  53. | Any users nicks which are in the day and/or night channel, but you want
  54. | to be ignored by the bot. He will not see they are in the channel with
  55. | him. Useful for ChanServ and others bots.
  56. | Separate multiple nicks with a comma, e.g. <ignore>foo,bar</ignore> -->
  57. <ignore>ChanServ</ignore>
  58.  
  59. <!-- The werewolves players proportion.
  60. | It's a number between 0 and 1. It can also be a fraction.
  61. | E.g. with <werewolves proportion="1/3" /> and 6 players
  62. | you'll get 2 werewolves and 4 villagers.
  63. | Note that 0.22 matches the official game advices. -->
  64. <werewolves proportion="0.22" />
  65.  
  66. <!-- The identification mode.
  67. | This var configures the way the bot will identify real users from their
  68. | clones. Each user and his clones share the same personal information
  69. | and settings.
  70. |
  71. | The bot is able to use the following informations to identify a user:
  72. | nick, user, host, domain, server, realname, regnick
  73. | Which refers to :
  74. | the nick, the /whois result user@host.domain, the server name,
  75. | the real name, and the nick the user registered with.
  76. | When host is an IP, domain is unavailable.
  77. |
  78. | Some of these informations may not be available: domain and regnick.
  79. | That's why the bot is able to try some combinations before finding one
  80. | with all the informations requiered available. It will begin with try="1"
  81. | then try="2" and so on.
  82. |
  83. | If the bot is unable to identify a user because it can't collect
  84. | the informations you specify (in all the trys), the settings of that user
  85. | will remain only until he disconnects, and he will be considered as a new
  86. | user if he reconnects (the bot will welcome him etc.).
  87. |
  88. | Some examples:
  89. | <ident try="1" use="user host domain" /> // This is the default : use
  90. | <ident try="2" use="user host" /> // user@domain.tld or user@IP
  91. |
  92. | <ident try="1" use="regnick" // Use registration nick, or
  93. | <ident try="2" use="user host domain" // this, for unregistered users
  94. |
  95. | <ident try="1" use="user domain" /> // Work around dynamic IPs,
  96. | <ident try="2" use="user" /> // but it's unsecure
  97. |
  98. | <ident try="1" use="nick" /> // On a trustworthy IRC network
  99. -->
  100. <identification>
  101. <ident try="2" use="user host" />
  102. <ident try="3" use= "user host domain"/>
  103. <ident try="1" use="regnick" />
  104. </identification>
  105.  
  106. <!-- Quit recovery system
  107. | When a player quits during a game, lycanobot can continue the game as he
  108. | were here, until he comes backs and is recognized. Here you may set
  109. | when you want this to happens, using <recover> tags, depending on :
  110. |
  111. | - the type of the quit, attribute "on", can be "part" or "quit".
  112. | - the exit message, attribute "msg" (simple string) or "regexp" (a Perl
  113. | regular expression). Put an '!' (exclamation mark) before the regexp to
  114. | inverse its matching.
  115. |
  116. | In the wait="" attribute, you can also specify the maximum amount of time
  117. | (in seconds) the bot may wait before kicking the player out of the game,
  118. | if he havn't came back. Put zero if you don't want the bot to do that.
  119. |
  120. | Some examples:
  121. | <recover on="quit" msg="EOF From client" /> // Simple EOF
  122. | <recover on="quit" regexp="/^Ping timeout/" /> // Beginning with that
  123. | <recover on="quit" regexp="!/^Quit: /" /> // Not starting with that
  124. | <recover on="part" msg="Leaving" /> // Standard leaving -->
  125. <quit_recovery wait="130">
  126. <recover on="quit" regexp="!/^Quit: /" />
  127. </quit_recovery>
  128.  
  129. <!-- IRC Hacks
  130. | Here you tell the bot to use some specials IRC features.
  131. | Available hacks includes:
  132. | + Special commands, using the <command>name</command> tag.
  133. | Lycanobot can use the SAJOIN command to force the werewolves to join
  134. | their channel in the beginning of a game, instead of politely inviting
  135. | them. Beware that you don't make sure they are ready if you force them.
  136. | You may put <command>sajoin</command> for that.
  137. |
  138. | + Services, using the <service> tag as following:
  139. | <service name="the_foo_service" nick="FooServ">
  140. | <the_foo_service feature="bar!" do_that="yes" ...>
  141. |
  142. | Supported <service> "name" attribute values are "nick" and "chan".
  143. | "nick" provides:
  144. | - the "password" attribute (to make the bot identify itself)
  145. | - the optionnal "say" attribute to tell the bot the message it
  146. | must send in case it's not the regular "IDENTIFY <password>"
  147. | For instance: <service name="nick" nick="NickServ" />
  148. | <nick password="bad" say="AUTH lycanobot bad"/>
  149. | By the way, you can make the bot register with the "talkserv" command.
  150. |
  151. | "chan" privides:
  152. | - the boolean "ask_invite" attribute to tell the bot it must
  153. | asks this service to invites it in the night channel
  154. | - the optionnal "say" attribute, to tell the bot the message it
  155. | must send in case it's not the regular "INVITE <#channel>"
  156. | For instance: <service name="chan" nick="ChanServ" />
  157. | <chan ask_invite="yes" /> -->
  158. <hacks>
  159. <service name="nick" nick="NickServ" />
  160. <nick password="nijisseiki3112" />
  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="fr" 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>
Add Comment
Please, Sign In to add comment