Advertisement
Guest User

QAPlugin_CONFIG

a guest
Mar 21st, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.24 KB | None | 0 0
  1. # ------------------------------ #
  2. #
  3. # QAPlugin 1
  4. # (c) Maxim Van de Wynckel
  5. #
  6. # ------------------------------ #
  7.  
  8. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  9. # GENERAL PLUGIN SETTINGS
  10. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  11.  
  12. ## Config version (DO NOT EDIT)
  13. config: 2
  14.  
  15. ## Language file
  16. lang: 'en'
  17.  
  18. ## Debug mode
  19. debug: false
  20.  
  21. ## Log to file
  22. log:
  23. enabled: true
  24. # Reset log on startup
  25. reset: true
  26.  
  27. ## Update checking
  28. update:
  29. # RECOMMENDED YOU LEAVE THIS TRUE
  30. check: true
  31.  
  32. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  33. # PLUGIN SPECIFIC SETTINGS
  34. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  35.  
  36. ## INSTALL NEW MODULES WITH /qaplugin modules
  37.  
  38. # The database is used to keep data of specific players
  39. # this can range from key value data used to rember user information
  40. # (like names, ...) to things talked about to the bot
  41. # NOTE: This is mainly utilized by modules
  42. database:
  43. # If you want to remember user data after a restart. Enable this
  44. persistent: false
  45. # Database configuration is SIMILAR to http://wiki.bukkit.org/Bukkit.yml#database
  46. # with isolation, url, driver, ...
  47. # Database name
  48. database: "qaplugin"
  49. # Database username
  50. username: 'root'
  51. # Database isolation type
  52. isolation: SERIALIZABLE
  53. # Database driver
  54. # SQLite is not supported!
  55. driver: com.mysql.jdbc.Driver
  56. # Database password
  57. password: ''
  58. # Database driver URL
  59. # {DIR} will be replaced with the plugin directory
  60. # {NAME} will be replaced wit the plugin name
  61. url: jdbc:mysql://localhost:3306/{DATABASENAME}
  62. # Save interval in ticks
  63. save-interval: 6000
  64.  
  65. # Disabled worlds. Add your world name in this list to
  66. # disable it.
  67. # The QAPlugin will not 'LISTEN' to chat in these worlds
  68. # announcement messages won't appear in these worlds as well
  69. disabled-worlds:
  70. - 'example_world'
  71.  
  72. # API.ai integration
  73. # This allows you to add artificial intelligence by adding/creating your own bot
  74. # THIS IS REALLY WORTH IT!
  75. api-ai:
  76. # When enabled, all questions that are not configured in this plugin
  77. # will be redirected to the online API
  78. enabled: false
  79. # Time in seconds before contexts get cleared.
  80. # Context is the thing you are talking about. It can be a dialog waiting for your
  81. # response or 3rd party data
  82. context-timeout: 35
  83. # See: https://www.spigotmc.org/wiki/qaplugin-adding-custom-ai/?noRedirect=1
  84. client-access-token: ""
  85. # Used by 3rd party modules to dynamically add entities or intents (aka. questions and objects you are talking about)
  86. # without you having to upload a zip to API.ai
  87. developer-access-token: ""
  88.  
  89. # QUESTION SETTINGS
  90. # Settings related to questions and triggering
  91. question-settings:
  92. # Triggers are required to filter false positives
  93. # You can give the QA Plugin a name like "Server"
  94. # or you can use "what","who","how","when"
  95. # You may want to include your name as well...
  96. # You can leave both start and end empty (start: [] , end: [])
  97. # but this may not give good results.
  98. triggers:
  99. # Start triggers check for with what a phrase starts
  100. start:
  101. - 'maxim '
  102. - 'maxim, '
  103. - 'helper, '
  104. - 'bot, '
  105. - 'helper '
  106. - 'bot '
  107. - 'hey helper '
  108. - 'hey maxim '
  109. - 'hey bot '
  110. - 'hey bot, '
  111. - 'hey maxim, '
  112. - 'hey helper, '
  113. - 'hey helper,'
  114. - 'hey bot,'
  115. - 'hey helper'
  116. - 'hey bot'
  117. - 'ok google'
  118. # End triggers check for with what a phrase ends ("?")
  119. # "Hey what is that plugin maxim?"
  120. end:
  121. - ' maxim'
  122. - ' maxim?'
  123. - ' maxim!'
  124. - ' helper'
  125. - ' helper?'
  126. - ' helper!'
  127. - ' bot'
  128. - ' bot?'
  129. - ' bot!'
  130. # Check if the question contains the word
  131. # This is mainly advised to be used in combination with API.ai
  132. # since the word is randomly located in a question
  133. contains: []
  134. # Hide the question in the chat for all players except the one who asked it
  135. hide-question-player: false
  136. # Hide the question in the chat for all players
  137. hide-question-all: false
  138. # If you prefer to use words instead
  139. # of phrases for your questions you can set the minimum-matches
  140. # this will only show "an" answer when a minimum amount
  141. # of matches is reached.
  142. #
  143. # (For example: "what","plugin","you","use","for","the","tab")
  144. # You do not want to trigger a question when a user just asked "what"
  145. # you want it to at least match 3-4 words
  146. # THIS IS OVERIDDEN BY THE minimum-matches in the individual questions
  147. # set to -1 to disable.
  148. minimum-matches: -1
  149. # Anti spam messures
  150. anti-spam:
  151. # Enable to prevent spamming the bot
  152. enabled: true
  153. # Block question. When spam is detected the question will be blocked (no reply)
  154. # NOTE: This happens when the severe-level is reached (not the warning level)
  155. # It will also not send a severe-spam-reply
  156. block-question: false
  157. # Warning threshold. This is the amount of questions per minute
  158. warning-level: 15
  159. # Severe threshold. This the amount of questions per minute
  160. severe-level: 25
  161. # When "Block-question" is set to false it will use one of these spam replies
  162. # These replies are send when you reach the warning level
  163. # You can use {player} as the player name
  164. # Execute command as the player who asked the question
  165. # |player:/command_as_player|...random answer here...
  166. # Execute command as the opped player
  167. # |opplayer:/some_command|...random answer here...
  168. # Execute command as the console
  169. # |console:give {player} 1 1|... random answer here
  170. # Send player chat
  171. # |chat:HEYYYY!|....random answer here...
  172. warning-spam-reply:
  173. - 'Hey! Stop spamming me!'
  174. - 'I do have a life you know ...'
  175. - 'Cut the crap...'
  176. - 'Stop it... I am not a toy!'
  177. - 'I will ban you if you do not stop...'
  178. # When "Block-question" is set to false it will use one of these spam replies
  179. # These replies are send when you reach the severe level
  180. # You can use {player} as the player name
  181. # Execute command as the player who asked the question
  182. # |player:/command_as_player|...random answer here...
  183. # Execute command as the opped player
  184. # |opplayer:/some_command|...random answer here...
  185. # Execute command as the console
  186. # |console:give {player} 1 1|... random answer here
  187. # Send player chat
  188. # |chat:HEYYYY!|....random answer here...
  189. severe-spam-reply:
  190. - '|console:kick {player}|Bye bye ...'
  191. - '|console:kick {player}|Shut up!'
  192.  
  193. # ANSWER SETTINGS
  194. # Settings related to answering a question
  195. answer-settings:
  196. # Broadcast answer to everyone
  197. # When turned to false it will only send the answer to the player
  198. # who asked the question
  199. broadcast: true
  200. # Answer prefix: This will add a prefix to the answer
  201. # useful if you want to format the answer.
  202. # You can also use MVdWPlaceholders placeholders
  203. # here.
  204. prefix: '&7[&cBot&7] &cHelper&f: '
  205. # Answer suffix: This will add a suffix to the answer
  206. # useful if you want to format the answer
  207. suffix: ''
  208. # Answer delay (delay before a response is made (in ticks)
  209. response-delay: 4
  210. # Show unknown question messages
  211. # hide if you have commonly triggered triggers
  212. unknown-question:
  213. # Disabling unknown-question will just not return anything
  214. # when the question is not found.
  215. enabled: true
  216. # A list of possible responses
  217. # You can also use MVdWPlaceholders placeholders
  218. # here.
  219. responses:
  220. - "Sorry, I can't answer that question :("
  221. - 'I think you better ask a real player.'
  222. - "I am smart... but sorry I can't help you with that."
  223. - 'Maybe try rephrasing it?'
  224. - 'My responses are limited to my masters configuring skills.'
  225. - 'Lets change subject shall we?'
  226. - 'ERROR: I can not find your question! #NotReallyAnError'
  227.  
  228.  
  229. # Announces that you can ask QAPlugin a question
  230. announcer:
  231. # Enable announcer
  232. enabled: true
  233. # Announce with the same prefix as configured
  234. # with answers. [Bot] Helper: Ask a question!
  235. answer-prefix: true
  236. # Interval in seconds
  237. interval: 750
  238. # Randomize the "list"
  239. randomize: true
  240. # A list of random announcements
  241. list:
  242. - 'Hey! Got a question? Type &7&o"Helper, <QUESTION HERE>"'
  243. - 'If you need help, ask me ;)'
  244. - 'Install new modules with &7/qaplugin modules'
  245. - 'Ask me anything (except money)'
  246. - 'To give me more things to do, install some new modules with &7/qaplugin modules'
  247. - 'Ask your question: &7Helper ..question here..'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement