Scratch69

Untitled

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