Changed the name for the whole project
This commit is contained in:
parent
94550197e2
commit
ed90b8a768
@ -7,8 +7,8 @@
|
|||||||
<!-- the Compile on Save feature is turned off for the project. -->
|
<!-- the Compile on Save feature is turned off for the project. -->
|
||||||
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
||||||
<!-- in the project's Project Properties dialog box.-->
|
<!-- in the project's Project Properties dialog box.-->
|
||||||
<project name="TwitterTechSupportGoreBot" default="default" basedir=".">
|
<project name="RedditReposterBot" default="default" basedir=".">
|
||||||
<description>Builds, tests, and runs the project TwitterTechSupportGoreBot.</description>
|
<description>Builds, tests, and runs the project RedditReposterBot.</description>
|
||||||
<import file="nbproject/build-impl.xml"/>
|
<import file="nbproject/build-impl.xml"/>
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
An example of overriding the target for project execution could look like this:
|
An example of overriding the target for project execution could look like this:
|
||||||
|
|
||||||
<target name="run" depends="TwitterTechSupportGoreBot-impl.jar">
|
<target name="run" depends="RedditReposterBot-impl.jar">
|
||||||
<exec dir="bin" executable="launcher.exe">
|
<exec dir="bin" executable="launcher.exe">
|
||||||
<arg file="${dist.jar}"/>
|
<arg file="${dist.jar}"/>
|
||||||
</exec>
|
</exec>
|
4
reddit_reposter_bot/build/built-jar.properties
Normal file
4
reddit_reposter_bot/build/built-jar.properties
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#Mon, 15 Jul 2019 21:12:22 +0200
|
||||||
|
|
||||||
|
|
||||||
|
C\:\\Users\\louis\\Documents\\GitHub\\twitter_techsupportgore_bot\\reddit_reposter_bot=
|
32
reddit_reposter_bot/dist/README.TXT
vendored
Normal file
32
reddit_reposter_bot/dist/README.TXT
vendored
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
========================
|
||||||
|
BUILD OUTPUT DESCRIPTION
|
||||||
|
========================
|
||||||
|
|
||||||
|
When you build an Java application project that has a main class, the IDE
|
||||||
|
automatically copies all of the JAR
|
||||||
|
files on the projects classpath to your projects dist/lib folder. The IDE
|
||||||
|
also adds each of the JAR files to the Class-Path element in the application
|
||||||
|
JAR files manifest file (MANIFEST.MF).
|
||||||
|
|
||||||
|
To run the project from the command line, go to the dist folder and
|
||||||
|
type the following:
|
||||||
|
|
||||||
|
java -jar "RedditReposterBot.jar"
|
||||||
|
|
||||||
|
To distribute this project, zip up the dist folder (including the lib folder)
|
||||||
|
and distribute the ZIP file.
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
|
||||||
|
* If two JAR files on the project classpath have the same name, only the first
|
||||||
|
JAR file is copied to the lib folder.
|
||||||
|
* Only JAR files are copied to the lib folder.
|
||||||
|
If the classpath contains other types of files or folders, these files (folders)
|
||||||
|
are not copied.
|
||||||
|
* If a library on the projects classpath also has a Class-Path element
|
||||||
|
specified in the manifest,the content of the Class-Path element has to be on
|
||||||
|
the projects runtime path.
|
||||||
|
* To set a main class in a standard Java project, right-click the project node
|
||||||
|
in the Projects window and choose Properties. Then click Run and enter the
|
||||||
|
class name in the Main Class field. Alternatively, you can manually type the
|
||||||
|
class name in the manifest Main-Class element.
|
@ -19,7 +19,7 @@ is divided into following sections:
|
|||||||
- cleanup
|
- cleanup
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="TwitterTechSupportGoreBot-impl">
|
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="RedditReposterBot-impl">
|
||||||
<fail message="Please build using Ant 1.8.0 or higher.">
|
<fail message="Please build using Ant 1.8.0 or higher.">
|
||||||
<condition>
|
<condition>
|
||||||
<not>
|
<not>
|
||||||
@ -450,7 +450,7 @@ is divided into following sections:
|
|||||||
</fileset>
|
</fileset>
|
||||||
</union>
|
</union>
|
||||||
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
|
||||||
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TwitterTechSupportGoreBot" testname="TestNG tests" workingDir="${work.dir}">
|
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="RedditReposterBot" testname="TestNG tests" workingDir="${work.dir}">
|
||||||
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
|
||||||
<propertyset>
|
<propertyset>
|
||||||
<propertyref prefix="test-sys-prop."/>
|
<propertyref prefix="test-sys-prop."/>
|
||||||
@ -601,7 +601,7 @@ is divided into following sections:
|
|||||||
<condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
|
<condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
|
||||||
<isset property="test.method"/>
|
<isset property="test.method"/>
|
||||||
</condition>
|
</condition>
|
||||||
<condition else="-suitename TwitterTechSupportGoreBot -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
|
<condition else="-suitename RedditReposterBot -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
|
||||||
<matches pattern=".*\.xml" string="@{testClass}"/>
|
<matches pattern=".*\.xml" string="@{testClass}"/>
|
||||||
</condition>
|
</condition>
|
||||||
<delete dir="${build.test.results.dir}" quiet="true"/>
|
<delete dir="${build.test.results.dir}" quiet="true"/>
|
||||||
@ -893,7 +893,7 @@ is divided into following sections:
|
|||||||
<delete file="${built-jar.properties}" quiet="true"/>
|
<delete file="${built-jar.properties}" quiet="true"/>
|
||||||
</target>
|
</target>
|
||||||
<target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
|
<target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
|
||||||
<echo level="warn" message="Cycle detected: TwitterTechSupportGoreBot was already built"/>
|
<echo level="warn" message="Cycle detected: RedditReposterBot was already built"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
|
<target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
|
||||||
<mkdir dir="${build.dir}"/>
|
<mkdir dir="${build.dir}"/>
|
||||||
@ -1378,7 +1378,7 @@ is divided into following sections:
|
|||||||
<delete file="${built-clean.properties}" quiet="true"/>
|
<delete file="${built-clean.properties}" quiet="true"/>
|
||||||
</target>
|
</target>
|
||||||
<target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
|
<target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
|
||||||
<echo level="warn" message="Cycle detected: TwitterTechSupportGoreBot was already built"/>
|
<echo level="warn" message="Cycle detected: RedditReposterBot was already built"/>
|
||||||
</target>
|
</target>
|
||||||
<target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
|
<target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
|
||||||
<mkdir dir="${build.dir}"/>
|
<mkdir dir="${build.dir}"/>
|
@ -1,8 +1,8 @@
|
|||||||
build.xml.data.CRC32=3680b253
|
build.xml.data.CRC32=9dc9f11e
|
||||||
build.xml.script.CRC32=9d82390b
|
build.xml.script.CRC32=293f3476
|
||||||
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
|
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
|
||||||
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
|
||||||
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
|
||||||
nbproject/build-impl.xml.data.CRC32=3680b253
|
nbproject/build-impl.xml.data.CRC32=9dc9f11e
|
||||||
nbproject/build-impl.xml.script.CRC32=ee04fc0e
|
nbproject/build-impl.xml.script.CRC32=69003ede
|
||||||
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
|
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48
|
9
reddit_reposter_bot/nbproject/private/private.properties
Normal file
9
reddit_reposter_bot/nbproject/private/private.properties
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
application.args=helo
|
||||||
|
#
|
||||||
|
#Mon Apr 22 18:09:19 CEST 2019
|
||||||
|
javac.debug=true
|
||||||
|
javadoc.preview=true
|
||||||
|
do.depend=false
|
||||||
|
do.jar=true
|
||||||
|
compile.on.save=false
|
||||||
|
user.properties.file=C\:\\Users\\louis\\AppData\\Roaming\\NetBeans\\8.2\\build.properties
|
7
reddit_reposter_bot/nbproject/private/private.xml
Normal file
7
reddit_reposter_bot/nbproject/private/private.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
||||||
|
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
|
||||||
|
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
|
||||||
|
<group/>
|
||||||
|
</open-files>
|
||||||
|
</project-private>
|
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
|
||||||
|
<properties>
|
||||||
|
<comment/>
|
||||||
|
<entry key="ACTIVATED_FEATURES">#org.netbeans.modules.profiler.v2.features.MonitorFeature@#org.netbeans.modules.profiler.v2.features.ThreadsFeature@#org.netbeans.modules.profiler.v2.features.SQLFeature@</entry>
|
||||||
|
<entry key="SINGLE_FEATURE">false</entry>
|
||||||
|
</properties>
|
@ -3,7 +3,7 @@ annotation.processing.enabled.in.editor=false
|
|||||||
annotation.processing.processors.list=
|
annotation.processing.processors.list=
|
||||||
annotation.processing.run.all.processors=true
|
annotation.processing.run.all.processors=true
|
||||||
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
|
||||||
application.title=TwitterTechSupportGoreBot
|
application.title=RedditReposterBot
|
||||||
application.vendor=louis
|
application.vendor=louis
|
||||||
build.classes.dir=${build.dir}/classes
|
build.classes.dir=${build.dir}/classes
|
||||||
build.classes.excludes=**/*.java,**/*.form
|
build.classes.excludes=**/*.java,**/*.form
|
||||||
@ -25,7 +25,7 @@ debug.test.classpath=\
|
|||||||
dist.archive.excludes=
|
dist.archive.excludes=
|
||||||
# This directory is removed when the project is cleaned:
|
# This directory is removed when the project is cleaned:
|
||||||
dist.dir=dist
|
dist.dir=dist
|
||||||
dist.jar=${dist.dir}/TwitterTechSupportGoreBot.jar
|
dist.jar=${dist.dir}/RedditReposterBot.jar
|
||||||
dist.javadoc.dir=${dist.dir}/javadoc
|
dist.javadoc.dir=${dist.dir}/javadoc
|
||||||
endorsed.classpath=
|
endorsed.classpath=
|
||||||
excludes=
|
excludes=
|
||||||
@ -64,7 +64,7 @@ javadoc.use=true
|
|||||||
javadoc.version=false
|
javadoc.version=false
|
||||||
javadoc.windowtitle=
|
javadoc.windowtitle=
|
||||||
kotlinc.classpath=${file.reference.kotlin-runtime.jar}
|
kotlinc.classpath=${file.reference.kotlin-runtime.jar}
|
||||||
main.class=TwitterTechSupportGoreBot.TwitterTechSupportGoreBot
|
main.class=RedditReposterBot.TwitterTechSupportGoreBot
|
||||||
manifest.file=manifest.mf
|
manifest.file=manifest.mf
|
||||||
meta.inf.dir=${src.dir}/META-INF
|
meta.inf.dir=${src.dir}/META-INF
|
||||||
mkdist.disabled=false
|
mkdist.disabled=false
|
@ -3,7 +3,7 @@
|
|||||||
<type>org.netbeans.modules.java.j2seproject</type>
|
<type>org.netbeans.modules.java.j2seproject</type>
|
||||||
<configuration>
|
<configuration>
|
||||||
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
|
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
|
||||||
<name>TwitterTechSupportGoreBot</name>
|
<name>RedditReposterBot</name>
|
||||||
<source-roots>
|
<source-roots>
|
||||||
<root id="src.dir"/>
|
<root id="src.dir"/>
|
||||||
</source-roots>
|
</source-roots>
|
@ -14,11 +14,13 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot;
|
package RedditReposterBot;
|
||||||
|
|
||||||
|
import RedditReposterBot.exceptions.NoSuchFile;
|
||||||
|
import RedditReposterBot.exceptions.NotSufficientRights;
|
||||||
|
import RedditReposterBot.exceptions.NoSuchProperty;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import TwitterTechSupportGoreBot.exceptions.*;
|
|
||||||
import java.io.FileInputStream;
|
import java.io.FileInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
@ -14,12 +14,15 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot;
|
package RedditReposterBot;
|
||||||
|
|
||||||
import TwitterTechSupportGoreBot.redditHandler.RedditPost;
|
import RedditReposterBot.socialMediaHandler.SocialMediaPoster;
|
||||||
import TwitterTechSupportGoreBot.socialMediaHandler.*;
|
import RedditReposterBot.redditHandler.RedditExtractor;
|
||||||
import TwitterTechSupportGoreBot.redditHandler.*;
|
import RedditReposterBot.exceptions.NoSuchFile;
|
||||||
import TwitterTechSupportGoreBot.exceptions.*;
|
import RedditReposterBot.exceptions.NoSuchOrder;
|
||||||
|
import RedditReposterBot.exceptions.NotSufficientRights;
|
||||||
|
import RedditReposterBot.exceptions.NoSuchProperty;
|
||||||
|
import RedditReposterBot.redditHandler.RedditPost;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileOutputStream;
|
import java.io.FileOutputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@ -32,7 +35,6 @@ import java.sql.DriverManager;
|
|||||||
import java.sql.PreparedStatement;
|
import java.sql.PreparedStatement;
|
||||||
import java.sql.ResultSet;
|
import java.sql.ResultSet;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.Iterator;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Singleton Hypervisor. This is the object that does everything. So we want it
|
* Singleton Hypervisor. This is the object that does everything. So we want it
|
@ -14,13 +14,13 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot;
|
package RedditReposterBot;
|
||||||
|
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
|
import RedditReposterBot.socialMediaHandler.TwitterBot;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchOrder;
|
import RedditReposterBot.exceptions.NoSuchFile;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchProperty;
|
import RedditReposterBot.exceptions.NoSuchOrder;
|
||||||
import TwitterTechSupportGoreBot.socialMediaHandler.*;
|
import RedditReposterBot.exceptions.NoSuchProperty;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NotSufficientRights;
|
import RedditReposterBot.exceptions.NotSufficientRights;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
|
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.exceptions;
|
package RedditReposterBot.exceptions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception throwable when there are no file at a given path.
|
* Exception throwable when there are no file at a given path.
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.exceptions;
|
package RedditReposterBot.exceptions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception throwable when a sort order isn't a correct one.
|
* Exception throwable when a sort order isn't a correct one.
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.exceptions;
|
package RedditReposterBot.exceptions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception throwable when there are no property in the config file for a given
|
* Exception throwable when there are no property in the config file for a given
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.exceptions;
|
package RedditReposterBot.exceptions;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Exception throwable when the rights on a folder or a file aren't sufficient.
|
* Exception throwable when the rights on a folder or a file aren't sufficient.
|
@ -14,12 +14,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
|
import RedditReposterBot.exceptions.NoSuchFile;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchOrder;
|
import RedditReposterBot.exceptions.NoSuchOrder;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchProperty;
|
import RedditReposterBot.exceptions.NoSuchProperty;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NotSufficientRights;
|
import RedditReposterBot.exceptions.NotSufficientRights;
|
||||||
import com.google.gson.JsonArray;
|
import com.google.gson.JsonArray;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
@ -50,9 +50,9 @@ public final class RedditExtractor {
|
|||||||
* @param subreddit Subreddit name. Just after /r/
|
* @param subreddit Subreddit name. Just after /r/
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchProperty
|
* @throws RedditReposterBot.exceptions.NoSuchProperty
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchFile
|
* @throws RedditReposterBot.exceptions.NoSuchFile
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NotSufficientRights
|
* @throws RedditReposterBot.exceptions.NotSufficientRights
|
||||||
* @throws NoSuchOrder
|
* @throws NoSuchOrder
|
||||||
*/
|
*/
|
||||||
public RedditExtractor(String subreddit)
|
public RedditExtractor(String subreddit)
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is an abstract class to define all RedditPosts.
|
* This is an abstract class to define all RedditPosts.
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reddit image post object representation.
|
* Reddit image post object representation.
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reddit link post object representation.
|
* Reddit link post object representation.
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reddit text post object representation.
|
* Reddit text post object representation.
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reddit video post object representation.
|
* Reddit video post object representation.
|
@ -14,13 +14,13 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.redditHandler;
|
package RedditReposterBot.redditHandler;
|
||||||
|
|
||||||
import TwitterTechSupportGoreBot.ConfigFileReader;
|
import RedditReposterBot.ConfigFileReader;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
|
import RedditReposterBot.exceptions.NoSuchFile;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchOrder;
|
import RedditReposterBot.exceptions.NoSuchOrder;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchProperty;
|
import RedditReposterBot.exceptions.NoSuchProperty;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NotSufficientRights;
|
import RedditReposterBot.exceptions.NotSufficientRights;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -60,10 +60,10 @@ public final class SubReddit {
|
|||||||
*
|
*
|
||||||
* @param name subreddit's name
|
* @param name subreddit's name
|
||||||
*
|
*
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchProperty
|
* @throws RedditReposterBot.exceptions.NoSuchProperty
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchFile
|
* @throws RedditReposterBot.exceptions.NoSuchFile
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NotSufficientRights
|
* @throws RedditReposterBot.exceptions.NotSufficientRights
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchOrder
|
* @throws RedditReposterBot.exceptions.NoSuchOrder
|
||||||
*/
|
*/
|
||||||
public SubReddit(String name) throws NoSuchProperty, NoSuchFile,
|
public SubReddit(String name) throws NoSuchProperty, NoSuchFile,
|
||||||
NotSufficientRights, NoSuchOrder {
|
NotSufficientRights, NoSuchOrder {
|
@ -14,7 +14,7 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.socialMediaHandler;
|
package RedditReposterBot.socialMediaHandler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface to specify what methods should social media posters implement.
|
* Interface to specify what methods should social media posters implement.
|
@ -14,11 +14,12 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
package TwitterTechSupportGoreBot.socialMediaHandler;
|
package RedditReposterBot.socialMediaHandler;
|
||||||
|
|
||||||
import TwitterTechSupportGoreBot.ConfigFileReader;
|
import RedditReposterBot.exceptions.NotSufficientRights;
|
||||||
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
|
import RedditReposterBot.exceptions.NoSuchProperty;
|
||||||
import TwitterTechSupportGoreBot.exceptions.*;
|
import RedditReposterBot.ConfigFileReader;
|
||||||
|
import RedditReposterBot.exceptions.NoSuchFile;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import twitter4j.StatusUpdate;
|
import twitter4j.StatusUpdate;
|
||||||
import twitter4j.Twitter;
|
import twitter4j.Twitter;
|
||||||
@ -61,9 +62,9 @@ public final class TwitterBot implements SocialMediaPoster {
|
|||||||
/**
|
/**
|
||||||
* Main constructor for the Twitter Bot.
|
* Main constructor for the Twitter Bot.
|
||||||
*
|
*
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchFile
|
* @throws RedditReposterBot.exceptions.NoSuchFile
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NotSufficientRights
|
* @throws RedditReposterBot.exceptions.NotSufficientRights
|
||||||
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchProperty
|
* @throws RedditReposterBot.exceptions.NoSuchProperty
|
||||||
*/
|
*/
|
||||||
public TwitterBot() throws NoSuchFile, NotSufficientRights, NoSuchProperty {
|
public TwitterBot() throws NoSuchFile, NotSufficientRights, NoSuchProperty {
|
||||||
ConfigFileReader reader = new ConfigFileReader();
|
ConfigFileReader reader = new ConfigFileReader();
|
Loading…
Reference in New Issue
Block a user