Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.60 KB | None | 0 0
  1. #######################################
  2.  
  3. #### CraftIRC 3 configuration file ####
  4.  
  5. #######################################
  6.  
  7.  
  8.  
  9. # Welcome, new user! Please read carefully:
  10.  
  11.  
  12.  
  13. # CraftIRC is a very powerful and flexible tool for all your communication needs. Being fully customizable, it TAKES SOME TIME TO SET UP.
  14.  
  15. # Please set aside half an hour to READ THIS FILE CAREFULLY and configure everything according to your needs.
  16.  
  17.  
  18.  
  19. # If you don't follow these instructions, CraftIRC will NOT WORK PROPERLY! Pay special attention to sections marked as [CHANGES REQUIRED]
  20.  
  21.  
  22.  
  23. # 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
  24.  
  25. # 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
  26.  
  27. # asking a friend or maybe if you're really lucky a user in #craftirc is feeling generous ;)
  28.  
  29.  
  30.  
  31. # Recommendations: http://instantyaml.appspot.com/ (the output doesn't matter, just see if there are errors) ; save as UTF-8 ; use a text
  32.  
  33. # editor with YAML syntax highlighting to make the file more readable.
  34.  
  35.  
  36.  
  37. # ******************* MISCELLANEOUS SETTINGS *******************
  38.  
  39. settings:
  40.  
  41.  
  42.  
  43. #These tags idenmify built-in endpoints (for the paths: section). Other endpoints may be provided by plugins.
  44.  
  45. minecraft-tag: 'minecraft' #A basic game-side endpoint (a chat plugin may provide better functionality).
  46.  
  47. cancelled-tag: 'canceled' #Cancelled chat is sent here. Give this tag a name to handle messages cancelled by a chat plugin.
  48.  
  49. console-tag: 'console' #The minecraft server console. Handles /say and .cmd.
  50.  
  51.  
  52.  
  53. #Automatically establish paths between unsecured communication endpoints. Turn off if you always want to configure every path manually.
  54.  
  55. #(Secured endpoints can still send messages through auto-paths, but not receive them)
  56.  
  57. auto-paths: true
  58.  
  59.  
  60.  
  61. # If set, this character will be inserted after each character ("abc" -> "a_b_c_") to prevent IRC highlights
  62.  
  63. # The default value, "\u200B", is the unicode zero width space. "\x0f" (irc formatting reset code) might work too.
  64.  
  65. # Double quotes are important in yaml when using character escapes like these!
  66.  
  67. # anti-highlight: "\u200B"
  68.  
  69.  
  70.  
  71. #Paths between endpoints within the same group are not established. These groups will be created automatically (set to '' to disable):
  72.  
  73. #*For the three endpoints above
  74.  
  75. minecraft-group-name: 'minecraft'
  76.  
  77. #*For all your IRC endpoints
  78.  
  79. irc-group-name: 'irc'
  80.  
  81.  
  82.  
  83. #Here you can define custom tag groups.
  84.  
  85. tag-groups:
  86.  
  87. # group-name:
  88.  
  89. # - tagname
  90.  
  91. # - ...
  92.  
  93.  
  94.  
  95. #Set this to true to have CraftIRC cancel all minecraft chat if no other plugin is doing it.
  96.  
  97. cancel-chat: false
  98.  
  99.  
  100.  
  101. # If true, any messages appearing to anyone in minecraft chat will be logged by the tag of the endpoint they came from
  102.  
  103. log: true
  104.  
  105.  
  106.  
  107. #IRC commands start with this, for example '.players' (it's not part of the command name though)
  108.  
  109. command-prefix: '.'
  110.  
  111.  
  112.  
  113. #Use different words for IRC commands. This won't add additional irc commands, only aliases for the existing ones.
  114.  
  115. irc-commands:
  116.  
  117. players: ['list','who','players']
  118.  
  119. cmd: ['cmd','x']
  120.  
  121.  
  122.  
  123.  
  124.  
  125. #Output a LOT of crap to the console in case you're having problems or are a plugin developer.
  126.  
  127. debug: false
  128.  
  129.  
  130.  
  131. #Console commands that can be called by an admin using .cmd/.c
  132.  
  133. #This is restricted to:
  134.  
  135. # - Any irc channel when admin is enabled in default-attributes
  136.  
  137. # - For manual paths: irc to console paths with admin attribute
  138.  
  139. # - IRC users matching admin-prefixes in the bot section below (usually channel OPs or owners)
  140.  
  141. #Use '*' to enable all commands. Use with care only if you understand the restrictions above.
  142.  
  143. console-commands: ['*']
  144.  
  145.  
  146.  
  147. #Delay before allowing these event types to be relayed (prevent startup flood)
  148.  
  149. hold-after-enable: {chat: 0, joins: 0, quits: 0, kicks: 0, bans: 0}
  150.  
  151.  
  152.  
  153. #How long in seconds before attempting a reconnect/rejoin when a connection/join fails.
  154.  
  155. retry-delay: 5
  156.  
  157.  
  158.  
  159. #Bind to a specific IP address in your server. If you're not sure what this means, don't set it.
  160.  
  161. #bind-address: 127.0.0.1
  162.  
  163.  
  164.  
  165. #Default formatting templates used in all messages. Plugins may require you to add more.
  166.  
  167. formatting:
  168.  
  169. #### VARIABLES AND COLORS (from colormap): %name% (as in %message% or %yellow%). Different events provide different variables.
  170.  
  171. #### IRC FORMATTING: %b% %u% %r% %o% %k% %kNUM% (NUM is 0 to 15); Do the same as CTRL+key in mIRC (%o% uses'foreground')
  172.  
  173.  
  174.  
  175. #==========Colorful formatting=========
  176.  
  177. from-game:
  178.  
  179. chat: '<%sender%%o%> %message%'
  180.  
  181. private: '%sender%%o% whispers> %message%'
  182.  
  183. action: '%purple%* %sender%%purple% %message%'
  184.  
  185. join: '%yellow%%sender% joined the game'
  186.  
  187. quit: '%yellow%%sender% left the game'
  188.  
  189. kick: '%red%%sender% was kicked for (%message%)'
  190.  
  191. generic: '%darkgrey%%message%'
  192.  
  193. admin: '%blue%%sender% to online admins> %message%'
  194.  
  195. say: '[Server] %message%'
  196.  
  197. death: '%red%%message%'
  198.  
  199. players-list: 'Online (%playerCount%/%maxPlayers%): %message%'
  200.  
  201. players-nobody: 'Nobody is minecrafting right now.'
  202.  
  203. from-irc:
  204.  
  205. chat: '<%purple%%sender%%reset%> %message%'
  206.  
  207. private: '%grey%[IRC]%foreground% %sender% whispers> %message%'
  208.  
  209. action: ' %purple% * %sender% %message%'
  210.  
  211. join: '%purple%%sender% joined IRC'
  212.  
  213. part: '%purple%%sender% left IRC'
  214.  
  215. quit: '%purple%%sender% left IRC'
  216.  
  217. kick: '%red% * %sender% was kicked by %%moderator%'
  218.  
  219. nick: '%purple% %sender% is now known as %message%'
  220.  
  221. notice: '[%purple%NOTICE%foreground% %sender%] %message%'
  222.  
  223. generic: '%grey%%message%'
  224.  
  225. mode: '%darkgreen% * %moderator% sets mode %message%'
  226.  
  227. from-plain:
  228.  
  229. action: '%purple%* %sender%%purple% %message%'
  230.  
  231. say: '%magenta%[Server] %message%'
  232.  
  233. #======================================
  234.  
  235.  
  236.  
  237.  
  238.  
  239. # ******************* IRC BOTS/SERVERS AND CHANNELS ******************* [CHANGES REQUIRED]
  240.  
  241. # Every bot connects to one IRC server and can contain any amount of channels.
  242.  
  243. # Every channel is a communication endpoint.
  244.  
  245. bots:
  246.  
  247.  
  248.  
  249. - nickname: 'MineSpectrum'
  250.  
  251. server: 'irc.esper.net' # Change this to the IRC server you wish to connect to
  252.  
  253. port: 6667
  254.  
  255. userident: 'bot' #Username/ident, anything you want
  256.  
  257. serverpass: '' #This isn't the nickserv password
  258.  
  259. ssl: false
  260.  
  261. encoding: 'UTF-8'
  262.  
  263.  
  264.  
  265. #Prevent flood by setting a delay (in ms) between messages to IRC and a maximum queue size.
  266.  
  267. message-delay: 0
  268.  
  269. queue-size: 5
  270.  
  271.  
  272.  
  273. #Who's considered an admin within a channel?
  274.  
  275. admin-prefixes: ['@']
  276.  
  277.  
  278.  
  279. #Ignore a user by nickname in this server. For greater flexibility use path filters (see further below).
  280.  
  281. ignored-users: []
  282.  
  283.  
  284.  
  285. #If the bot's nickname is registered, put the authentication info here.
  286.  
  287. auth:
  288.  
  289. method: 'nickserv' #Available methods: 'none', 'nickserv', 'gamesurge', 'quakenet'
  290.  
  291. username: ''
  292.  
  293. password: ''
  294.  
  295. delay: 1000 # Milliseconds to wait after authenticating before joining channels.
  296.  
  297.  
  298.  
  299. #Send raw IRC commands to the server every time I connect.
  300.  
  301. on-connect:
  302.  
  303. # - 'PRIVMSG MyBoss :I live again!'
  304.  
  305.  
  306.  
  307. ## Channels for this bot to join. ##
  308.  
  309. channels:
  310.  
  311.  
  312.  
  313. - name: '#MineSpectrum'
  314.  
  315. password: ''
  316.  
  317.  
  318.  
  319. #Identifies this channel's endpoint (for the paths: section).
  320.  
  321. tag: 'IRCC'
  322.  
  323.  
  324.  
  325. #Send raw IRC commands to the server every time I join this channel.
  326.  
  327. on-join:
  328.  
  329. #- 'PRIVMSG #MineSpectrum :'
  330.  
  331.  
  332.  
  333. # Ignore the +c mode and try sending colors anyway if there are colors in a message
  334.  
  335. force-colors: true
  336.  
  337.  
  338.  
  339.  
  340.  
  341. #- name: '#MineSpectruml'
  342.  
  343. # ...
  344.  
  345.  
  346.  
  347. #Define here alternative display names for users of your IRC channels (useful if you want anonymous admins).
  348.  
  349. #To override these in a formatting string use %realSender%.
  350.  
  351. irc-nickname-map:
  352.  
  353. # Animosity: Ytisomina
  354.  
  355.  
  356.  
  357. #Set this to true if you only want the above nicknames to be able to communicate from IRC. Everyone else will be filtered.
  358.  
  359. use-map-as-whitelist: false
  360.  
  361.  
  362.  
  363. #- nickname: 'AnotherBot'
  364.  
  365. # ...
  366.  
  367.  
  368.  
  369.  
  370.  
  371. # ******************* COMMUNICATION PATHS *******************
  372.  
  373. # (For most uses, only needed if settings.auto-paths is false. Skip this section otherwise.)
  374.  
  375. # Declare here a path for every pair of endpoints between which you want messages to flow.
  376.  
  377. # For each path you can filter the messages sent by event type or contents.
  378.  
  379. # Paths are one-way, so you must declare A to B and B to A if you want a two-way channel.
  380.  
  381. paths:
  382.  
  383.  
  384.  
  385. #- source: 'minecraft'
  386.  
  387. # target: 'changeme'
  388.  
  389.  
  390.  
  391. #- source: 'changeme' # These are endpoint tags
  392.  
  393. # target: 'minecraft' #
  394.  
  395. #
  396.  
  397. # #Every path can contain a list of filters that block any matched messages.
  398.  
  399. # #To replace instead of blocking, see the replacement filters section below.
  400.  
  401. # filters:
  402.  
  403. # #Each filter contains regular expressions for formatting variables. This one ignores commands (.TEXT)
  404.  
  405. # - message: '^\.[^ ]+'
  406.  
  407. # #Slightly more advanced example, ignores specific messages from a specific user.
  408.  
  409. # - sender: '^Lain.*$'
  410.  
  411. # message: "\x0312Automsg\x0304"
  412.  
  413. #
  414.  
  415. # #Every path can override the formatting strings defined in settings.formatting .
  416.  
  417. # formatting:
  418.  
  419. # # chat: '[%srcChannel%] <%sender%> %message%'
  420.  
  421. # # join: '[%srcChannel%] * Joins: %sender%'
  422.  
  423. #
  424.  
  425. # #Every path can override the attributes block from default-attributes (see below).
  426.  
  427. # attributes:
  428.  
  429. # # admin: false
  430.  
  431. # # ...
  432.  
  433. #
  434.  
  435. # #A path can inherit missing attributes from another existing path rather than from default-attributes.
  436.  
  437. # #base: {source: 'minecraft', target: 'changeme'}
  438.  
  439. #
  440.  
  441. # #The disable flag allows you to disable a path temporarily without removing it from the configuration file.
  442.  
  443. # disable: false
  444.  
  445.  
  446.  
  447. #- source: 'somewhere'
  448.  
  449. # target: 'elsewhere'
  450.  
  451. # ...
  452.  
  453.  
  454.  
  455.  
  456.  
  457. # ******************* DEFAULT PATH ATTRIBUTES ******************* [CHANGES REQUIRED]
  458.  
  459. # If an attribute isn't defined in a path, these are used.
  460.  
  461. # If an attribute isn't defined here either, it defaults to 'false'.
  462.  
  463. default-attributes:
  464.  
  465.  
  466.  
  467. #Disables all communication paths. No message will be sent anywhere.
  468.  
  469. #If you don't set this to false, CraftIRC may not work!
  470.  
  471. disable: false
  472.  
  473. #Every event type (they're the same as the names in settings.formatting) can be enabled or disabled here.
  474.  
  475. #In addition, commands (such as those handled by other plugins) may require you to define extra attributes.
  476.  
  477. attributes:
  478.  
  479.  
  480.  
  481. chat: true
  482.  
  483. action: true
  484.  
  485. join: true
  486.  
  487. part: true
  488.  
  489. nick: true
  490.  
  491. quit: true
  492.  
  493. kick: true
  494.  
  495. private: true
  496.  
  497. command: true
  498.  
  499. say: true
  500.  
  501. generic: true
  502.  
  503. death: true
  504.  
  505. mode: false
  506.  
  507. notice: true
  508.  
  509.  
  510.  
  511. #Admin commands and /admins! can only be sent through a path where admin is set to true
  512.  
  513. admin: true
  514.  
  515.  
  516.  
  517. #True: Colors will be converted. False: Colors will be stripped.
  518.  
  519. colors: true
  520.  
  521.  
  522.  
  523. # List of event types that should be sent as NOTICE on irc
  524.  
  525. notices:
  526.  
  527. admin: true
  528.  
  529. private: true
  530.  
  531.  
  532.  
  533.  
  534.  
  535. # ******************* COLOR CONVERSION MAP *******************
  536.  
  537. # Here you can assign 3-tuples with names, IRC colors and Minecraft colors.
  538.  
  539. # You must never repeat a name, an irc color or a minecraft color in more than one 3-tuple.
  540.  
  541. # Use %colorname% in a formatting string to have the correct color show up in the message.
  542.  
  543. colormap:
  544.  
  545. - {irc: 0, game: "\u00A70", name: 'background'}
  546.  
  547. - {irc: 2, game: "\u00A71", name: 'navy'}
  548.  
  549. - {irc: 3, game: "\u00A72", name: 'darkgreen'}
  550.  
  551. - {irc: 10, game: "\u00A73", name: 'teal'}
  552.  
  553. - {irc: 5, game: "\u00A74", name: 'maroon'}
  554.  
  555. - {irc: 6, game: "\u00A75", name: 'purple'}
  556.  
  557. - {irc: 7, game: "\u00A76", name: 'orange'}
  558.  
  559. - {irc: 15, game: "\u00A77", name: 'grey'}
  560.  
  561. - {irc: 14, game: "\u00A78", name: 'darkgrey'}
  562.  
  563. - {irc: 12, game: "\u00A79", name: 'blue'}
  564.  
  565. - {irc: 9, game: "\u00A7a", name: 'green'}
  566.  
  567. - {irc: 11, game: "\u00A7b", name: 'cyan'}
  568.  
  569. - {irc: 4, game: "\u00A7c", name: 'red'}
  570.  
  571. - {irc: 13, game: "\u00A7d", name: 'magenta'}
  572.  
  573. - {irc: 8, game: "\u00A7e", name: 'yellow'}
  574.  
  575. - {irc: 1, game: "\u00A7f", name: 'foreground'}
  576.  
  577. - {irc: -1, game: "\u00A7r", name: 'reset'}
  578.  
  579.  
  580.  
  581.  
  582.  
  583. # ******************* REPLACEMENT FILTERS *******************
  584.  
  585. # This section allows you to set up find and replace rules on
  586.  
  587. # every section of every message sent by CraftIRC.
  588.  
  589.  
  590.  
  591. # If you want to delete messages instead you should use the path filters, above.
  592.  
  593.  
  594.  
  595. # Each filter contains regular expressions for formatting variables.
  596.  
  597.  
  598.  
  599. # For example, you can change the prefix of IRC Channel Operators to something
  600.  
  601. # different by executing a replacement on the %ircPrefix% variable.
  602.  
  603.  
  604.  
  605. # filters:
  606.  
  607. # ircPrefix: ['@' : 'Op ']
  608.  
  609.  
  610.  
  611. # Or you could censor IP addresses to and from chat.
  612.  
  613.  
  614.  
  615. # filters:
  616.  
  617. # message: ['(\d+\.){3}\d+' : '#.#.#.#']
  618.  
  619.  
  620.  
  621. # When writing searches, the following characters have special meanings:
  622.  
  623. # ^ $ . + ? * { } [ ] ( )
  624.  
  625. # If you want to use these characters normally, escape them with a backslash \.
  626.  
  627. # When writing the replacement, make sure you escape any $ or \ characters
  628.  
  629. # with an additional \ unless you want to use backreferences.
  630.  
  631.  
  632.  
  633. # Example: Changing emoticon ^_^ to $_$
  634.  
  635.  
  636.  
  637. # filters:
  638.  
  639. # message: ['\^_\^' : '\$_\$']
  640.  
  641.  
  642.  
  643. # To delete a search, use an empty replacement, or none at all.
  644.  
  645.  
  646.  
  647. # This example shows two ways of deleting. The searches are xxx and yyy.
  648.  
  649.  
  650.  
  651. # filters:
  652.  
  653. # message: [xxx, yyy : '']
  654.  
  655.  
  656.  
  657. # Remember that any list can be written in two ways.
  658.  
  659. # filters:
  660.  
  661. # prefix: ['mod' : 'Mod', 'adm' : 'Admin']
  662.  
  663.  
  664.  
  665. # is equivalent to
  666.  
  667.  
  668.  
  669. # filters:
  670.  
  671. # prefix:
  672.  
  673. # - 'mod' : 'Mod'
  674.  
  675. # - 'adm' : 'Admin'
  676.  
  677. filters:
  678.  
  679. command: []
  680.  
  681. source: []
  682.  
  683. target: []
  684.  
  685. prefix: []
  686.  
  687. suffix: []
  688.  
  689. sender: []
  690.  
  691. realSender: []
  692.  
  693. message: []
  694.  
  695. moderator: []
  696.  
  697. world: []
  698.  
  699.  
  700.  
  701. # IRC only variables:
  702.  
  703. ircPrefix: []
  704.  
  705. realModerator: []
  706.  
  707. ircModPrefix: []
  708.  
  709. modUsername: []
  710.  
  711. modHostname: []
  712.  
  713. srcChannel: []
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement