Advertisement
Guest User

Untitled

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