Advertisement
Guest User

iratest

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