Advertisement
Guest User

Untitled

a guest
Jan 7th, 2013
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 13.84 KB | None | 0 0
  1. #######################################
  2. #### CraftIRC 3 configuration file ####
  3. #######################################
  4.  
  5. # Welcome, new user! Please read carefully:
  6.  
  7. # CraftIRC is a very powerful and flexible tool for all your communication needs. Being fully customizable, it TAKES SOME TIME TO SET UP.
  8. # Please set aside half an hour to READ THIS FILE CAREFULLY and configure everything according to your needs. If you don't, CraftIRC
  9. #   will NOT WORK PROPERLY.
  10. # The CraftIRC developers can be found on #craftirc in irc.esper.net . Read the topic on arrival. If you have a specific issue you need
  11. #   help with and we are around, we will help. BUT WE WILL NOT SET UP CRAFTIRC FOR YOU. If you don't want to/can't do this yourself, try
  12. #   asking a friend or maybe if you're really lucky a user in #craftirc is feeling generous ;)
  13.  
  14. # Recommendations: http://instantyaml.appspot.com/ (the output doesn't matter, just see if there are errors) ; save as UTF-8 ; use a text
  15. #   editor with YAML syntax highlighting to make the file more readable.
  16.  
  17. # ******************* MISCELLANEOUS SETTINGS *******************
  18. settings:
  19.   #These tags identify built-in endpoints (for the paths: section). Other endpoints may be provided by plugins.
  20.   minecraft-tag: 'minecraft'  #A basic game-side endpoint (a chat plugin may provide better functionality).
  21.   cancelled-tag: 'cancelled'           #Cancelled chat is sent here. Give this tag a name only if you disable either auto-paths or minecraft-tag
  22.   console-tag: 'console'      #The minecraft server console.
  23.  
  24.   #Automatically establish paths between unsecured communication endpoints. Turn off if you always want to configure every path manually.
  25.   #(Secured endpoints can still send messages through auto-paths, but not receive them)
  26.   auto-paths: false
  27.  
  28.   # If set, this character will be inserted after each character ("abc" -> "a_b_c_") to prevent IRC highlights
  29.   # The default value, "\u200B", is the unicode zero width space. "\x0f" (irc formatting reset code) might work too.
  30.   # Double quotes are important in yaml when using character escapes like these!
  31.   # anti-highlight: "\u200B"
  32.  
  33.   #Paths between endpoints within the same group are not established. These groups will be created automatically (set to '' to disable):
  34.   #*For the three endpoints above
  35.   minecraft-group-name: 'minecraft'
  36.   #*For all your IRC endpoints
  37.   irc-group-name: 'irc'
  38.  
  39.   #Here you can define custom tag groups.
  40.   tag-groups:
  41.  #  group-name:
  42.   #    - tagname
  43.   #    - ...
  44.  
  45.   #Set this to true to have CraftIRC cancel all minecraft chat if no other plugin is doing it.
  46.   cancel-chat: false
  47.  
  48.   #IRC commands start with this, for example '.players' (it's not part of the command name though)
  49.   command-prefix: '.'
  50.  
  51.   #Use different words for IRC commands
  52.   irc-commands:
  53.     say: ['say','mc']
  54.     players: ['players']
  55.     cmd: ['cmd','c']
  56.  
  57.   #Output a LOT of crap to the console in case you're having problems or are a plugin developer.
  58.   debug: false
  59.  
  60.   #Console commands that can be called by an admin using .cmd/.c in an admin channel
  61.   console-commands: ['reload', 'save-all']
  62.  
  63.   #Delay before allowing these event types to be relayed (prevent startup flood)
  64.   hold-after-enable: {chat: 0, joins: 0, quits: 0, kicks: 0, bans: 0}
  65.  
  66.   #How long in seconds before attempting a reconnect/rejoin when a connection/join fails.
  67.   retry-delay: 10
  68.  
  69.   #Bind to a specific IP address in your server.
  70.   #bind-address: 127.0.0.1
  71.  
  72.   #Default formatting templates used in all messages. Plugins may require you to add more.
  73.   formatting:
  74.    #### VARIABLES AND COLORS (from colormap): %name% (as in %message% or %yellow%). Different events provide different variables.
  75.     #### IRC FORMATTING: %b% %u% %r% %o% %k% %kNUM% (NUM is 0 to 15); Do the same as CTRL+key in mIRC (%o% uses'foreground')
  76.    
  77.     #==========Classic formatting==========
  78.     from-game:
  79.       chat: '(%sender%) %message%'
  80.       private: '(%sender%) %message%'
  81.       action: '* %sender% %message%'
  82.       join: '[%sender% connected]'
  83.       quit: '[%sender% disconnected]'
  84.       kick: '[%sender% was KICKED (%message%)]'
  85.       admin: '%sender% to online admins ->- %message%'
  86.       generic: '%message%'
  87.       death: '%message%'
  88.     from-irc:
  89.       chat: '[%srcChannel%] <%sender%> %message%'
  90.       private: '%sender% whispers> %message%'
  91.       action: '[%srcChannel%] * %sender% %message%'
  92.       join: '[%srcChannel%] * Joins: %sender%'
  93.       part: '[%srcChannel%] * Parts: %sender%'
  94.       quit: '[%srcChannel%] * Quits: %sender% (%message%)'
  95.       kick: '[%srcChannel%] * %sender% was kicked by %moderator% (%message%)'
  96.       nick: '[%srcChannel%] * %sender% is now known as %message%'
  97.       generic: '%message%'
  98.     from-plain:
  99.       action: '* %sender% %message%'
  100.       say: '[Server] %message%'
  101.     #======================================
  102.    
  103.     #==========Colorful formatting=========
  104.     #from-game:
  105.     #  chat: '<%prefix%%sender%%suffix%%o%> %message%'
  106.     #  private: '%prefix%%sender%%suffix%%o% whispers> %message%'
  107.     #  action: '%purple%* %prefix%%sender%%suffix%%purple% %message%'
  108.     #  join: '%darkgrey%[%sender% connected]'
  109.     #  quit: '%darkgrey%[%sender% disconnected]'
  110.     #  kick: '%red%[%sender% was KICKED (%message%)]'
  111.     #  generic: '%darkgrey%%message%'
  112.     #  admin: '%prefix%%sender%%suffix% to online admins> %message%'
  113.     #  death: '%red%%message%'
  114.     #from-irc:
  115.     #  chat: '%grey%[%srcChannel%]%foreground% <%ircPrefix%%sender%> %message%'
  116.     #  private: '%grey%[IRC]%foreground% %sender% whispers> %message%'
  117.     #  action: '%grey%[%srcChannel%]%purple% * %ircPrefix%%sender% %message%'
  118.     #  join: '%grey%[%srcChannel%]%darkgreen% * Joins: %sender%'
  119.     #  part: '%grey%[%srcChannel%]%darkgreen% * Parts: %sender%'
  120.     #  quit: '%grey%[%srcChannel%]%blue% * Quits: %sender%'
  121.     #  kick: '%grey%[%srcChannel%]%darkgreen% * %sender% was kicked by %ircModPrefix%%moderator%'
  122.     #  nick: '%grey%[%srcChannel%]%darkgreen% * %sender% is now known as %message%'
  123.     #  generic: '%grey%%message%'
  124.     #from-plain:
  125.     #  action: '%purple%* %sender%%purple% %message%'
  126.     #  say: '%magenta%[Server] %message%'
  127.     #======================================
  128.  
  129.  
  130. # ******************* IRC BOTS/SERVERS AND CHANNELS ******************* [CHANGES REQUIRED]
  131. # Every bot connects to one IRC server and can contain any amount of channels.
  132. # Every channel is a communication endpoint.
  133. bots:
  134.   - nickname: 'C14Bot'
  135.     server: 'irc.freenode.net'           # Change this to the IRC server you wish to connect to
  136.     port: 6667
  137.     userident: 'CraftIRC'              #Username/ident, anything you want
  138.     serverpass: ''                #This isn't the nickserv password
  139.     ssl: false
  140.    
  141.     #Prevent flood by setting a delay (in ms) between messages to IRC and a maximum queue size.
  142.     message-delay: 1000
  143.     queue-size: 5
  144.    
  145.     #Who's considered an admin within a channel?
  146.     admin-prefixes: ['@', '%']
  147.    
  148.     #Ignore a user by nickname in this server. For greater flexibility use path filters (see further below).
  149.     ignored-users: []
  150.    
  151.     #If the bot's nickname is registered, put the authentication info here.
  152.     auth:
  153.       method: 'nickserv' #Available methods: 'none', 'nickserv', 'gamesurge', 'quakenet'
  154.       username: ''
  155.       password: 'OHGOODNESSAPASSWORD?!'
  156.    
  157.     #Send raw IRC commands to the server every time I connect.  
  158.     on-connect:
  159.    # - 'PRIVMSG MyBoss :I live again!'
  160.    
  161.     ## Channels for this bot to join. ##
  162.     channels:
  163.    
  164.       - name: '#c14minecraft'
  165.         password: ''
  166.        
  167.         #Identifies this channel's endpoint (for the paths: section).
  168.         tag: 'c14minecraft'
  169.        
  170.         #Send raw IRC commands to the server every time I join this channel.
  171.         on-join:
  172.        # - 'PRIVMSG:Howdy don't.'
  173.        
  174.         # Ignore the +c mode and try sending colors anyway if there are colors in a message
  175.         force-colors: false
  176.        
  177.       #- name: '#anotherchannel'
  178.       #  ...
  179.      
  180.     #Define here alternative display names for users of your IRC channels (useful if you want anonymous admins).
  181.     #To override these in a formatting string use %realSender%.
  182.     irc-nickname-map:
  183.    #  Animosity: Ytisomina
  184.  
  185.     #Set this to true if you only want the above nicknames to be able to communicate from IRC. Everyone else will be filtered.
  186.     use-map-as-whitelist: false
  187.        
  188.   #- nickname: 'AnotherBot'
  189.   #  ...
  190.  
  191.  
  192. # ******************* COMMUNICATION PATHS *******************
  193. # (For most uses, only needed if settings.auto-paths is false)
  194. # Declare here a path for every pair of endpoints between which you want messages to flow.
  195. # For each path you can filter the messages sent by event type or contents.
  196. # Paths are one-way, so you must declare A to B and B to A if you want a two-way channel.
  197. paths:
  198.  - source: 'minecraft'
  199.    target: 'c14minecraft'
  200.    
  201.  - source: 'c14minecraft'     # These are endpoint tags
  202.    target: 'minecraft'    #
  203.  
  204.  - source: 'dynmap'
  205.    target: 'c14minecraft'
  206.  
  207.  - source: 'c14minecraft'
  208.    target: 'dynmap'
  209.  
  210.   #  #Every path can contain a list of filters. Use for swear word censorship, blocking by user, etc.
  211.   #  filters:
  212.   #    #Each filter contains regular expressions for formatting variables. This one ignores commands (.TEXT)
  213.   #    - message: '^\.[^ ]+'
  214.   #
  215.   #  #Every path can override the formatting strings defined in settings.formatting .
  216.   #  formatting:
  217.   #  #  chat: '[%srcChannel%] <%sender%> %message%'
  218.   #  #  join: '[%srcChannel%] * Joins: %sender%'
  219.   #    
  220.   #  #Every path can override the attributes block from default-attributes (see below).
  221.   #  attributes:
  222.   #  #  admin: false
  223.   #  #  ...
  224.   #  
  225.   #  #A path can inherit missing attributes from another existing path rather than from default-attributes.
  226.   #  #base: {source: 'minecraft', target: 'changeme'}
  227.   #  
  228.   #  #The disable flag allows you to disable a path temporarily without removing it from the configuration file.
  229.   #  disable: false
  230.      
  231.   #- source: 'somewhere'
  232.   #  target: 'elsewhere'
  233.   #  ...
  234.  
  235.  
  236. # ******************* DEFAULT PATH ATTRIBUTES ******************* [CHANGES REQUIRED]
  237. # If an attribute isn't defined in a path, these are used.
  238. # If an attribute isn't defined here either, it defaults to 'false'.
  239. default-attributes:
  240.   #Disables all communication paths. No message will be sent anywhere.
  241.   #If you don't set this to false, CraftIRC may not work!
  242.   disable: false
  243.  
  244.   #Every event type (they're the same as the names in settings.formatting) can be enabled or disabled here.
  245.   #In addition, commands (such as those handled by other plugins) may require you to define extra attributes.
  246.   attributes:
  247.  
  248.     chat: true
  249.     action: true
  250.     join: true
  251.     part: true
  252.     nick: true
  253.     quit: true
  254.     kick: true
  255.     private: true
  256.     command: true
  257.     say: true
  258.     generic: true
  259.     death: true
  260.    
  261.     #Admin commands and /admins! can only be sent through a path where admin is set to true
  262.     admin: false
  263.    
  264.     #True: Colors will be converted. False: Colors will be stripped.
  265.     colors: true
  266.  
  267.  
  268. # ******************* COLOR CONVERSION MAP *******************
  269. # Here you can assign 3-tuples with names, IRC colors and Minecraft colors.
  270. # You must never repeat a name, an irc color or a minecraft color in more than one 3-tuple.
  271. # Use %colorname% in a formatting string to have the correct color show up in the message.
  272. colormap:
  273.   - {irc: 0, game: "\u00A70", name: 'background'}
  274.   - {irc: 2, game: "\u00A71", name: 'navy'}
  275.   - {irc: 3, game: "\u00A72", name: 'darkgreen'}
  276.   - {irc: 10, game: "\u00A73", name: 'teal'}
  277.   - {irc: 5, game: "\u00A74", name: 'maroon'}
  278.   - {irc: 6, game: "\u00A75", name: 'purple'}
  279.   - {irc: 7, game: "\u00A76", name: 'orange'}
  280.   - {irc: 15, game: "\u00A77", name: 'grey'}
  281.   - {irc: 14, game: "\u00A78", name: 'darkgrey'}
  282.   - {irc: 12, game: "\u00A79", name: 'blue'}
  283.   - {irc: 9, game: "\u00A7a", name: 'green'}
  284.   - {irc: 11, game: "\u00A7b", name: 'cyan'}
  285.   - {irc: 4, game: "\u00A7c", name: 'red'}
  286.   - {irc: 13, game: "\u00A7d", name: 'magenta'}
  287.   - {irc: 8, game: "\u00A7e", name: 'yellow'}
  288.   - {irc: 1, game: "\u00A7f", name: 'foreground'}
  289.  
  290.  
  291. # ******************* REPLACEMENT FILTERS *******************
  292. # This section allows you to set up find and replace rules on
  293. # every section of every message sent by CraftIRC.
  294.  
  295. # If you want to delete messages instead you should use the path filters, above.
  296.  
  297. # Each filter contains regular expressions for formatting variables.
  298.  
  299. # For example, you can change the prefix of IRC Channel Operators to something
  300. # different by executing a replacement on the %ircPrefix% variable.
  301.  
  302. # filters:
  303. #   ircPrefix: ['@' : 'Op ']
  304.  
  305. # Or you could censor IP addresses to and from chat.
  306.  
  307. # filters:
  308. #   message: ['(\d+\.){3}\d+' : '#.#.#.#']
  309.  
  310. # When writing searches, the following characters have special meanings:
  311. # ^ $ . + ? * { } [ ] ( )
  312. # If you want to use these characters normally, escape them with a backslash \.
  313. # When writing the replacement, make sure you escape any $ or \ characters
  314. # with an additional \ unless you want to use backreferences.
  315.  
  316. # Example: Changing emoticon ^_^ to $_$
  317.  
  318. # filters:
  319. #   message: ['\^_\^' : '\$_\$']
  320.  
  321. # To delete a search, use an empty replacement, or none at all.
  322.  
  323. # This example shows two ways of deleting. The searches are xxx and yyy.
  324.  
  325. # filters:
  326. #   message: [xxx, yyy : '']
  327.  
  328. # Remember that any list can be written in two ways.
  329. # filters:
  330. #   prefix: ['mod' : 'Mod', 'adm' : 'Admin']
  331.  
  332. # is equivalent to
  333.  
  334. # filters:
  335. #   prefix:
  336. #   - 'mod' : 'Mod'
  337. #   - 'adm' : 'Admin'
  338. filters:
  339.   command: []
  340.   source: []
  341.   target: []
  342.   prefix: []
  343.   suffix: []
  344.   sender: []
  345.   realSender: []
  346.   message: []
  347.   moderator: []
  348.   world: []
  349.  
  350. # IRC only variables:
  351.   ircPrefix: []
  352.   realModerator: []
  353.   ircModPrefix: []
  354.   modUsername: []
  355.   modHostname: []
  356.   srcChannel: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement