You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,5 @@
1
1
# What is this?
2
2
This is a Discord bot written in Java that can link the chat of Minecraft servers with Discord channels.
3
-
<imgwidth="1440"alt="Screenshot of the program running on a blank desktop"src="https://user-images.githubusercontent.com/53956237/136717891-a6233941-3776-4acb-9a66-50c6ec680d4d.png">
4
3
5
4
# Why should I use this one instead of countless others?
@@ -44,10 +44,9 @@ public void onMessageReceived(MessageReceivedEvent event) {
44
44
45
45
for (intid = 0; id < Settings.DISCORD_CHANNEL_IDS.length; id++) { // for all Discord channels ids in config
46
46
if (event.getChannel() == event.getJDA().getTextChannelById(Settings.DISCORD_CHANNEL_IDS[id])) { // if the channel id from the config matches one of the channel id that the message was sent from //todo need to optimize this
47
-
Logger.log("Message received from Discord: " + messageSent, Logger.LoggingLevel.INFO);
47
+
Logger.info("Message received from Discord: " + messageSent);
48
48
MinecraftChatBridge.sendMessageToMc(event.getMessage()); // send message to mc
0 commit comments