Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Factory #5

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3e8eecc
Remove old files. :-/
jotaki Sep 25, 2013
2445715
Remove BotCommand reference(s) for now. Also add getConnection() to r…
jotaki Sep 25, 2013
58a0d3d
Add JRoboCommand interface.
jotaki Sep 25, 2013
c3d8b7f
Some really basic groundwork for BotCommand framework.
jotaki Sep 25, 2013
4de9484
Initial test command for new Factory framework.
jotaki Sep 25, 2013
8b3617c
Add vim swap files to gitignore list.
jotaki Sep 25, 2013
0a1dd2e
Updated to include needed libraries
jotaki Sep 25, 2013
fd9ae51
Some associated JAR files for reflection.
jotaki Sep 25, 2013
563febf
un-comment /dist/ directory
jotaki Sep 25, 2013
94da44a
Remove JRobo.jar
jotaki Sep 25, 2013
8c9b1ee
CommandFactory object.
jotaki Sep 25, 2013
0cd735c
Use CommandFactory to fire off commands.
jotaki Sep 25, 2013
54bd1e1
Use empty initializer.
jotaki Sep 25, 2013
9cffd07
Make interface public.
jotaki Sep 25, 2013
1488a2b
Update code to reflect empty initializer method.
jotaki Sep 25, 2013
df0f39a
Support 'aliases' for a command.
jotaki Sep 27, 2013
5920c40
no reason for args[0] to be the bot command.
jotaki Sep 27, 2013
49ee106
strJoin() wrapper, I really feel like Java should have this feature b…
jotaki Sep 27, 2013
2953932
Adjust TestCommand to test ability of aliases.
jotaki Sep 27, 2013
15a4848
Port 'google' command to Factory Framework.
jotaki Sep 27, 2013
0a0c22e
add setInputCommand (useful for 'bot commands' that may wish to react…
jotaki Sep 28, 2013
bf646c9
Some more helper code in BotCommand abstract class object.
jotaki Sep 28, 2013
e1b96a2
OpCommands object. (So far only part/goto, but should ultimately have…
jotaki Sep 28, 2013
488dbc8
Add return :-/
jotaki Sep 28, 2013
9df5277
Some channel user tracking. Along with some added helper commands.
jotaki Sep 28, 2013
4994822
getUsers() wrapper command for Bot Commands.
jotaki Sep 28, 2013
34f2591
Just modifying test command for testing.
jotaki Sep 28, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/nbproject/private/
/build/
#/dist/
#/dist/JRobo.jar
/dist/
/src/jrobo/thepiratebay.php
.*.swo
.*.swp
Binary file removed dist/JRobo.jar
Binary file not shown.
Binary file added lib/dom4j-1.6.jar
Binary file not shown.
Binary file added lib/google-collections-1.0.jar
Binary file not shown.
Binary file added lib/javassist-3.8.0.GA.jar
Binary file not shown.
Binary file added lib/nlog4j-1.2.25.jar
Binary file not shown.
Binary file added lib/reflections-0.9.5-RC2.jar
Binary file not shown.
Binary file added lib/slf4j-api-1.5.6.jar
Binary file not shown.
188 changes: 100 additions & 88 deletions nbproject/project.properties
Original file line number Diff line number Diff line change
@@ -1,88 +1,100 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=JRobo
application.vendor=TESLA
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/JRobo.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.gson-2.2.2.jar=lib/gson-2.2.2.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.gson-2.2.2.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.processorpath=\
${javac.classpath}
javac.source=1.7
javac.target=1.7
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.reference.gson-2.2.2.jar=lib/gson-2.2.2-javadoc.jar
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=false
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
main.class=jrobo.JRobo
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
source.reference.gson-2.2.2.jar=lib/gson-2.2.2-sources.jar
src.dir=src
test.src.dir=test
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=JRobo
application.vendor=TESLA
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.test.classpath=\
${run.test.classpath}
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/JRobo.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
file.reference.dom4j-1.6.jar=lib/dom4j-1.6.jar
file.reference.google-collections-1.0.jar=lib/google-collections-1.0.jar
file.reference.gson-2.2.2.jar=lib/gson-2.2.2.jar
file.reference.javassist-3.8.0.GA.jar=lib/javassist-3.8.0.GA.jar
file.reference.nlog4j-1.2.25.jar=lib/nlog4j-1.2.25.jar
file.reference.reflections-0.9.5-RC2.jar=lib/reflections-0.9.5-RC2.jar
file.reference.slf4j-api-1.5.6.jar=lib/slf4j-api-1.5.6.jar
includes=**
jar.archive.disabled=${jnlp.enabled}
jar.compress=false
jar.index=${jnlp.enabled}
javac.classpath=\
${file.reference.gson-2.2.2.jar}:\
${file.reference.google-collections-1.0.jar}:\
${file.reference.dom4j-1.6.jar}:\
${file.reference.javassist-3.8.0.GA.jar}:\
${file.reference.nlog4j-1.2.25.jar}:\
${file.reference.reflections-0.9.5-RC2.jar}:\
${file.reference.slf4j-api-1.5.6.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.processorpath=\
${javac.classpath}
javac.source=1.7
javac.target=1.7
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.reference.gson-2.2.2.jar=lib/gson-2.2.2-javadoc.jar
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jnlp.codebase.type=no.codebase
jnlp.descriptor=application
jnlp.enabled=false
jnlp.mixed.code=default
jnlp.offline-allowed=false
jnlp.signed=false
jnlp.signing=
jnlp.signing.alias=
jnlp.signing.keystore=
main.class=jrobo.JRobo
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
source.reference.gson-2.2.2.jar=lib/gson-2.2.2-sources.jar
src.dir=src
test.src.dir=test
Loading