Guest User

Untitled

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