Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Import jBot 1.9.6

  • Loading branch information...
decke committed Nov 23, 2008
0 parents commit de68b734a4d179c5f28e149aea338fdfe241bf51
Showing with 19,990 additions and 0 deletions.
  1. +10 −0 .classpath
  2. +17 −0 .project
  3. +552 −0 LICENSE.txt
  4. +34 −0 README.txt
  5. BIN build/ant-launcher.jar
  6. BIN build/ant-nodeps.jar
  7. BIN build/ant.jar
  8. +50 −0 build/build.bat
  9. +34 −0 build/build.sh
  10. +262 −0 build/build.xml
  11. BIN chats/N2/AbstractNEngine2.class
  12. BIN chats/N2/club3k/Club3k.class
  13. +71 −0 chats/N2/club3k/messages.tpl
  14. BIN chats/cellchat/AbstractCellChat.class
  15. BIN chats/cellchat/localhost/Localhost.class
  16. +64 −0 chats/cellchat/localhost/messages.tpl
  17. BIN chats/cvc/AbstractCVC.class
  18. BIN chats/cvc/localhost/Localhost.class
  19. +62 −0 chats/cvc/localhost/messages.tpl
  20. BIN chats/fcc/AbstractFCC.class
  21. BIN chats/fcc/localhost/Localhost.class
  22. +72 −0 chats/fcc/localhost/messages.tpl
  23. BIN chats/freecs/AbstractFreeCS.class
  24. BIN chats/freecs/localhost/Localhost.class
  25. +70 −0 chats/freecs/localhost/messages.tpl
  26. +67 −0 chats/messages.default.tpl
  27. BIN chats/slc/AbstractScreamLabsChatEngine.class
  28. BIN chats/slc/localhost/Localhost.class
  29. +76 −0 chats/slc/localhost/messages.tpl
  30. BIN chats/yac/AbstractYac.class
  31. BIN chats/yac/localhost/Localhost.class
  32. +68 −0 chats/yac/localhost/messages.tpl
  33. BIN chats/yac/next4u/Next4u.class
  34. +68 −0 chats/yac/next4u/messages.tpl
  35. +18 −0 db/db.properties
  36. +1,029 −0 db/db.script
  37. +1,133 −0 db/jbot.sql
  38. +39 −0 jbot.bat
  39. +288 −0 jbot.conf
  40. +298 −0 jbot.conf-mysql
  41. +170 −0 jbot.sh
  42. BIN lib/hsqldb.jar
  43. BIN lib/jakarta-regexp.jar
  44. BIN lib/jbot.jar
  45. BIN lib/log4j.jar
  46. BIN lib/mysql-connector.jar
  47. BIN plugins/ChatLoginFloodPlugin.class
  48. BIN plugins/FloodPlugin.class
  49. BIN plugins/LongWordFilterPlugin.class
  50. BIN plugins/QuizPlugin.class
  51. BIN plugins/RoomChangerPlugin.class
  52. BIN plugins/TestPlugin.class
  53. BIN plugins/WelcomePlugin.class
  54. BIN plugins/quiz/Highscore.class
  55. BIN plugins/quiz/Question.class
  56. BIN plugins/quiz/QuestionPool.class
  57. BIN plugins/quiz/Quiz.class
  58. BIN plugins/quiz/QuizList.class
  59. +223 −0 src/at/bluelife/jbot/BotKernel.java
  60. +531 −0 src/at/bluelife/jbot/chats/AbstractChat.java
  61. +52 −0 src/at/bluelife/jbot/chats/IChat.java
  62. +205 −0 src/at/bluelife/jbot/chats/N2/AbstractNEngine2.java
  63. +76 −0 src/at/bluelife/jbot/chats/N2/club3k/Club3k.java
  64. +71 −0 src/at/bluelife/jbot/chats/N2/club3k/messages.tpl
  65. +210 −0 src/at/bluelife/jbot/chats/cellchat/AbstractCellChat.java
  66. +39 −0 src/at/bluelife/jbot/chats/cellchat/localhost/Localhost.java
  67. +64 −0 src/at/bluelife/jbot/chats/cellchat/localhost/messages.tpl
  68. +194 −0 src/at/bluelife/jbot/chats/cvc/AbstractCVC.java
  69. +39 −0 src/at/bluelife/jbot/chats/cvc/localhost/Localhost.java
  70. +62 −0 src/at/bluelife/jbot/chats/cvc/localhost/messages.tpl
  71. +254 −0 src/at/bluelife/jbot/chats/fcc/AbstractFCC.java
  72. +39 −0 src/at/bluelife/jbot/chats/fcc/localhost/Localhost.java
  73. +72 −0 src/at/bluelife/jbot/chats/fcc/localhost/messages.tpl
  74. +251 −0 src/at/bluelife/jbot/chats/freecs/AbstractFreeCS.java
  75. +55 −0 src/at/bluelife/jbot/chats/freecs/localhost/Localhost.java
  76. +70 −0 src/at/bluelife/jbot/chats/freecs/localhost/messages.tpl
  77. +67 −0 src/at/bluelife/jbot/chats/messages.default.tpl
  78. +263 −0 src/at/bluelife/jbot/chats/slc/AbstractScreamLabsChatEngine.java
  79. +38 −0 src/at/bluelife/jbot/chats/slc/localhost/Localhost.java
  80. +76 −0 src/at/bluelife/jbot/chats/slc/localhost/messages.tpl
  81. +229 −0 src/at/bluelife/jbot/chats/yac/AbstractYac.java
  82. +39 −0 src/at/bluelife/jbot/chats/yac/localhost/Localhost.java
  83. +68 −0 src/at/bluelife/jbot/chats/yac/localhost/messages.tpl
  84. +203 −0 src/at/bluelife/jbot/chats/yac/next4u/Next4u.java
  85. +68 −0 src/at/bluelife/jbot/chats/yac/next4u/messages.tpl
  86. +260 −0 src/at/bluelife/jbot/core/BotConfig.java
  87. +297 −0 src/at/bluelife/jbot/core/BotConfigParser.java
  88. +86 −0 src/at/bluelife/jbot/core/BotConfigPool.java
  89. +402 −0 src/at/bluelife/jbot/core/BotThread.java
  90. +60 −0 src/at/bluelife/jbot/core/IUser.java
  91. +145 −0 src/at/bluelife/jbot/core/User.java
  92. +43 −0 src/at/bluelife/jbot/core/history/IUserHistory.java
  93. +141 −0 src/at/bluelife/jbot/core/history/TemporaryUserHistory.java
  94. +103 −0 src/at/bluelife/jbot/core/timer/ExactTimer.java
  95. +76 −0 src/at/bluelife/jbot/core/timer/FileWatchdogTimer.java
  96. +29 −0 src/at/bluelife/jbot/core/timer/ITimer.java
  97. +54 −0 src/at/bluelife/jbot/core/timer/Timer.java
  98. +165 −0 src/at/bluelife/jbot/core/timer/TimerPool.java
  99. +56 −0 src/at/bluelife/jbot/core/timer/WorkerThread.java
  100. +211 −0 src/at/bluelife/jbot/input/MessageParserPool.java
  101. +100 −0 src/at/bluelife/jbot/input/messages/AbstractMessage.java
  102. +41 −0 src/at/bluelife/jbot/input/messages/IMessage.java
  103. +42 −0 src/at/bluelife/jbot/input/messages/UnknownMessage.java
  104. +32 −0 src/at/bluelife/jbot/input/messages/error/ErrorMessage.java
  105. +30 −0 src/at/bluelife/jbot/input/messages/error/IgnoreMessage.java
  106. +30 −0 src/at/bluelife/jbot/input/messages/error/NoSuRightsMessage.java
  107. +30 −0 src/at/bluelife/jbot/input/messages/error/NoVipRightsMessage.java
  108. +30 −0 src/at/bluelife/jbot/input/messages/error/NotOnlineMessage.java
  109. +30 −0 src/at/bluelife/jbot/input/messages/error/UnknownCommandMessage.java
  110. +30 −0 src/at/bluelife/jbot/input/messages/error/UnknownUserMessage.java
  111. +30 −0 src/at/bluelife/jbot/input/messages/room/EnterChatMessage.java
  112. +30 −0 src/at/bluelife/jbot/input/messages/room/EnterRoomMessage.java
  113. +30 −0 src/at/bluelife/jbot/input/messages/room/LeaveChatMessage.java
  114. +30 −0 src/at/bluelife/jbot/input/messages/room/LeaveRoomMessage.java
  115. +30 −0 src/at/bluelife/jbot/input/messages/room/LeaveRoomToSepareMessage.java
  116. +32 −0 src/at/bluelife/jbot/input/messages/room/RoomMessage.java
  117. +30 −0 src/at/bluelife/jbot/input/messages/room/RoomTopicMessage.java
  118. +30 −0 src/at/bluelife/jbot/input/messages/staff/ForceColorChangeMessage.java
  119. +30 −0 src/at/bluelife/jbot/input/messages/staff/GagMessage.java
  120. +30 −0 src/at/bluelife/jbot/input/messages/staff/KickHardMessage.java
  121. +30 −0 src/at/bluelife/jbot/input/messages/staff/KickMessage.java
  122. +30 −0 src/at/bluelife/jbot/input/messages/staff/RemoveSuMessage.java
  123. +32 −0 src/at/bluelife/jbot/input/messages/staff/StaffMessage.java
  124. +30 −0 src/at/bluelife/jbot/input/messages/staff/StaffWhisperFromMessage.java
  125. +30 −0 src/at/bluelife/jbot/input/messages/staff/SuMessage.java
  126. +30 −0 src/at/bluelife/jbot/input/messages/staff/UnGagMessage.java
  127. +30 −0 src/at/bluelife/jbot/input/messages/standard/AwayMessage.java
  128. +30 −0 src/at/bluelife/jbot/input/messages/standard/BackMessage.java
  129. +30 −0 src/at/bluelife/jbot/input/messages/standard/ColorChangeMessage.java
  130. +30 −0 src/at/bluelife/jbot/input/messages/standard/InvitedFromMessage.java
  131. +30 −0 src/at/bluelife/jbot/input/messages/standard/MeMessage.java
  132. +30 −0 src/at/bluelife/jbot/input/messages/standard/PublicMessage.java
  133. +30 −0 src/at/bluelife/jbot/input/messages/standard/QuestionMessage.java
  134. +30 −0 src/at/bluelife/jbot/input/messages/standard/ShoutMessage.java
  135. +32 −0 src/at/bluelife/jbot/input/messages/standard/StandardMessage.java
  136. +30 −0 src/at/bluelife/jbot/input/messages/standard/ThinkMessage.java
  137. +30 −0 src/at/bluelife/jbot/input/messages/standard/WhisperFromMessage.java
  138. +30 −0 src/at/bluelife/jbot/input/messages/standard/WhisperToMessage.java
  139. +30 −0 src/at/bluelife/jbot/input/messages/system/DateMessage.java
  140. +30 −0 src/at/bluelife/jbot/input/messages/system/LogoutMessage.java
  141. +30 −0 src/at/bluelife/jbot/input/messages/system/MyIPMessage.java
  142. +32 −0 src/at/bluelife/jbot/input/messages/system/SystemMessage.java
  143. +49 −0 src/at/bluelife/jbot/input/parser/AbstractMessageParser.java
  144. +33 −0 src/at/bluelife/jbot/input/parser/IParser.java
  145. +170 −0 src/at/bluelife/jbot/input/parser/regex/RegexMessageParser.java
  146. +65 −0 src/at/bluelife/jbot/output/AbstractOutputPlugin.java
  147. +37 −0 src/at/bluelife/jbot/output/IOutputPlugin.java
  148. +43 −0 src/at/bluelife/jbot/output/IOutputPluginHandler.java
  149. +258 −0 src/at/bluelife/jbot/output/OutputPluginHandler.java
  150. +71 −0 src/at/bluelife/jbot/output/plugins/ChatLoginFloodPlugin.java
  151. +196 −0 src/at/bluelife/jbot/output/plugins/FloodPlugin.java
  152. +98 −0 src/at/bluelife/jbot/output/plugins/LongWordFilterPlugin.java
  153. +673 −0 src/at/bluelife/jbot/output/plugins/QuizPlugin.java
  154. +51 −0 src/at/bluelife/jbot/output/plugins/RoomChangerPlugin.java
  155. +58 −0 src/at/bluelife/jbot/output/plugins/TestPlugin.java
  156. +53 −0 src/at/bluelife/jbot/output/plugins/WelcomePlugin.java
  157. +663 −0 src/at/bluelife/jbot/output/plugins/quiz/Highscore.java
  158. +158 −0 src/at/bluelife/jbot/output/plugins/quiz/Question.java
  159. +78 −0 src/at/bluelife/jbot/output/plugins/quiz/QuestionPool.java
  160. +348 −0 src/at/bluelife/jbot/output/plugins/quiz/Quiz.java
  161. +110 −0 src/at/bluelife/jbot/output/plugins/quiz/QuizList.java
  162. +62 −0 src/at/bluelife/jbot/util/DateDiff.java
  163. +682 −0 src/at/bluelife/jbot/util/Entities.java
  164. +52 −0 src/at/bluelife/jbot/util/Hash.java
  165. +193 −0 src/at/bluelife/jbot/util/HtmlSimplifier.java
  166. +365 −0 src/at/bluelife/jbot/util/IntHashMap.java
  167. +3,070 −0 src/at/bluelife/jbot/util/PrintfFormat.java
  168. +81 −0 src/at/bluelife/jbot/util/RuntimeClassLoader.java
  169. +194 −0 src/at/bluelife/jbot/util/StringTools.java
  170. +52 −0 src/at/bluelife/jbot/util/sql/DBFactory.java
  171. +101 −0 src/at/bluelife/jbot/util/sql/DummyDBConnection.java
  172. +81 −0 src/at/bluelife/jbot/util/sql/HsqlDBConnection.java
  173. +48 −0 src/at/bluelife/jbot/util/sql/IDBConnection.java
  174. +168 −0 src/at/bluelife/jbot/util/sql/UniversalDBConnection.java
  175. +10 −0 src/log4j-debug.properties
  176. +18 −0 src/log4j.properties
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/hsqldb.jar"/>
<classpathentry kind="lib" path="lib/jakarta-regexp.jar"/>
<classpathentry kind="lib" path="lib/log4j.jar"/>
<classpathentry kind="lib" path="lib/mysql-connector.jar"/>
<classpathentry kind="output" path="classes"/>
</classpath>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>jbot</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

Large diffs are not rendered by default.

@@ -0,0 +1,34 @@

jBot 1.9.6
==========

Author : Bernhard Fr�hlich <decke@bluelife.at>
Homepage: http://www.bluelife.at/
License : GNU General Public License Version 2

INTALL
======

Installationsanleitung: http://www.bluelife.at/wiki/jBot:UserManual

Eine detaillierte und st�ndig aktualisierte Installationsanleitung sowie eine
grundlegende Dokumentation finden sie auf http://www.bluelife.at/wiki/ . Dort
gibt es au�erdem diverse Anleitungen wie man den Bot an andere Chats anpassen
oder neue Plugins schreiben kann.


LICENSES
=========

This Programm uses HSQLDB under the Terms of his license.
http://hsqldb.sourceforge.net/web/hsqlLicense.html
http://hsqldb.sourceforge.net/

This Programm uses Jakarta Regexp under the terms of the Apache License Version 2
http://jakarta.apache.org/regexp/

This Programm uses Apache ANT under the terms of the Apache License Version 2
http://ant.apache.org/


Copyright (c) 2005 - 2007 Bernhard Fr�hlich <decke@bluelife.at>
BIN +8.96 KB build/ant-launcher.jar
Binary file not shown.
BIN +411 KB build/ant-nodeps.jar
Binary file not shown.
BIN +1010 KB build/ant.jar
Binary file not shown.
@@ -0,0 +1,50 @@
@echo off

set TARGET=%1%

REM
REM set JAVA_HOME=c:\programme\java\jdk1.5.0_04
REM

REM --------------------------------------------
REM No need to edit anything below here
REM --------------------------------------------

set BUILDFILE=build.xml
if "%TARGET%" == "" goto setdist
goto cont1

:cont1
if not "%2%" == "" goto setapp
goto final

:setdist
set TARGET=usage
goto cont1

:setapp
set APPNAME=-Dapplication=%2%
goto final

:final
if "%JAVA_HOME%" == "" goto javahomeerror
set CP=%CLASSPATH%;ant.jar;ant-launcher.jar;ant-nodeps.jar
if exist %JAVA_HOME%\lib\tools.jar set CP=%CP%;%JAVA_HOME%\lib\tools.jar

echo Classpath: %CP%
echo JAVA_HOME: %JAVA_HOME%

%JAVA_HOME%/bin/java.exe -classpath "%CP%" %APPNAME% org.apache.tools.ant.Main -buildfile %BUILDFILE% %TARGET%

goto end


REM -----------ERROR-------------
:javahomeerror
echo
echo ERROR: JAVA_HOME not found in your environment. Please,
echo set the JAVA_HOME variable in your environment to match the
echo location of the Java Virtual Machine you want to use.

:end

@@ -0,0 +1,34 @@
#!/bin/sh
#
# Ant-wrapper

# Force a JAVA_HOME path; if you have set JAVA_HOME you won't need it
# FORCE_JAVA_HOME=

if [ ! -z "${FORCE_JAVA_HOME}" ] ; then
JAVA_BINARY="${FORCE_JAVA_HOME}/bin/java"
elif [ ! -z "${JAVA_HOME}" ] ; then
JAVA_BINARY="${JAVA_HOME}/bin/java"
elif [ -x `which java` ] ; then
JAVA_BINARY=`which java`
JAVA_BINARY=`realpath "${JAVA_BINARY}"`
else
echo "Java not found. Maybe JAVA_HOME is not set correctly?"
echo "You can alternately set FORCE_JAVA_HOME in blueclient.sh"
exit 1
fi

# try to find tools.jar
TOOLS_JAR=`realpath ${JAVA_BINARY%/*}/../lib/tools.jar`

if [ ! -f "${TOOLS_JAR}" ] ; then
echo "Cannot find tools.jar. Please set JAVA_HOME correctly!"
exit 1
fi

# setting environment
export CLASSPATH=${CLASSPATH}:ant.jar:ant-launcher.jar:ant-nodeps.jar
export CLASSPATH=${CLASSPATH}:${TOOLS_JAR}
export BUILDFILE=./build.xml

${JAVA_BINARY} -cp $CLASSPATH org.apache.tools.ant.Main -buildfile ${BUILDFILE} $1

0 comments on commit de68b73

Please sign in to comment.
You can’t perform that action at this time.