From 5c762ed6eec5181f8ddead0b9ee45916a4dfc91e Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Thu, 25 Apr 2019 17:24:49 +0200 Subject: [PATCH] finished version 0.9 everything is working fine and can be used in testing environnement as it hasn't been tested long enough for being safely deployed in production environnement --- .gitignore | 3 +- twitter_techsupportgore_bot/build.xml | 6 +- .../nbproject/genfiles.properties | 4 +- .../nbproject/project.properties | 12 +- .../nbproject/project.xml | 2 +- twitter_techsupportgore_bot/settings.conf | 23 + .../ConfigFileReader.java | 92 +++ .../TwitterTechSupportGoreBot/Hypervisor.java | 532 ++++++++++++++++++ .../TwitterTechSupportGoreBot.java | 62 ++ .../exceptions/NoSuchFile.java | 41 ++ .../exceptions/NoSuchOrder.java | 42 ++ .../exceptions/NoSuchProperty.java | 43 ++ .../exceptions/NotSufficientRights.java | 42 ++ .../redditHandler/RedditExtractor.java | 218 +++++++ .../redditHandler}/RedditPost.java | 10 +- .../redditHandler}/RedditPostImage.java | 11 +- .../redditHandler}/RedditPostLink.java | 5 +- .../redditHandler}/RedditPostText.java | 9 +- .../redditHandler}/RedditPostVideo.java | 17 +- .../redditHandler}/SubReddit.java | 62 +- .../socialMediaHandler/SocialMediaPoster.java | 35 ++ .../socialMediaHandler/TwitterBot.java | 204 +++++++ .../Hypervisor.java | 82 --- .../Twitter_techsupportgore_bot.java | 58 -- .../reddit_handler/RedditExtractor.java | 181 ------ 25 files changed, 1431 insertions(+), 365 deletions(-) create mode 100644 twitter_techsupportgore_bot/settings.conf create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/ConfigFileReader.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/Hypervisor.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/TwitterTechSupportGoreBot.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/exceptions/NoSuchFile.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/exceptions/NoSuchOrder.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/exceptions/NoSuchProperty.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/exceptions/NotSufficientRights.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/redditHandler/RedditExtractor.java rename twitter_techsupportgore_bot/src/{twitter_techsupportgore_bot/reddit_handler => TwitterTechSupportGoreBot/redditHandler}/RedditPost.java (95%) rename twitter_techsupportgore_bot/src/{twitter_techsupportgore_bot/reddit_handler => TwitterTechSupportGoreBot/redditHandler}/RedditPostImage.java (92%) rename twitter_techsupportgore_bot/src/{twitter_techsupportgore_bot/reddit_handler => TwitterTechSupportGoreBot/redditHandler}/RedditPostLink.java (93%) rename twitter_techsupportgore_bot/src/{twitter_techsupportgore_bot/reddit_handler => TwitterTechSupportGoreBot/redditHandler}/RedditPostText.java (93%) rename twitter_techsupportgore_bot/src/{twitter_techsupportgore_bot/reddit_handler => TwitterTechSupportGoreBot/redditHandler}/RedditPostVideo.java (89%) rename twitter_techsupportgore_bot/src/{twitter_techsupportgore_bot/reddit_handler => TwitterTechSupportGoreBot/redditHandler}/SubReddit.java (50%) create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/socialMediaHandler/SocialMediaPoster.java create mode 100644 twitter_techsupportgore_bot/src/TwitterTechSupportGoreBot/socialMediaHandler/TwitterBot.java delete mode 100644 twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/Hypervisor.java delete mode 100644 twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/Twitter_techsupportgore_bot.java delete mode 100644 twitter_techsupportgore_bot/src/twitter_techsupportgore_bot/reddit_handler/RedditExtractor.java diff --git a/.gitignore b/.gitignore index ef4cf72..e7f40b8 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,5 @@ hs_err_pid* /twitter_techsupportgore_bot/nbproject/private/ /twitter_techsupportgore_bot/build/ -/twitter_techsupportgore_bot/dist/ \ No newline at end of file +/twitter_techsupportgore_bot/dist/ +*.sqlite \ No newline at end of file diff --git a/twitter_techsupportgore_bot/build.xml b/twitter_techsupportgore_bot/build.xml index 02b38f2..28eafff 100644 --- a/twitter_techsupportgore_bot/build.xml +++ b/twitter_techsupportgore_bot/build.xml @@ -7,8 +7,8 @@ - - Builds, tests, and runs the project twitter_techsupportgore_bot. + + Builds, tests, and runs the project TwitterTechSupportGoreBot.