Nessiesson

Untitled

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