Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 14.51 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 chat is sent here. Give this tag a name to handle messages cancelled by a chat plugin.
  22.   console-tag: 'console'      #The minecraft server console. Handles /say and .cmd.
  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.   # If true, any messages appearing to anyone in minecraft chat will be logged by the tag of the endpoint they came from
  49.   log: true
  50.  
  51.   #IRC commands start with this, for example '.players' (it's not part of the command name though)
  52.   command-prefix: '.'
  53.  
  54.   #Use different words for IRC commands. This won't add additional irc commands, only aliases for the existing ones.
  55.   irc-commands:
  56.     players: ['list']
  57.  
  58.   #Output a LOT of crap to the console in case you're having problems or are a plugin developer.
  59.   debug: false
  60.  
  61.   #Console commands that can be called by an admin using .cmd/.c
  62.   #This is restricted to:
  63.   # - Any irc channel when admin is enabled in default-attributes
  64.   # - For manual paths: irc to console paths with admin attribute
  65.   # - IRC users matching admin-prefixes in the bot section below (usually channel OPs or owners)
  66.   #Use '*' to enable all commands. Use with care only if you understand the restrictions above.
  67.   console-commands: ['reload', 'save-all']
  68.  
  69.   #Delay before allowing these event types to be relayed (prevent startup flood)
  70.   hold-after-enable: {chat: 0, joins: 0, quits: 0, kicks: 0, bans: 0}
  71.  
  72.   #How long in seconds before attempting a reconnect/rejoin when a connection/join fails.
  73.   retry-delay: 10
  74.  
  75.   #Bind to a specific IP address in your server. If you're not sure what this means, don't set it.
  76.   #bind-address: 127.0.0.1
  77.  
  78.   #Default formatting templates used in all messages. Plugins may require you to add more.
  79.   formatting:
  80.    #### VARIABLES AND COLORS (from colormap): %name% (as in %message% or %yellow%). Different events provide different variables.
  81.     #### IRC FORMATTING: %b% %u% %r% %o% %k% %kNUM% (NUM is 0 to 15); Do the same as CTRL+key in mIRC (%o% uses'foreground')
  82.    
  83.     #==========Classic formatting==========
  84.     #from-game:
  85.     #  chat: '(%sender%) %message%'
  86.     #  private: '(%sender%) %message%'
  87.     #  action: '* %sender% %message%'
  88.     #  join: '[%sender% connected]'
  89.     #  quit: '[%sender% disconnected]'
  90.     #  kick: '[%sender% was KICKED (%message%)]'
  91.     #  admin: '%sender% to online admins ->- %message%'
  92.     #  generic: '%message%'
  93.     #  death: '%message%'
  94.     #from-irc:
  95.     #  chat: '<%sender%> %message%'
  96.     #  private: '%sender% whispers> %message%'
  97.     #  action: '* %sender% %message%'
  98.     #  join: '* Joins: %sender%'
  99.     #  part: '* Parts: %sender%'
  100.     #  quit: '* Quits: %sender% (%message%)'
  101.     #  kick: '* %sender% was kicked by %moderator% (%message%)'
  102.     #  nick: '* %sender% is now known as %message%'
  103.     #  generic: '%message%'
  104.     #from-plain:
  105.     #  action: '* %sender% %message%'
  106.     #  say: '[Server] %message%'
  107.     #======================================
  108.    
  109.     #==========Colorful formatting=========
  110.     from-game:
  111.       chat: '<%prefix%%sender%%suffix%%o%> %message%'
  112.       private: '<%prefix%%sender%%suffix%%o% whispers> %message%'
  113.       action: '%purple%* %prefix%%sender%%suffix%%purple% %message%'
  114.       join: '%darkgrey%[%sender% connected to the Minecraft server]'
  115.       quit: '%darkgrey%[%sender% disconnected from the Minecraft server]'
  116.       kick: '%red%[%sender% was KICKED from the Minecraft server (%message%)]'
  117.       generic: '%darkgrey%%message%'
  118.       admin: '%prefix%%sender%%suffix% to online admins> %message%'
  119.       death: '%red%%message%'
  120.     from-irc:
  121.       chat: '%grey%[IRC]%foreground% <%sender%> %message%'
  122.       private: '%grey%[IRC]%foreground% <%sender% whispers> %message%'
  123.       action: '%purple% * %sender% %message%'
  124.       join: '%darkgreen% * %sender% joins %srcChannel%'
  125.       part: '%darkgreen% * %sender% parts %srcChannel%'
  126.       quit: '%blue% * %sender% quits %srcChannel%'
  127.       kick: '%darkgreen% * %sender% was kicked from %srcChannel% by %ircModPrefix%%moderator%'
  128.       nick: '%darkgreen% * %sender% is now known as %message%'
  129.       generic: '%grey%%message%'
  130.     from-plain:
  131.       action: '%purple%* %sender%%purple% %message%'
  132.       say: '%magenta%[Minecraft Server] %message%'
  133.     #======================================
  134.  
  135. # ******************* IRC BOTS/SERVERS AND CHANNELS ******************* [CHANGES REQUIRED]
  136. # Every bot connects to one IRC server and can contain any amount of channels.
  137. # Every channel is a communication endpoint.
  138. bots:
  139.   - nickname: 'MC-Bot'
  140.     server: 'irc.esper.net'           # Change this to the IRC server you wish to connect to
  141.     port: 6667
  142.     userident: 'mc-bot'              #Username/ident, anything you want
  143.     serverpass: ''                #This isn't the nickserv password
  144.     ssl: false
  145.     encoding: 'UTF-8'
  146.    
  147.     #Prevent flood by setting a delay (in ms) between messages to IRC and a maximum queue size.
  148.     message-delay: 1000
  149.     queue-size: 5
  150.    
  151.     #Who's considered an admin within a channel?
  152.     admin-prefixes: ['@', '%']
  153.    
  154.     #Ignore a user by nickname in this server. For greater flexibility use path filters (see further below).
  155.     ignored-users: []
  156.    
  157.     #If the bot's nickname is registered, put the authentication info here.
  158.     auth:
  159.       method: 'nickserv' #Available methods: 'none', 'nickserv', 'gamesurge', 'quakenet'
  160.       username: 'MC-Bot'
  161.       password: '...'
  162.       delay: 1000 # Milliseconds to wait after authenticating before joining channels.
  163.    
  164.     #Send raw IRC commands to the server every time I connect.  
  165.     on-connect:
  166.    # - 'PRIVMSG MyBoss :I live again!'
  167.    
  168.     ## Channels for this bot to join. ##
  169.     channels:
  170.    
  171.       - name: '#grid-world'
  172.         password: ''
  173.        
  174.         #Identifies this channel's endpoint (for the paths: section).
  175.         tag: 'gridworld'
  176.        
  177.         #Send raw IRC commands to the server every time I join this channel.
  178.         on-join:
  179.        # - 'PRIVMSG #changeme :Howdy do!'
  180.        
  181.         # Ignore the +c mode and try sending colors anyway if there are colors in a message
  182.         force-colors: false
  183.        
  184.       #- name: '#anotherchannel'
  185.       #  ...
  186.      
  187.     #Define here alternative display names for users of your IRC channels (useful if you want anonymous admins).
  188.     #To override these in a formatting string use %realSender%.
  189.     irc-nickname-map:
  190.    #  Animosity: Ytisomina
  191.  
  192.     #Set this to true if you only want the above nicknames to be able to communicate from IRC. Everyone else will be filtered.
  193.     use-map-as-whitelist: false
  194.        
  195.   #- nickname: 'AnotherBot'
  196.   #  ...
  197.  
  198.  
  199. # ******************* COMMUNICATION PATHS *******************
  200. # (For most uses, only needed if settings.auto-paths is false)
  201. # Declare here a path for every pair of endpoints between which you want messages to flow.
  202. # For each path you can filter the messages sent by event type or contents.
  203. # Paths are one-way, so you must declare A to B and B to A if you want a two-way channel.
  204. paths:
  205.   - source: 'gridworld'
  206.     target: 'bridge-global'
  207.   - source: 'bridge-global'
  208.     target: 'gridworld'
  209.   #  
  210.   #  #Every path can contain a list of filters that block any matched messages.
  211.   #  #To replace instead of blocking, see the replacement filters section below.
  212.   #  filters:
  213.   #    #Each filter contains regular expressions for formatting variables. This one ignores commands (.TEXT)
  214.   #    - message: '^\.[^ ]+'
  215.   #    #Slightly more advanced example, ignores specific messages from a specific user.
  216.   #    - sender: '^Lain.*$'
  217.   #      message: "\x0312Automsg\x0304"
  218.   #
  219.   #  #Every path can override the formatting strings defined in settings.formatting .
  220.   #  formatting:
  221.   #  #  chat: '[%srcChannel%] <%sender%> %message%'
  222.   #  #  join: '[%srcChannel%] * Joins: %sender%'
  223.   #    
  224.   #  #Every path can override the attributes block from default-attributes (see below).
  225.   #  attributes:
  226.   #  #  admin: false
  227.   #  #  ...
  228.   #  
  229.   #  #A path can inherit missing attributes from another existing path rather than from default-attributes.
  230.   #  #base: {source: 'minecraft', target: 'changeme'}
  231.   #  
  232.   #  #The disable flag allows you to disable a path temporarily without removing it from the configuration file.
  233.   #  disable: false
  234.      
  235.   #- source: 'somewhere'
  236.   #  target: 'elsewhere'
  237.   #  ...
  238.  
  239.  
  240. # ******************* DEFAULT PATH ATTRIBUTES ******************* [CHANGES REQUIRED]
  241. # If an attribute isn't defined in a path, these are used.
  242. # If an attribute isn't defined here either, it defaults to 'false'.
  243. default-attributes:
  244.   #Disables all communication paths. No message will be sent anywhere.
  245.   #If you don't set this to false, CraftIRC may not work!
  246.   disable: false
  247.  
  248.   #Every event type (they're the same as the names in settings.formatting) can be enabled or disabled here.
  249.   #In addition, commands (such as those handled by other plugins) may require you to define extra attributes.
  250.   attributes:
  251.  
  252.     chat: true
  253.     action: true
  254.     join: true
  255.     part: true
  256.     nick: true
  257.     quit: true
  258.     kick: true
  259.     private: true
  260.     command: true
  261.     say: true
  262.     generic: true
  263.     death: true
  264.    
  265.     #Admin commands and /admins! can only be sent through a path where admin is set to true
  266.     admin: false
  267.    
  268.     #True: Colors will be converted. False: Colors will be stripped.
  269.     colors: true
  270.  
  271.  
  272. # ******************* COLOR CONVERSION MAP *******************
  273. # Here you can assign 3-tuples with names, IRC colors and Minecraft colors.
  274. # You must never repeat a name, an irc color or a minecraft color in more than one 3-tuple.
  275. # Use %colorname% in a formatting string to have the correct color show up in the message.
  276. colormap:
  277.   - {irc: 0, game: "\u00A70", name: 'background'}
  278.   - {irc: 2, game: "\u00A71", name: 'navy'}
  279.   - {irc: 3, game: "\u00A72", name: 'darkgreen'}
  280.   - {irc: 10, game: "\u00A73", name: 'teal'}
  281.   - {irc: 5, game: "\u00A74", name: 'maroon'}
  282.   - {irc: 6, game: "\u00A75", name: 'purple'}
  283.   - {irc: 7, game: "\u00A76", name: 'orange'}
  284.   - {irc: 15, game: "\u00A77", name: 'grey'}
  285.   - {irc: 14, game: "\u00A78", name: 'darkgrey'}
  286.   - {irc: 12, game: "\u00A79", name: 'blue'}
  287.   - {irc: 9, game: "\u00A7a", name: 'green'}
  288.   - {irc: 11, game: "\u00A7b", name: 'cyan'}
  289.   - {irc: 4, game: "\u00A7c", name: 'red'}
  290.   - {irc: 13, game: "\u00A7d", name: 'magenta'}
  291.   - {irc: 8, game: "\u00A7e", name: 'yellow'}
  292.   - {irc: 1, game: "\u00A7f", name: 'foreground'}
  293.   - {irc: -1, game: "\u00A7r", name: 'reset'}
  294.  
  295.  
  296. # ******************* REPLACEMENT FILTERS *******************
  297. # This section allows you to set up find and replace rules on
  298. # every section of every message sent by CraftIRC.
  299.  
  300. # If you want to delete messages instead you should use the path filters, above.
  301.  
  302. # Each filter contains regular expressions for formatting variables.
  303.  
  304. # For example, you can change the prefix of IRC Channel Operators to something
  305. # different by executing a replacement on the %ircPrefix% variable.
  306.  
  307. # filters:
  308. #   ircPrefix: ['@' : 'Op ']
  309.  
  310. # Or you could censor IP addresses to and from chat.
  311.  
  312. # filters:
  313. #   message: ['(\d+\.){3}\d+' : '#.#.#.#']
  314.  
  315. # When writing searches, the following characters have special meanings:
  316. # ^ $ . + ? * { } [ ] ( )
  317. # If you want to use these characters normally, escape them with a backslash \.
  318. # When writing the replacement, make sure you escape any $ or \ characters
  319. # with an additional \ unless you want to use backreferences.
  320.  
  321. # Example: Changing emoticon ^_^ to $_$
  322.  
  323. # filters:
  324. #   message: ['\^_\^' : '\$_\$']
  325.  
  326. # To delete a search, use an empty replacement, or none at all.
  327.  
  328. # This example shows two ways of deleting. The searches are xxx and yyy.
  329.  
  330. # filters:
  331. #   message: [xxx, yyy : '']
  332.  
  333. # Remember that any list can be written in two ways.
  334. # filters:
  335. #   prefix: ['mod' : 'Mod', 'adm' : 'Admin']
  336.  
  337. # is equivalent to
  338.  
  339. # filters:
  340. #   prefix:
  341. #   - 'mod' : 'Mod'
  342. #   - 'adm' : 'Admin'
  343. filters:
  344.   command: []
  345.   source: []
  346.   target: []
  347.   prefix: []
  348.   suffix: []
  349.   sender: []
  350.   realSender: []
  351.   message: []
  352.   moderator: []
  353.   world: []
  354.  
  355. # IRC only variables:
  356.   ircPrefix: []
  357.   realModerator: []
  358.   ircModPrefix: []
  359.   modUsername: []
  360.   modHostname: []
  361.   srcChannel: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement