|
4 | 4 | import com.fancyinnovations.fancyfriend.utils.Modrinth; |
5 | 5 | import com.fancyinnovations.fancyfriend.utils.PingWarnings; |
6 | 6 | import com.fancyinnovations.fancyfriend.utils.Staff; |
| 7 | + |
7 | 8 | import net.dv8tion.jda.api.EmbedBuilder; |
8 | 9 | import net.dv8tion.jda.api.entities.Member; |
9 | 10 | import net.dv8tion.jda.api.entities.Message; |
10 | | -import net.dv8tion.jda.api.entities.channel.ChannelType; |
11 | 11 | import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; |
12 | 12 | import net.dv8tion.jda.api.events.message.MessageReceivedEvent; |
13 | 13 | import net.dv8tion.jda.api.exceptions.ErrorHandler; |
14 | 14 | import net.dv8tion.jda.api.hooks.ListenerAdapter; |
15 | 15 | import net.dv8tion.jda.api.requests.ErrorResponse; |
| 16 | + |
16 | 17 | import org.json.JSONObject; |
17 | 18 |
|
18 | 19 | import java.io.IOException; |
@@ -302,14 +303,6 @@ public void onMessageReceived(MessageReceivedEvent event) { |
302 | 303 | StringBuilder pingMessage = new StringBuilder("Hey " + event.getMember() |
303 | 304 | .getEffectiveName() + ", please don't ping staff members!"); |
304 | 305 |
|
305 | | - boolean appendTicket = true; |
306 | | - |
307 | | - if (message.getChannelType() == ChannelType.TEXT) |
308 | | - if (message.getCategory().getIdLong() == 1112487038160220180L) appendTicket = false; |
309 | | - |
310 | | - if (appendTicket) pingMessage.append( |
311 | | - "\nIf there's something that must be addressed privately, please make a ticket with <#1112486757359960175>"); |
312 | | - |
313 | 306 | if (PingWarnings.warnings.get(authorId) > 1 && message.getMessageReference() != null) |
314 | 307 | pingMessage.append("\n-# Please [turn off](https://tenor.com/view/20411479) your reply pings."); |
315 | 308 |
|
|
0 commit comments