Advertisement
Guest User

Untitled

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