Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version='1.0'?>
- <!-- Lycanobot's config file.
- Put all your bot's config here.
- True = true = Yes = yes = 1, and False = false = No = no = 0 -->
- <lycaconf>
- <!-- These settings control how and where the bot has to connect.
- | Most of them are self-explicit.
- | The bot had to be OP on both day_channel and night_channel. -->
- <conn server="irc.foonetic.net" port="6667" use_SSL="no"
- day_channel="#lycanobot" night_channel="#lycanobot" />
- <!-- Who is the bot? Put here his nick, irc name and user name.
- You may also put here the "op_user" and "op_passwd" attributes if you
- want the bot to ask to be an IRC Operator when it connects. -->
- <identity nick="lycanobot" irc_name="lycanobot"
- user_name="lycanobot vs 0.1.2"/>
- <admins>
- <!-- The admins' identifiers.
- | They can stop a game, and change sensitive config values.
- | There is no need to put the bot itself here, it's just some god :)
- | Here you can use the <mask> or <regnick> tag to specify who is admin.
- | <regnick> means a registered nick (done the nick service, see <hacks>
- | below). Just /whois someone to see who is it and put it here. Ex:
- |
- | <mask>*!some_ircname@some_address</mask>
- | <mask>*!*@*.domain.org</mask>
- | <regnick>Jah</regnick> -->
- <regnick>Jackolas</regnick>
- </admins>
- <!-- Ignored users.
- | Any users nicks which are in the day and/or night channel, but you want
- | to be ignored by the bot. He will not see they are in the channel with
- | him. Useful for ChanServ and others bots.
- | Separate multiple nicks with a comma, e.g. <ignore>foo,bar</ignore> -->
- <ignore>ChanServ</ignore>
- <!-- The specials jobs you want the bot to distribute initially.
- | This can be altered while running using the setcards command. -->
- <init_special_jobs seer="1"
- sorcerer="0"
- cupid="0"
- hunter="0"
- captain="0"
- thievish="0" />
- <!-- The werewolves players proportion.
- | It's a number between 0 and 1. It can also be a fraction.
- | E.g. with <werewolves proportion="1/3" /> and 6 players
- | you'll get 2 werewolves and 4 villagers.
- | Note that 0.22 matches the official game advices. -->
- <werewolves proportion="0.22" />
- <!-- The identification mode.
- | This var configures the way the bot will identify real users from their
- | clones. Each user and his clones share the same personal information
- | and settings.
- |
- | The bot is able to use the following informations to identify a user:
- | nick, user, host, domain, server, realname, regnick
- | Which refers to :
- | the nick, the /whois result user@host.domain, the server name,
- | the real name, and the nick the user registered with.
- | When host is an IP, domain is unavailable.
- |
- | Some of these informations may not be available: domain and regnick.
- | That's why the bot is able to try some combinations before finding one
- | with all the informations requiered available. It will begin with try="1"
- | then try="2" and so on.
- |
- | If the bot is unable to identify a user because it can't collect
- | the informations you specify (in all the trys), the settings of that user
- | will remain only until he disconnects, and he will be considered as a new
- | user if he reconnects (the bot will welcome him etc.).
- |
- | Some examples:
- | <ident try="1" use="user host domain" /> // This is the default : use
- | <ident try="2" use="user host" /> // user@domain.tld or user@IP
- |
- | <ident try="1" use="regnick" // Use registration nick, or
- | <ident try="2" use="user host domain" // this, for unregistered users
- |
- | <ident try="1" use="user domain" /> // Work around dynamic IPs,
- | <ident try="2" use="user" /> // but it's unsecure
- |
- | <ident try="1" use="nick" /> // On a trustworthy IRC network
- -->
- <identification>
- <ident try="1" use="user host domain" />
- <ident try="2" use="user host" />
- </identification>
- <!-- Quit recovery system
- | When a player quits during a game, lycanobot can continue the game as he
- | were here, until he comes backs and is recognized. Here you may set
- | when you want this to happens, using <recover> tags, depending on :
- |
- | - the type of the quit, attribute "on", can be "part" or "quit".
- | - the exit message, attribute "msg" (simple string) or "regexp" (a Perl
- | regular expression). Put an '!' (exclamation mark) before the regexp to
- | inverse its matching.
- |
- | Some examples:
- | <recover on="quit" msg="EOF From client" /> // Simple EOF
- | <recover on="quit" regexp="/^Ping timeout/" /> // Beginning with that
- | <recover on="quit" regexp="!/^Quit: /" /> // Not starting with that
- | <recover on="part" msg="Leaving" /> // Standard leaving -->
- <quit_recovery>
- </quit_recovery>
- <!-- IRC Hacks
- | Here you tell the bot to use some specials IRC features.
- | Available hacks includes:
- | + Special commands, using the <command>name</command> tag.
- | Lycanobot can use the SAJOIN command to force the werewolves to join
- | their channel in the beginning of a game, instead of politely inviting
- | them. Beware that you don't make sure they are ready if you force them.
- | You may put <command>sajoin</command> for that.
- |
- | + Services, using the <service> tag as following:
- | <service name="the_foo_service" nick="FooServ">
- | <the_foo_service feature="bar!" do_that="yes" ...>
- |
- | Supported <service> "name" attribute values are "nick" and "chan".
- | "nick" provides:
- | - the "password" attribute (to make the bot identify itself)
- | - the optionnal "say" attribute to tell the bot the message it
- | must send in case it's not the regular "IDENTIFY <password>"
- | For instance: <service name="nick" nick="NickServ" />
- | <nick password="bad" say="AUTH lycanobot bad"/>
- | By the way, you can make the bot register with the "nickserv" command.
- |
- | "chan" privides:
- | - the boolean "ask_invite" attribute to tell the bot it must
- | asks this service to invites it in the night channel
- | - the optionnal "say" attribute, to tell the bot the message it
- | must send in case it's not the regular "INVITE <#channel>"
- | For instance: <service name="chan" nick="ChanServ" />
- | <chan ask_invite="yes" /> -->
- <hacks>
- </hacks>
- <!-- Modes
- | /!\ Warning: You should not change these settings unless you know
- [ ^|^ what you are doing! Defaults should be OK.
- | This specify which channel and user modes the bot have to set, and when.
- | "on" can be "connect", "chanop", "end_game" or "begin_game".
- | "to" can be "ourself" (results in a user mode, for the bot),
- | "day_channel" or "night_channel".
- | Currently, lycanobot sadly needs the unofficial +N mode to work properly.
- | This mode is known by at least in InspIRCD and UnrealIRCD.
- | The bot automatically sets the +i mode in the night channel, when
- | everybody in it has been kicked out. It also avoid setting a mode that
- | is already set.
- |
- | Some channel modes reminders:
- | n = no external messages
- | m = moderated chan, only voiced users may talk
- | N = no nicks changes in the channel (known in InspIRCD and UnrealIRCD)
- | s = secret channel (hidden from /whois etc.)
- | i = can be joined on invite only
- | The unofficial +B user mode (for bots) is quite common.
- -->
- <modes>
- <mode on="chanop" to="day_channel">-mN+n</mode>
- <mode on="end_game" to="day_channel">-mN</mode>
- <mode on="begin_game" to="day_channel">+mN</mode>
- <!-- mode +i is automatically set on begin_game in the night channel -->
- <mode on="begin_game" to="night_channel">+mns</mode>
- </modes>
- <!-- Talk settings.
- | Handles how the bot talks and how users have to talk to it.
- | For the language, see which ones are available in the messages/
- | directory.
- |
- | "charset" is the charset you want the bot to talk in.
- | Default is utf-8, others charsets need the Locale::Recode module.
- | Some common charsets : iso-8859-1, iso-8859-15, us-ascii
- |
- | "cmd_prefix" is the commands prefix character.
- | E.g. with cmd_prefix="!" you'll call the command "start" saying "!start"
- -->
- <talk language="en" charset="UTF-8" cmd_prefix="!" />
- <!-- Messages settings.
- | Controls for each messages types how to say them:
- | - privmsg (classic irc message) or notice
- | - with an eventual prefix
- | By default all is sent in privmsg.
- |
- | Some special sequences can be used:
- | \B = start/stop blod
- | \U = start/stop underline
- | \I = start/stop italic
- | \Cxx = mIRC color number xx
- -->
- <messages>
- <message type="error" send="privmsg" prefix="" />
- <message type="info" send="privmsg" prefix="" />
- <message type="query" send="privmsg" prefix="" />
- <message type="reply" send="privmsg" prefix="" />
- </messages>
- <!-- Phases timeouts.
- | The amount of time the bot would wait (in seconds)
- | before it forces passing to the next step of the game.
- | E.g. if the seer has not decided who he wants
- | the bot to reveal the identity and the timeout is reach,
- | the bot will automatically go to the next step (and say it to the seer).
- | 0 means to not force step (no timeout).
- |
- | Putting a timeout for the day phase is not a good idea!
- -->
- <phases_timeout day="0"
- captain="0"
- captain_succession="60"
- seer="80"
- sorcerer="30"
- cupid="40"
- hunter="0"
- thievish="30"
- wait_play="120"
- wait_werewolves="180"
- werewolf="60" />
- <!-- Rate control. These settings prevent the bot from flooding, and let it
- | readable.
- |
- | "talk_speed" is the talking speed in number of characters per seconds.
- | "max_mode_params" is the maximum number of players the bot can mode in
- | a single command. Check it in the irc server's config.
- | E.g. with "3" it will voice 3 players at the same time
- | using /mode +vvv player1 player2 player3
- |
- | "max_whois_params" is the same as "max_mode_params" but for /whois.
- | /whois are currently used by the bot only if you use the regnick flag
- | in the identification variables above. Otherwise /who is enougth.
- | E.g. with "4" it will whois 4 players at the same time
- | using /whois player1,player2,player3,player4
- |
- | "mode_speed" The number of modes the bot can do per seconds
- | Count 4 modes for doing something like +mnsi
- -->
- <rate talk_speed="20" mode_speed="1"
- max_mode_params="3" max_whois_params="4" />
- </lycaconf>
Add Comment
Please, Sign In to add comment