Advertisement
Guest User

CraftIRC config.yaml

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