123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298 |
- #* ************************************************************************** */
- #* Project : jBot (an advanced WebChat Bot) */
- #* */
- #* Author : Bernhard Froehlich <decke@bluelife.at> */
- #* Homepage: http://www.bluelife.at/ */
- #* Copyright (c) 2005 - 2008 Bernhard Froehlich <decke@bluelife.at> */
- #* */
- #* This program is free software; you can redistribute it and/or modify */
- #* it under the terms of the GNU General Public License as published by */
- #* the Free Software Foundation; either version 2 of the License, or */
- #* (at your option) any later version. */
- #* */
- #* This program is distributed in the hope that it will be useful, */
- #* but WITHOUT ANY WARRANTY; without even the implied warranty of */
- #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
- #* GNU General Public License for more details. */
- #* */
- #* ************************************************************************** */
- # $Id: jbot.conf-mysql 81 2008-11-16 15:11:45Z decke $
-
-
- ##########################################################################
- #
- ## MySQL Quiz Bot Configuration
- #
- #
- ### Section 1: General Configuration
- #
- # Name of the Bot. It is only as Unique identifier in Logfiles etc.
- # You can have multible Bots in this Config file completely seperated
- # from each other.
- #
- [MySQLQuizBot]
-
- #
- # Enable or disable this Bot. (can be changed at runtime)
- #
- enabled = true
-
- #
- # If the Connection is dropped it is possible to automatically relogin
- # the Bot. (a relogin each 30 seconds)
- #
- autorelogin = true
-
- #
- # The Number of Retries when a bot startup failed. (eg.: Chat login problem)
- #
- retries = 5
-
- #
- # Output Character Encoding (default: ISO-8859-1)
- #
- encoding = ISO-8859-1
-
- ### Section 2: Database Connection
- #
- # Database Wrapper (at.bluelife.jbot.util.sql.*)
- # db.class = [DummyDBConnection|HsqlDBConnection|UniversalDBConnection]
- #
- # Database Driver
- # db.driver
- #
- # Database JDBC Connection URL
- # db.url
- #
- # Database Username
- # db.username
- #
- # Database Password
- # db.password
- #
- #
- ## Examples:
- #
- ## No Database
- #
- # db.class = DummyDBConnection
- # db.driver
- # db.url
- # db.username = sa
- # db.password
- #
- #
- ## HSQLDB Database (embedded)
- #
- # Default HSQLDB Username is "sa" with no Password.
- #
- # db.class = HsqlDBConnection
- # db.driver = org.hsqldb.jdbcDriver
- # db.url = jdbc:hsqldb:file:db/db
- # db.username = sa
- # db.password
- #
- #
- ## MySQL Database (extern)
- #
- # Change: db.url (IP, DATABASENAME), db.username, db.password
- #
- # db.class = UniversalDBConnection
- # db.driver = com.mysql.jdbc.Driver
- # db.url = jdbc:mysql://127.0.0.1:3306/DATABASENAME
- # db.username = jbot_user
- # db.password =
- #
- db.class = UniversalDBConnection
- db.driver = com.mysql.jdbc.Driver
- db.url = jdbc:mysql://127.0.0.1:3306/jbot
- db.username = jbot_user
- db.password =
-
-
- ### Section 3: Chat Configuration
- #
- ## FreeCS Chat 1.2
- #
- #
- # Chat Login Implementation
- # chat.class = at.bluelife.jbot.chats.freecs.localhost.Localhost
- #
- # Messages Template File
- # chat.template = chats/freecs/localhost/messages.tpl
- #
- # Chat Username
- # chat.username = Bot
- #
- # Chat UserID (only CellChats need the UserID for a successfull login; it is
- # called "user_var1" in the login forms)
- # chat.userid = 12345
- #
- # Chat Password, whatever the login formular sends to the chat
- # (if you use MD5 paste the MD5 Hash here)
- # chat.password =
- #
- # Default Room
- # chat.room = lounge
- #
- # Chat Host
- # chat.host = localhost
- #
- # Chat Port
- # chat.port = 1976
- #
- # Chat Sendport (some chats use an extra port for sending messages)
- # chat.sendport = 4002
- #
- # Tokened Login
- # chat.tokenedLogin = false
- #
- # Flood Protect Timeout
- # chat.floodProtectMillis = 500
- #
- # Chat Raw Login
- # chat.rawLogin = false
- #
- # The number of messages that can be ignored on login
- # chat.ignoreLoginMessages = 5
- #
- # Define if it is allowed to send Multi Line Messages (highscore, tables etc.)
- # chat.sendMultiLineMessages = true
- #
- # TOK (Time-Out Killer)
- # chat.toker = true
- #
- # Ignore Echoes (prevents endless loops where the bot talks to himself)
- # chat.ignoreEchoes = true
- #
- # Socket Connect/Read Timeouts; you should increase them if you have frequent
- # timeouts when sending messages (Java 1.5.0+)
- # chat.readTimeout = 1000
- # chat.connectTimeout = 2500
- #
- chat.class = at.bluelife.jbot.chats.freecs.localhost.Localhost
- chat.template = chats/freecs/localhost/messages.tpl
- chat.username = Bot
- chat.password =
- chat.room = lounge
- chat.host = localhost
- chat.port = 1976
-
-
- ### Section 4: Plugin Configuration
- #
- # Plugins can be loaded and unloaded at runtime. Simply change the String
- # and save the File.
- #
- # Plugins are seperated with ";" and can be added relative to the base
- # at.bluelife.jbot.output.plugins (QuizPlugin, RoomChangerPlugin) or with
- # the full Java Package and Class Name.
- # (eg. at.bluelife.jbot.output.plugins.QuizPlugin or org.3rdparty.plugins.TestPlugin)
- #
- # Compiled Plugins are loaded at runtime from /jbot/plugins/
- #
- ## Available Plugins:
- #
- ## QuizPlugin
- # The popular Quiz Plugin.
- #
- # Configuration:
- #
- # The Chatoutput of the QuizPlugin can be customised if the chat
- # supports it. (FreeCS doesn't!)
- # plugins.bold.start = !b!
- # plugins.bold.end =
- # plugins.comment.char = :
- #
- # Question Timeout in Seconds.
- # plugins.QuizPlugin.timeout = 25
- #
- # Quiz Help:
- # plugins.QuizPlugin.help = false
- # plugins.QuizPlugin.help.percentage = 10
- #
- # Quiz Admins
- # plugins.QuizPlugin.admins = nick1,nick2,nick3
- #
- # Quiz Moderators
- # plugins.QuizPlugin.moderators = nick1,nick2,nick3
- #
- # Moderated Quiz:
- # plugins.QuizPlugin.moderated = false
- #
- # Try to give Quiz Moderators SU-Rights if they enter the Room?
- # plugins.QuizPlugin.moderators.autoSU = false
- #
- # Size of the Quiz Played List:
- # plugins.QuizPlugin.played.size = 5
- #
- # Highscore:
- # plugins.QuizPlugin.highscore = false
- #
- # Highscore Database Table:
- # plugins.QuizPlugin.mapping.highscore = highscore
- # plugins.QuizPlugin.mapping.weeklyhighscore = highscore_weekly
- #
- # Highscore User Table:
- # plugins.QuizPlugin.mapping.user = users
- #
- # Allow jBot to insert new Users in the User Table: (take care!)
- # plugins.QuizPlugin.db.user.insertsAllowed = false
- #
- # Highscore User Table Columns:
- # plugins.QuizPlugin.mapping.user.id = id
- # plugins.QuizPlugin.mapping.user.nick = username
- # plugins.QuizPlugin.mapping.user.points = points
- #
- # Highscore Limits:
- # plugins.QuizPlugin.highscore.limit.day = 250
- # plugins.QuizPlugin.highscore.limit.week = 1500
- # plugins.QuizPlugin.highscore.limit.lower = 0
- # plugins.QuizPlugin.highscore.limit.upper = 0
- #
- #
- ## RoomChangerPlugin
- # Changes the Room directly after Login.
- #
- # Configuration:
- #
- # The Roomname that will be used
- # plugins.RoomChangerPlugin.room = Quiz
- #
- #
- ## WelcomePlugin
- # Each user that joins the Room will get a randomly choosed welcome message.
- #
- #
- plugins = QuizPlugin;RoomChangerPlugin
-
- ## Plugins Configuration:
- #
- # Plugins can use this configuration file to get custom values. It is recommended
- # to contact the Plugin Author or the Documentation for available Plugin
- # Configuration Directives.
- #
- # The recommended naming scheme is:
- # plugins.PLUGINNAME.param = value
- # eg.
- # plugins.QuizPlugin.timeout = 25
- # plugins.RoomChangerPlugin.room = Quiz
- #
- plugins.bold.start =
- plugins.bold.end =
- plugins.QuizPlugin.timeout = 25
- plugins.QuizPlugin.help = true
- plugins.QuizPlugin.help.percentage = 25
- plugins.QuizPlugin.admins =
- plugins.QuizPlugin.moderators =
- plugins.QuizPlugin.highscore = true
- plugins.QuizPlugin.mapping.highscore = highscore
- plugins.QuizPlugin.mapping.weeklyhighscore = highscore_weekly
- plugins.QuizPlugin.mapping.user = users
- plugins.QuizPlugin.mapping.user.id = id
- plugins.QuizPlugin.mapping.user.nick = username
- plugins.QuizPlugin.mapping.user.points = points
- plugins.QuizPlugin.db.user.insertsAllowed = true
- plugins.QuizPlugin.highscore.limit.day = 250
- plugins.QuizPlugin.highscore.limit.week = 1500
- plugins.RoomChangerPlugin.room = Quiz
|