Advertisement
Guest User

QAPlugin_CONFIG

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