Advertisement
Guest User

QAPlugin_CONFIG

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