@@ -45,6 +45,11 @@ public final class PasteRequestModule {
4545 "1179586337431633991" ,
4646 "716249661798612992" // BenBenLaw Server
4747 );
48+
49+ private static final List <String > SUPPORTED_SITES = List .of (
50+ "gnomebot.dev"
51+ );
52+
4853 private static final Emoji CREATE_GISTS = Emoji .fromUnicode ("\uD83D \uDCCB " );
4954 private static final Emoji ANALYZE = Emoji .fromUnicode ("\uD83E \uDDD0 " );
5055
@@ -190,18 +195,12 @@ public static void analyzeLog(Message message) {
190195
191196 // Handle Links in the actual message
192197 for (String extractUrl : extractUrls (message .getContentRaw ())) {
193- System .out .println (extractUrl );
194198 var log = LinkExtractorList .LIST .fetch (extractUrl );
195199 if (log != null ) {
196200 analyser .readLog (builder , log );
197- System .out .println ("Read log" );
198201 }
199202 }
200203
201- System .out .println (builder );
202-
203- builder .append ("Testing the Analyzer" );
204-
205204 if (!builder .isEmpty ()) {;
206205 String id = null ;
207206 if (PluginManager .isLoaded ("mangobotsite" )) {
@@ -230,7 +229,14 @@ public static void onMessage(DiscordEvent<MessageReceivedEvent> event) {
230229
231230
232231 if (message .getContentRaw ().contains ("https://" )) {
233- analyze = true ;
232+ chk : for (String extractUrl : extractUrls (message .getContentRaw ())) {
233+ for (String supportedSite : SUPPORTED_SITES ) {
234+ if (extractUrl .contains (supportedSite )) {
235+ analyze = true ;
236+ break chk ;
237+ }
238+ }
239+ }
234240 }
235241
236242 if (!message .getAttachments ().isEmpty ()) {
0 commit comments