Advertisement
Guest User

QAPlugin_CONFIG

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