Advertisement
Guest User

Untitled

a guest
Jan 29th, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.12 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:
  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: true
  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: "50837b2313e24813a9b753fb4da207e4"
  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: "e74d170be20442c091c7bc4cfe28712e"
  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. - 'helper, '
  102. - 'bot, '
  103. - 'helper '
  104. - 'bot '
  105. - 'hey helper '
  106. - 'hey bot '
  107. - 'hey bot, '
  108. - 'hey helper, '
  109. - 'hey helper,'
  110. - 'hey bot,'
  111. - 'hey helper'
  112. - 'hey bot'
  113. - 'ok google'
  114. # End triggers check for with what a phrase ends ("?")
  115. # "Hey what is that plugin maxim?"
  116. end:
  117. - ' helper'
  118. - ' helper?'
  119. - ' helper!'
  120. - ' bot'
  121. - ' bot?'
  122. - ' bot!'
  123. # Check if the question contains the word
  124. # This is mainly advised to be used in combination with API.ai
  125. # since the word is randomly located in a question
  126. contains: []
  127. # Hide the question in the chat for all players except the one who asked it
  128. hide-question-player: false
  129. # Hide the question in the chat for all players
  130. hide-question-all: false
  131. # If you prefer to use words instead
  132. # of phrases for your questions you can set the minimum-matches
  133. # this will only show "an" answer when a minimum amount
  134. # of matches is reached.
  135. #
  136. # (For example: "what","plugin","you","use","for","the","tab")
  137. # You do not want to trigger a question when a user just asked "what"
  138. # you want it to at least match 3-4 words
  139. # THIS IS OVERIDDEN BY THE minimum-matches in the individual questions
  140. # set to -1 to disable.
  141. minimum-matches: -1
  142. # Anti spam messures
  143. anti-spam:
  144. # Enable to prevent spamming the bot
  145. enabled: true
  146. # Block question. When spam is detected the question will be blocked (no reply)
  147. # NOTE: This happens when the severe-level is reached (not the warning level)
  148. # It will also not send a severe-spam-reply
  149. block-question: false
  150. # Warning threshold. This is the amount of questions per minute
  151. warning-level: 15
  152. # Severe threshold. This the amount of questions per minute
  153. severe-level: 20
  154. # When "Block-question" is set to false it will use one of these spam replies
  155. # These replies are send when you reach the warning level
  156. # You can use {player} as the player name
  157. # Execute command as the player who asked the question
  158. # |player:/command_as_player|...random answer here...
  159. # Execute command as the opped player
  160. # |opplayer:/some_command|...random answer here...
  161. # Execute command as the console
  162. # |console:give {player} 1 1|... random answer here
  163. # Send player chat
  164. # |chat:HEYYYY!|....random answer here...
  165. warning-spam-reply:
  166. - 'Hey! Stop spamming me!'
  167. - 'I will kick you if you do not stop...'
  168. - 'Cut the crap...'
  169. - 'Stop it... I am not a toy!'
  170. # When "Block-question" is set to false it will use one of these spam replies
  171. # These replies are send when you reach the severe level
  172. # You can use {player} as the player name
  173. # Execute command as the player who asked the question
  174. # |player:/command_as_player|...random answer here...
  175. # Execute command as the opped player
  176. # |opplayer:/some_command|...random answer here...
  177. # Execute command as the console
  178. # |console:give {player} 1 1|... random answer here
  179. # Send player chat
  180. # |chat:HEYYYY!|....random answer here...
  181. severe-spam-reply:
  182. - '|console:kick {player}|Bye bye ...'
  183. - '|console:kick {player}|Shut up!'
  184.  
  185. # ANSWER SETTINGS
  186. # Settings related to answering a question
  187. answer-settings:
  188. # Broadcast answer to everyone
  189. # When turned to false it will only send the answer to the player
  190. # who asked the question
  191. broadcast: true
  192. # Answer prefix: This will add a prefix to the answer
  193. # useful if you want to format the answer.
  194. # You can also use MVdWPlaceholders placeholders
  195. # here.
  196. prefix: '&8โŽœ &c&lBot&8 โŽœ &chelper&7 ยป&r '
  197. # Answer suffix: This will add a suffix to the answer
  198. # useful if you want to format the answer
  199. suffix: ''
  200. # Answer delay (delay before a response is made (in ticks)
  201. response-delay: 4
  202. # Show unknown question messages
  203. # hide if you have commonly triggered triggers
  204. unknown-question:
  205. # Disabling unknown-question will just not return anything
  206. # when the question is not found.
  207. enabled: true
  208. # A list of possible responses
  209. # You can also use MVdWPlaceholders placeholders
  210. # here.
  211. responses:
  212. - "Sorry, I can't answer that question :("
  213. - 'I think you better ask a real player.'
  214. - "I am smart... but sorry I can't help you with that."
  215. - 'My responses are limited to my masters configuring skills.'
  216. - 'Lets change subject shall we?'
  217.  
  218.  
  219. # Announces that you can ask QAPlugin a question
  220. announcer:
  221. # Enable announcer
  222. enabled: true
  223. # Announce with the same prefix as configured
  224. # with answers. [Bot] helper: Ask a question!
  225. answer-prefix: true
  226. # Interval in seconds
  227. interval: 500
  228. # Randomize the "list"
  229. randomize: true
  230. # A list of random announcements
  231. list:
  232. - 'Hey! Got a question? Type &7&o"helper, <QUESTION HERE>"'
  233. - 'If you need help, ask me ;)'
  234. - 'Ask your question: &7helper ..question here..'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement