Advertisement
Guest User

Untitled

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