From e9379295c7d22cc829d3b7a7da9973ac4403f216 Mon Sep 17 00:00:00 2001 From: FelixSFD Date: Sun, 8 Jul 2018 15:04:24 +0200 Subject: [PATCH 1/5] - use chatexchange 2.0.0-SNAPSHOT --- pom.xml | 4 ++-- .../java/org/sobotics/guttenberg/clients/Client.java | 2 +- .../org/sobotics/guttenberg/clients/Guttenberg.java | 3 +-- .../guttenberg/commandlists/SoBoticsCommandsList.java | 10 +++++----- .../java/org/sobotics/guttenberg/commands/Alive.java | 4 ++-- .../java/org/sobotics/guttenberg/commands/Check.java | 5 ++--- .../sobotics/guttenberg/commands/CheckInternet.java | 6 +++--- .../org/sobotics/guttenberg/commands/CheckUser.java | 5 ++--- .../org/sobotics/guttenberg/commands/ClearHelp.java | 4 ++-- .../org/sobotics/guttenberg/commands/Commands.java | 4 ++-- .../org/sobotics/guttenberg/commands/Feedback.java | 6 +++--- .../java/org/sobotics/guttenberg/commands/Kill.java | 6 +++--- .../org/sobotics/guttenberg/commands/LogLevel.java | 7 +++---- .../java/org/sobotics/guttenberg/commands/OptIn.java | 6 +++--- .../java/org/sobotics/guttenberg/commands/OptOut.java | 6 +++--- .../java/org/sobotics/guttenberg/commands/Quota.java | 5 ++--- .../java/org/sobotics/guttenberg/commands/Reboot.java | 6 +++--- .../java/org/sobotics/guttenberg/commands/Say.java | 4 ++-- .../sobotics/guttenberg/commands/SpecialCommand.java | 2 +- .../java/org/sobotics/guttenberg/commands/Status.java | 5 ++--- .../java/org/sobotics/guttenberg/commands/Update.java | 4 ++-- .../java/org/sobotics/guttenberg/roomdata/BotRoom.java | 10 +++++----- .../sobotics/guttenberg/roomdata/SEBoticsChatRoom.java | 10 +++++----- .../sobotics/guttenberg/roomdata/SOBoticsChatRoom.java | 10 +++++----- .../guttenberg/roomdata/SOBoticsWorkshopChatRoom.java | 10 +++++----- .../sobotics/guttenberg/services/CleanerService.java | 2 +- .../sobotics/guttenberg/services/RunnerService.java | 10 +++++----- .../sobotics/guttenberg/services/SelfCheckService.java | 4 ++-- .../sobotics/guttenberg/services/UpdateService.java | 2 +- .../java/org/sobotics/guttenberg/utils/PostUtils.java | 6 +++--- .../java/org/sobotics/guttenberg/utils/UserUtils.java | 4 ++-- 31 files changed, 83 insertions(+), 89 deletions(-) diff --git a/pom.xml b/pom.xml index 066540f..e73910c 100644 --- a/pom.xml +++ b/pom.xml @@ -14,9 +14,9 @@ 1.0 - fr.tunaki.stackoverflow + org.sobotics chatexchange - 1.1.2-SNAPSHOT + 2.0.0-SNAPSHOT com.optimaize.languagedetector diff --git a/src/main/java/org/sobotics/guttenberg/clients/Client.java b/src/main/java/org/sobotics/guttenberg/clients/Client.java index a639162..c37050c 100644 --- a/src/main/java/org/sobotics/guttenberg/clients/Client.java +++ b/src/main/java/org/sobotics/guttenberg/clients/Client.java @@ -24,7 +24,7 @@ import org.sobotics.guttenberg.utils.FileUtils; import org.sobotics.guttenberg.utils.StatusUtils; -import fr.tunaki.stackoverflow.chat.StackExchangeClient; +import org.sobotics.chatexchange.chat.StackExchangeClient; /** diff --git a/src/main/java/org/sobotics/guttenberg/clients/Guttenberg.java b/src/main/java/org/sobotics/guttenberg/clients/Guttenberg.java index 6e44c27..001235d 100644 --- a/src/main/java/org/sobotics/guttenberg/clients/Guttenberg.java +++ b/src/main/java/org/sobotics/guttenberg/clients/Guttenberg.java @@ -1,6 +1,5 @@ package org.sobotics.guttenberg.clients; -import java.io.FileInputStream; import java.io.IOException; import java.time.Instant; import java.util.ArrayList; @@ -20,7 +19,7 @@ import org.sobotics.guttenberg.utils.FileUtils; import org.sobotics.guttenberg.utils.StatusUtils; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Room; /** * Fetches and analyzes the data from the API diff --git a/src/main/java/org/sobotics/guttenberg/commandlists/SoBoticsCommandsList.java b/src/main/java/org/sobotics/guttenberg/commandlists/SoBoticsCommandsList.java index 85da5fa..551ac0c 100644 --- a/src/main/java/org/sobotics/guttenberg/commandlists/SoBoticsCommandsList.java +++ b/src/main/java/org/sobotics/guttenberg/commandlists/SoBoticsCommandsList.java @@ -17,11 +17,11 @@ import org.sobotics.guttenberg.utils.FilePathUtils; import org.sobotics.guttenberg.utils.FileUtils; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; -import fr.tunaki.stackoverflow.chat.event.MessagePostedEvent; -import fr.tunaki.stackoverflow.chat.event.PingMessageEvent; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; +import org.sobotics.chatexchange.chat.event.MessagePostedEvent; +import org.sobotics.chatexchange.chat.event.PingMessageEvent; /** * Created by bhargav.h on 28-Oct-16. diff --git a/src/main/java/org/sobotics/guttenberg/commands/Alive.java b/src/main/java/org/sobotics/guttenberg/commands/Alive.java index 4146c49..6f7e57a 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Alive.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Alive.java @@ -7,8 +7,8 @@ import org.sobotics.redunda.PingService; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; /** * Created by bhargav.h on 30-Sep-16. diff --git a/src/main/java/org/sobotics/guttenberg/commands/Check.java b/src/main/java/org/sobotics/guttenberg/commands/Check.java index 9367697..824384d 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Check.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Check.java @@ -1,6 +1,5 @@ package org.sobotics.guttenberg.commands; -import java.io.FileInputStream; import java.io.IOException; import java.util.Collections; import java.util.Comparator; @@ -19,8 +18,8 @@ import com.google.gson.JsonObject; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; public class Check implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java b/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java index bcbd0fb..0680062 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java +++ b/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java @@ -31,11 +31,11 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; /** - * Command to search for plagarisim using internet + * Command to search for plagiarisim using internet * * @author Petter Friberg * diff --git a/src/main/java/org/sobotics/guttenberg/commands/CheckUser.java b/src/main/java/org/sobotics/guttenberg/commands/CheckUser.java index e19a9dd..b6bdda4 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/CheckUser.java +++ b/src/main/java/org/sobotics/guttenberg/commands/CheckUser.java @@ -1,6 +1,5 @@ package org.sobotics.guttenberg.commands; -import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Formatter; @@ -27,8 +26,8 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; /** * Command to check all post of a user. diff --git a/src/main/java/org/sobotics/guttenberg/commands/ClearHelp.java b/src/main/java/org/sobotics/guttenberg/commands/ClearHelp.java index 7b209d2..559da18 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/ClearHelp.java +++ b/src/main/java/org/sobotics/guttenberg/commands/ClearHelp.java @@ -4,8 +4,8 @@ import org.sobotics.guttenberg.utils.StatusUtils; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; public class ClearHelp implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/Commands.java b/src/main/java/org/sobotics/guttenberg/commands/Commands.java index 654b8ad..ced11e0 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Commands.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Commands.java @@ -6,8 +6,8 @@ import org.sobotics.guttenberg.utils.PrintUtils; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; /** * Created by bhargav.h on 30-Sep-16. diff --git a/src/main/java/org/sobotics/guttenberg/commands/Feedback.java b/src/main/java/org/sobotics/guttenberg/commands/Feedback.java index e9fe9cf..6a3a2d1 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Feedback.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Feedback.java @@ -8,9 +8,9 @@ import org.sobotics.guttenberg.utils.CommandUtils; import org.sobotics.guttenberg.utils.PostUtils; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.event.PingMessageEvent; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.event.PingMessageEvent; /** * Created by bhargav.h on 29-Nov-16. diff --git a/src/main/java/org/sobotics/guttenberg/commands/Kill.java b/src/main/java/org/sobotics/guttenberg/commands/Kill.java index 5b7567f..dfbb130 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Kill.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Kill.java @@ -5,9 +5,9 @@ import org.sobotics.guttenberg.services.RunnerService; import org.sobotics.guttenberg.utils.CommandUtils; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; public class Kill implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/LogLevel.java b/src/main/java/org/sobotics/guttenberg/commands/LogLevel.java index c4154fc..ef7a1a2 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/LogLevel.java +++ b/src/main/java/org/sobotics/guttenberg/commands/LogLevel.java @@ -1,6 +1,5 @@ package org.sobotics.guttenberg.commands; -import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.Properties; @@ -15,9 +14,9 @@ import org.sobotics.guttenberg.utils.FileUtils; import org.sobotics.redunda.PingService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; public class LogLevel implements SpecialCommand { private static final Logger LOGGER = LoggerFactory.getLogger(LogLevel.class); diff --git a/src/main/java/org/sobotics/guttenberg/commands/OptIn.java b/src/main/java/org/sobotics/guttenberg/commands/OptIn.java index 598378b..d7ef1e2 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/OptIn.java +++ b/src/main/java/org/sobotics/guttenberg/commands/OptIn.java @@ -7,9 +7,9 @@ import org.sobotics.guttenberg.utils.FilePathUtils; import org.sobotics.guttenberg.utils.FileUtils; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; public class OptIn implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/OptOut.java b/src/main/java/org/sobotics/guttenberg/commands/OptOut.java index f414d1f..0668919 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/OptOut.java +++ b/src/main/java/org/sobotics/guttenberg/commands/OptOut.java @@ -7,9 +7,9 @@ import org.sobotics.guttenberg.utils.FilePathUtils; import org.sobotics.guttenberg.utils.FileUtils; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; public class OptOut implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/Quota.java b/src/main/java/org/sobotics/guttenberg/commands/Quota.java index 4b98e70..1f035b2 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Quota.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Quota.java @@ -6,7 +6,6 @@ import org.sobotics.guttenberg.utils.StatusUtils; import org.sobotics.redunda.PingService; -import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; @@ -14,8 +13,8 @@ import org.slf4j.LoggerFactory; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; public class Quota implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/Reboot.java b/src/main/java/org/sobotics/guttenberg/commands/Reboot.java index f8d5dbb..0eb9079 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Reboot.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Reboot.java @@ -9,9 +9,9 @@ import org.slf4j.LoggerFactory; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; /** * diff --git a/src/main/java/org/sobotics/guttenberg/commands/Say.java b/src/main/java/org/sobotics/guttenberg/commands/Say.java index 95d9583..d239276 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Say.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Say.java @@ -3,8 +3,8 @@ import org.sobotics.guttenberg.utils.CommandUtils; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; /** * Created by bhargav.h on 30-Sep-16. diff --git a/src/main/java/org/sobotics/guttenberg/commands/SpecialCommand.java b/src/main/java/org/sobotics/guttenberg/commands/SpecialCommand.java index ed52d59..241f00e 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/SpecialCommand.java +++ b/src/main/java/org/sobotics/guttenberg/commands/SpecialCommand.java @@ -1,6 +1,6 @@ package org.sobotics.guttenberg.commands; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Room; import org.sobotics.guttenberg.services.RunnerService; diff --git a/src/main/java/org/sobotics/guttenberg/commands/Status.java b/src/main/java/org/sobotics/guttenberg/commands/Status.java index c1ccf69..4885157 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Status.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Status.java @@ -1,6 +1,5 @@ package org.sobotics.guttenberg.commands; -import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; @@ -14,8 +13,8 @@ import org.sobotics.redunda.PingService; import org.sobotics.guttenberg.services.RunnerService; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; public class Status implements SpecialCommand { diff --git a/src/main/java/org/sobotics/guttenberg/commands/Update.java b/src/main/java/org/sobotics/guttenberg/commands/Update.java index 8f989b6..98bee7f 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Update.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Update.java @@ -6,8 +6,8 @@ import org.sobotics.guttenberg.services.RunnerService; import org.sobotics.guttenberg.utils.CommandUtils; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; public class Update implements SpecialCommand { private static final Logger LOGGER = LoggerFactory.getLogger(Update.class); diff --git a/src/main/java/org/sobotics/guttenberg/roomdata/BotRoom.java b/src/main/java/org/sobotics/guttenberg/roomdata/BotRoom.java index e87cdac..a12553a 100644 --- a/src/main/java/org/sobotics/guttenberg/roomdata/BotRoom.java +++ b/src/main/java/org/sobotics/guttenberg/roomdata/BotRoom.java @@ -1,10 +1,10 @@ package org.sobotics.guttenberg.roomdata; -import fr.tunaki.stackoverflow.chat.ChatHost; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.event.MessagePostedEvent; -import fr.tunaki.stackoverflow.chat.event.MessageReplyEvent; -import fr.tunaki.stackoverflow.chat.event.UserMentionedEvent; +import org.sobotics.chatexchange.chat.ChatHost; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.event.MessagePostedEvent; +import org.sobotics.chatexchange.chat.event.MessageReplyEvent; +import org.sobotics.chatexchange.chat.event.UserMentionedEvent; import java.util.function.Consumer; diff --git a/src/main/java/org/sobotics/guttenberg/roomdata/SEBoticsChatRoom.java b/src/main/java/org/sobotics/guttenberg/roomdata/SEBoticsChatRoom.java index 2be7c80..42b36a0 100644 --- a/src/main/java/org/sobotics/guttenberg/roomdata/SEBoticsChatRoom.java +++ b/src/main/java/org/sobotics/guttenberg/roomdata/SEBoticsChatRoom.java @@ -8,11 +8,11 @@ import org.sobotics.guttenberg.services.RunnerService; import org.sobotics.guttenberg.utils.PostUtils; -import fr.tunaki.stackoverflow.chat.ChatHost; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.event.MessagePostedEvent; -import fr.tunaki.stackoverflow.chat.event.MessageReplyEvent; -import fr.tunaki.stackoverflow.chat.event.UserMentionedEvent; +import org.sobotics.chatexchange.chat.ChatHost; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.event.MessagePostedEvent; +import org.sobotics.chatexchange.chat.event.MessageReplyEvent; +import org.sobotics.chatexchange.chat.event.UserMentionedEvent; public class SEBoticsChatRoom implements BotRoom { diff --git a/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsChatRoom.java b/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsChatRoom.java index 47666ea..bf46d73 100644 --- a/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsChatRoom.java +++ b/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsChatRoom.java @@ -1,10 +1,10 @@ package org.sobotics.guttenberg.roomdata; -import fr.tunaki.stackoverflow.chat.ChatHost; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.event.MessagePostedEvent; -import fr.tunaki.stackoverflow.chat.event.MessageReplyEvent; -import fr.tunaki.stackoverflow.chat.event.UserMentionedEvent; +import org.sobotics.chatexchange.chat.ChatHost; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.event.MessagePostedEvent; +import org.sobotics.chatexchange.chat.event.MessageReplyEvent; +import org.sobotics.chatexchange.chat.event.UserMentionedEvent; import java.util.function.Consumer; diff --git a/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsWorkshopChatRoom.java b/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsWorkshopChatRoom.java index fe92e78..18323ea 100644 --- a/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsWorkshopChatRoom.java +++ b/src/main/java/org/sobotics/guttenberg/roomdata/SOBoticsWorkshopChatRoom.java @@ -8,11 +8,11 @@ import org.sobotics.guttenberg.services.RunnerService; import org.sobotics.guttenberg.utils.PostUtils; -import fr.tunaki.stackoverflow.chat.ChatHost; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.event.MessagePostedEvent; -import fr.tunaki.stackoverflow.chat.event.MessageReplyEvent; -import fr.tunaki.stackoverflow.chat.event.UserMentionedEvent; +import org.sobotics.chatexchange.chat.ChatHost; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.event.MessagePostedEvent; +import org.sobotics.chatexchange.chat.event.MessageReplyEvent; +import org.sobotics.chatexchange.chat.event.UserMentionedEvent; public class SOBoticsWorkshopChatRoom implements BotRoom { diff --git a/src/main/java/org/sobotics/guttenberg/services/CleanerService.java b/src/main/java/org/sobotics/guttenberg/services/CleanerService.java index 66ff620..14e3d42 100644 --- a/src/main/java/org/sobotics/guttenberg/services/CleanerService.java +++ b/src/main/java/org/sobotics/guttenberg/services/CleanerService.java @@ -6,7 +6,7 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Room; public class CleanerService { private Room room; diff --git a/src/main/java/org/sobotics/guttenberg/services/RunnerService.java b/src/main/java/org/sobotics/guttenberg/services/RunnerService.java index 70a6b75..4053d1a 100644 --- a/src/main/java/org/sobotics/guttenberg/services/RunnerService.java +++ b/src/main/java/org/sobotics/guttenberg/services/RunnerService.java @@ -21,11 +21,11 @@ import org.sobotics.redunda.PingService; import org.sobotics.redunda.PingServiceDelegate; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.StackExchangeClient; -import fr.tunaki.stackoverflow.chat.event.EventType; -import fr.tunaki.stackoverflow.chat.event.MessagePostedEvent; -import fr.tunaki.stackoverflow.chat.event.UserMentionedEvent; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.StackExchangeClient; +import org.sobotics.chatexchange.chat.event.EventType; +import org.sobotics.chatexchange.chat.event.MessagePostedEvent; +import org.sobotics.chatexchange.chat.event.UserMentionedEvent; public class RunnerService implements PingServiceDelegate { private StackExchangeClient client; diff --git a/src/main/java/org/sobotics/guttenberg/services/SelfCheckService.java b/src/main/java/org/sobotics/guttenberg/services/SelfCheckService.java index 1894691..987b5cf 100644 --- a/src/main/java/org/sobotics/guttenberg/services/SelfCheckService.java +++ b/src/main/java/org/sobotics/guttenberg/services/SelfCheckService.java @@ -9,8 +9,8 @@ import org.sobotics.redunda.PingService; import org.sobotics.guttenberg.utils.StatusUtils; -import fr.tunaki.stackoverflow.chat.ChatHost; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.ChatHost; +import org.sobotics.chatexchange.chat.Room; public class SelfCheckService { private ScheduledExecutorService executorService; diff --git a/src/main/java/org/sobotics/guttenberg/services/UpdateService.java b/src/main/java/org/sobotics/guttenberg/services/UpdateService.java index 50bbfa4..82e6cac 100644 --- a/src/main/java/org/sobotics/guttenberg/services/UpdateService.java +++ b/src/main/java/org/sobotics/guttenberg/services/UpdateService.java @@ -8,7 +8,7 @@ import org.slf4j.LoggerFactory; import org.sobotics.guttenberg.clients.Updater; -import fr.tunaki.stackoverflow.chat.Room; +import org.sobotics.chatexchange.chat.Room; public class UpdateService { private ScheduledExecutorService executorService; diff --git a/src/main/java/org/sobotics/guttenberg/utils/PostUtils.java b/src/main/java/org/sobotics/guttenberg/utils/PostUtils.java index 9ddecaf..2f61de0 100644 --- a/src/main/java/org/sobotics/guttenberg/utils/PostUtils.java +++ b/src/main/java/org/sobotics/guttenberg/utils/PostUtils.java @@ -19,9 +19,9 @@ import com.google.gson.JsonElement; import com.google.gson.JsonObject; -import fr.tunaki.stackoverflow.chat.Message; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.event.PingMessageEvent; +import org.sobotics.chatexchange.chat.Message; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.event.PingMessageEvent; public class PostUtils { diff --git a/src/main/java/org/sobotics/guttenberg/utils/UserUtils.java b/src/main/java/org/sobotics/guttenberg/utils/UserUtils.java index d3dbb96..726b280 100644 --- a/src/main/java/org/sobotics/guttenberg/utils/UserUtils.java +++ b/src/main/java/org/sobotics/guttenberg/utils/UserUtils.java @@ -1,7 +1,7 @@ package org.sobotics.guttenberg.utils; -import fr.tunaki.stackoverflow.chat.Room; -import fr.tunaki.stackoverflow.chat.User; +import org.sobotics.chatexchange.chat.Room; +import org.sobotics.chatexchange.chat.User; import java.util.ArrayList; import java.util.List; From a859f0ef898c03b0e596b31c00253e330778461d Mon Sep 17 00:00:00 2001 From: FelixSFD Date: Wed, 11 Jul 2018 12:39:12 +0200 Subject: [PATCH 2/5] #179: - remove line-break in "alive"-message --- src/main/java/org/sobotics/guttenberg/commands/Alive.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sobotics/guttenberg/commands/Alive.java b/src/main/java/org/sobotics/guttenberg/commands/Alive.java index 4146c49..afa32d9 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/Alive.java +++ b/src/main/java/org/sobotics/guttenberg/commands/Alive.java @@ -31,7 +31,7 @@ public boolean validate() { @Override public void execute(Room room, RunnerService instance) { LOGGER.warn("Someone wants to know, if I'm alive"); - room.send("The instance "+PingService.location+ " is running.\nStandby: "+PingService.standby.toString()); + room.send("The instance "+PingService.location+ " is running; Standby: "+PingService.standby.toString()); } @Override From 52b6a499894ee048615bb9715f9fa25797078b88 Mon Sep 17 00:00:00 2001 From: FelixSFD Date: Wed, 11 Jul 2018 15:26:34 +0200 Subject: [PATCH 3/5] - use chatexchange 2.0.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e73910c..791cd0c 100644 --- a/pom.xml +++ b/pom.xml @@ -16,7 +16,7 @@ org.sobotics chatexchange - 2.0.0-SNAPSHOT + 2.0.0 com.optimaize.languagedetector From a8e87e719d53af859915ef1f2cfb030a91271835 Mon Sep 17 00:00:00 2001 From: FelixSFD Date: Mon, 16 Jul 2018 10:47:04 +0200 Subject: [PATCH 4/5] - bump version to 1.2.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 791cd0c..cf21bde 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ de.felixsfd.stackoverflow guttenberg - 1.2.2 + 1.2.3 From f268e0b00e4451b7a15a31b9122ef03a6721128f Mon Sep 17 00:00:00 2001 From: FelixSFD Date: Mon, 16 Jul 2018 11:03:51 +0200 Subject: [PATCH 5/5] - fixed spelling (again) --- .../java/org/sobotics/guttenberg/commands/CheckInternet.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java b/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java index 0680062..aa61b3e 100644 --- a/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java +++ b/src/main/java/org/sobotics/guttenberg/commands/CheckInternet.java @@ -1,6 +1,5 @@ package org.sobotics.guttenberg.commands; -import java.io.FileInputStream; import java.io.IOException; import java.text.NumberFormat; import java.util.ArrayList; @@ -35,7 +34,7 @@ import org.sobotics.chatexchange.chat.Room; /** - * Command to search for plagiarisim using internet + * Command to search for plagiarism using internet * * @author Petter Friberg *