Java WebChat Bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

jbot.conf 7.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. #* ************************************************************************** */
  2. #* Project : jBot (an advanced WebChat Bot) */
  3. #* */
  4. #* Author : Bernhard Froehlich <decke@bluelife.at> */
  5. #* Homepage: http://www.bluelife.at/ */
  6. #* Copyright (c) 2005 - 2008 Bernhard Froehlich <decke@bluelife.at> */
  7. #* */
  8. #* This program is free software; you can redistribute it and/or modify */
  9. #* it under the terms of the GNU General Public License as published by */
  10. #* the Free Software Foundation; either version 2 of the License, or */
  11. #* (at your option) any later version. */
  12. #* */
  13. #* This program is distributed in the hope that it will be useful, */
  14. #* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  15. #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  16. #* GNU General Public License for more details. */
  17. #* */
  18. #* ************************************************************************** */
  19. # $Id: jbot.conf 81 2008-11-16 15:11:45Z decke $
  20. ##########################################################################
  21. #
  22. ## Default Bot Configuration
  23. #
  24. #
  25. ### Section 1: General Configuration
  26. #
  27. # Name of the Bot. It is only as Unique identifier in Logfiles etc.
  28. # You can have multible Bots in this Config file completely seperated
  29. # from each other.
  30. #
  31. [DefaultBot]
  32. #
  33. # Enable or disable this Bot. (can be changed at runtime)
  34. #
  35. enabled = true
  36. #
  37. # If the Connection is dropped it is possible to automatically relogin
  38. # the Bot. (a relogin each 30 seconds)
  39. #
  40. autorelogin = true
  41. #
  42. # The Number of Retries when a bot startup failed. (eg.: Chat login problem)
  43. #
  44. retries = 5
  45. #
  46. # Output Character Encoding (default: ISO-8859-1)
  47. #
  48. encoding = ISO-8859-1
  49. ### Section 2: Database Connection
  50. #
  51. # Database Wrapper (at.bluelife.jbot.util.sql.*)
  52. # db.class = [DummyDBConnection|HsqlDBConnection|UniversalDBConnection]
  53. #
  54. # Database Driver
  55. # db.driver
  56. #
  57. # Database JDBC Connection URL
  58. # db.url
  59. #
  60. # Database Username
  61. # db.username
  62. #
  63. # Database Password
  64. # db.password
  65. #
  66. #
  67. ## Examples:
  68. #
  69. ## No Database
  70. #
  71. # db.class = DummyDBConnection
  72. # db.driver
  73. # db.url
  74. # db.username = sa
  75. # db.password
  76. #
  77. #
  78. ## HSQLDB Database (embedded)
  79. #
  80. # Default HSQLDB Username is "sa" with no Password.
  81. #
  82. # db.class = HsqlDBConnection
  83. # db.driver = org.hsqldb.jdbcDriver
  84. # db.url = jdbc:hsqldb:file:db/db
  85. # db.username = sa
  86. # db.password
  87. #
  88. #
  89. ## MySQL Database (extern)
  90. #
  91. # Change: db.url (IP, DATABASENAME), db.username, db.password
  92. #
  93. # db.class = UniversalDBConnection
  94. # db.driver = com.mysql.jdbc.Driver
  95. # db.url = jdbc:mysql://127.0.0.1:3306/DATABASENAME
  96. # db.username = jbot_user
  97. # db.password =
  98. #
  99. db.class = HsqlDBConnection
  100. db.driver = org.hsqldb.jdbcDriver
  101. db.url = jdbc:hsqldb:file:db/db
  102. db.username = sa
  103. db.password
  104. ### Section 3: Chat Configuration
  105. #
  106. ## FreeCS Chat 1.2
  107. #
  108. #
  109. # Chat Login Implementation
  110. # chat.class = at.bluelife.jbot.chats.freecs.localhost.Localhost
  111. #
  112. # Messages Template File
  113. # chat.template = chats/freecs/localhost/messages.tpl
  114. #
  115. # Chat Username
  116. # chat.username = Bot
  117. #
  118. # Chat UserID (only CellChats need the UserID for a successfull login; it is
  119. # called "user_var1" in the login forms)
  120. # chat.userid = 12345
  121. #
  122. # Chat Password, whatever the login formular sends to the chat
  123. # (if you use MD5 paste the MD5 Hash here)
  124. # chat.password =
  125. #
  126. # Default Room
  127. # chat.room = lounge
  128. #
  129. # Chat Host
  130. # chat.host = localhost
  131. #
  132. # Chat Port
  133. # chat.port = 1976
  134. #
  135. # Chat Sendport (some chats use an extra port for sending messages)
  136. # chat.sendport = 4002
  137. #
  138. # Tokened Login
  139. # chat.tokenedLogin = false
  140. #
  141. # Flood Protect Timeout
  142. # chat.floodProtectMillis = 500
  143. #
  144. # Chat Raw Login
  145. # chat.rawLogin = false
  146. #
  147. # The number of messages that can be ignored on login
  148. # chat.ignoreLoginMessages = 5
  149. #
  150. # Define if it is allowed to send Multi Line Messages (highscore, tables etc.)
  151. # chat.sendMultiLineMessages = true
  152. #
  153. # TOK (Time-Out Killer)
  154. # chat.toker = true
  155. #
  156. # Ignore Echoes (prevents endless loops where the bot talks to himself)
  157. # chat.ignoreEchoes = true
  158. #
  159. # Socket Connect/Read Timeouts; you should increase them if you have frequent
  160. # timeouts when sending messages (Java 1.5.0+)
  161. # chat.readTimeout = 1000
  162. # chat.connectTimeout = 2500
  163. #
  164. chat.class = at.bluelife.jbot.chats.freecs.localhost.Localhost
  165. chat.template = chats/freecs/localhost/messages.tpl
  166. chat.username = Bot
  167. chat.password =
  168. chat.room = lounge
  169. chat.host = localhost
  170. chat.port = 1976
  171. ### Section 4: Plugin Configuration
  172. #
  173. # Plugins can be loaded and unloaded at runtime. Simply change the String
  174. # and save the File.
  175. #
  176. # Plugins are seperated with ";" and can be added relative to the base
  177. # at.bluelife.jbot.output.plugins (QuizPlugin, RoomChangerPlugin) or with
  178. # the full Java Package and Class Name.
  179. # (eg. at.bluelife.jbot.output.plugins.QuizPlugin or org.3rdparty.plugins.TestPlugin)
  180. #
  181. # Compiled Plugins are loaded at runtime from /jbot/plugins/
  182. #
  183. ## Available Plugins:
  184. #
  185. ## QuizPlugin
  186. # The popular Quiz Plugin.
  187. #
  188. # Configuration:
  189. #
  190. # The Chatoutput of the QuizPlugin can be customised if the chat
  191. # supports it. (FreeCS doesn't!)
  192. # plugins.bold.start = !b!
  193. # plugins.bold.end =
  194. # plugins.comment.char = :
  195. #
  196. # Question Timeout in Seconds.
  197. # plugins.QuizPlugin.timeout = 25
  198. #
  199. # Quiz Help:
  200. # plugins.QuizPlugin.help = false
  201. # plugins.QuizPlugin.help.percentage = 10
  202. #
  203. # Quiz Admins
  204. # plugins.QuizPlugin.admins = nick1,nick2,nick3
  205. #
  206. # Quiz Moderators
  207. # plugins.QuizPlugin.moderators = nick1,nick2,nick3
  208. #
  209. # Moderated Quiz:
  210. # plugins.QuizPlugin.moderated = false
  211. #
  212. # Try to give Quiz Moderators SU-Rights if they enter the Room?
  213. # plugins.QuizPlugin.moderators.autoSU = false
  214. #
  215. # Size of the Quiz Played List:
  216. # plugins.QuizPlugin.played.size = 5
  217. #
  218. # Highscore:
  219. # plugins.QuizPlugin.highscore = false
  220. #
  221. # Highscore Database Table:
  222. # plugins.QuizPlugin.mapping.highscore = highscore
  223. # plugins.QuizPlugin.mapping.weeklyhighscore = highscore_weekly
  224. #
  225. # Highscore User Table:
  226. # plugins.QuizPlugin.mapping.user = users
  227. #
  228. # Allow jBot to insert new Users in the User Table: (take care!)
  229. # plugins.QuizPlugin.db.user.insertsAllowed = false
  230. #
  231. # Highscore User Table Columns:
  232. # plugins.QuizPlugin.mapping.user.id = id
  233. # plugins.QuizPlugin.mapping.user.nick = username
  234. # plugins.QuizPlugin.mapping.user.points = points
  235. #
  236. # Highscore Limits:
  237. # plugins.QuizPlugin.highscore.limit.day = 250
  238. # plugins.QuizPlugin.highscore.limit.week = 1500
  239. # plugins.QuizPlugin.highscore.limit.lower = 0
  240. # plugins.QuizPlugin.highscore.limit.upper = 0
  241. #
  242. #
  243. ## RoomChangerPlugin
  244. # Changes the Room directly after Login.
  245. #
  246. # Configuration:
  247. #
  248. # The Roomname that will be used
  249. # plugins.RoomChangerPlugin.room = Quiz
  250. #
  251. #
  252. ## WelcomePlugin
  253. # Each user that joins the Room will get a randomly choosed welcome message.
  254. #
  255. #
  256. plugins = QuizPlugin;RoomChangerPlugin
  257. ## Plugins Configuration:
  258. #
  259. # Plugins can use this configuration file to get custom values. It is recommended
  260. # to contact the Plugin Author or the Documentation for available Plugin
  261. # Configuration Directives.
  262. #
  263. # The recommended naming scheme is:
  264. # plugins.PLUGINNAME.param = value
  265. # eg.
  266. # plugins.QuizPlugin.timeout = 25
  267. # plugins.RoomChangerPlugin.room = Quiz
  268. #
  269. plugins.bold.start =
  270. plugins.bold.end =
  271. plugins.QuizPlugin.timeout = 25
  272. plugins.QuizPlugin.admins =
  273. plugins.QuizPlugin.moderators =
  274. plugins.QuizPlugin.help = false
  275. plugins.RoomChangerPlugin.room = Quiz