Git Product home page Git Product logo

discordintegration-forge's Introduction

Hi!

I am a hobbyist java developer making minecraft mods and discord bots.

discordintegration-forge's People

Contributors

cdagaming avatar dependabot[bot] avatar dmunozv04 avatar erdbeerbaerlp avatar zhongfu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

discordintegration-forge's Issues

[BUG] 1.15.2- seems to be incompatible with newer forge builds past build 24

What happened?
-joins server with forge 31.1.27
get spammed on console and gets kicked a few seconds later

What should happen?

  • join server and everything run as it did in earlier builds of forge

Steps to reproduce

  • join server with forge mentioned above and mod version mentioned below

Version
1.15.2

Mod version 0.0.0
dcintegration-1.1.14-1.15.jar

Logs:
https://gist.githubusercontent.com/SDUBZ/749e37fc70f1e27478385f877dc6f4c0/raw/baec126efbcc2200074ad5d92982cf13553512d5/latest.log

https://gist.githubusercontent.com/SDUBZ/249b07300aff638ba3b2d6026ac46d9b/raw/89b31ad81c81f9a978e124418107bf5e9025d68a/debug.log

[BUG] 1.12.2 v1.12 not working

What happened?
Downloaded last version for 1.12.2 and there were some errors in loading server and after the the server finished loading, nothing happened about bot on discord. Though I must say that config file was actually created

What should happen?
well, you know

Steps to reproduce

  1. Download mod and put it on server mods folder
  2. Launch server, then stop it after full load
  3. Set bot token and channel id in mod config
  4. Launch server. Get the error while loading, though it doesn't crash. You can play without server restart.

Version

  • [+ ] 1.12
  • 1.14

Mod version 1.12

**Crash report if available **
https://paste.dimdev.org/oxaqibolaw.rb

Add IMC for mod compatibility

I recommend adding a way for other mods to send messages to discord, for example Forge's IMC feature.
That way, other mods like BetterQuesting could send their own achievements to Discord, or server management mods could send notifications.

[Suggestion] /console exec command in Discord

What you want to be added?
I'd like to allow those who have the ADMIN_ROLE to be able to directly execute on the Server console. This is so I can easily give people remote access to the console for supporting my community where needed.

I know the CurseForge said 1.12.x would no longer receive feature updates, but it would be really appreciated if you could push this to it.

Filtering of colors in message to discord

This:
image

Looks kinda meh in discord but nice ingame.

You could maybe filter the colors out and possibly transform the underline and bold minecraft codes into discords ones?

Crash during shutdown

It looks like if you command shutdown through signals (such as happens when docker closes the instance), the JDA shutdown hook kills the instance before the server itself.

You should register JDA not to use the shutdown hook, but rather, shutdown JDA during the server halt event. This way there won't be error spam during shutdown.

[27Oct2019 16:11:55.638] [Server thread/ERROR] [net.minecraftforge.eventbus.EventBus/EVENTBUS]: Exception caught during firing event: java.lang.IllegalStateException: The Requester has been shutdown! No new requests can be requested!
        Index: 8
        Listeners:
                0: NORMAL
                1: ASM: everlastingabilities onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                2: ASM: sampler.FmlMod@69853bb1 a(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                3: ASM: flopper onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                4: ASM: commoncapabilities onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                5: ASM: ovh.corail.tombstone.ModTombstone@572f3180 onServerStoppingEvent(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                6: ASM: class com.simibubi.create.Events onClose(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                7: net.minecraftforge.eventbus.EventBus$$Lambda$2462/1565568596@4327d9e
                8: ASM: de.erdbeerbaerlp.dcintegration.DiscordIntegration@292b5d61 serverStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                9: ASM: energeticsheep onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                10: ASM: structuredcrafting onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                11: ASM: cyclopscore onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                12: ASM: colossalchests onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
                13: ASM: capabilityproxy onServerStopping(Lnet/minecraftforge/fml/event/server/FMLServerStoppingEvent;)V
java.lang.RuntimeException: java.lang.IllegalStateException: The Requester has been shutdown! No new requests can be requested!
        at net.dv8tion.jda.core.requests.RestAction.complete(RestAction.java:446)
        at net.dv8tion.jda.core.requests.RestAction.complete(RestAction.java:399)
        at de.erdbeerbaerlp.dcintegration.Discord.getWebhook(Discord.java:449)
        at de.erdbeerbaerlp.dcintegration.DiscordIntegration.serverStopping(DiscordIntegration.java:329)
        at net.minecraftforge.eventbus.ASMEventHandler_140_DiscordIntegration_serverStopping_FMLServerStoppingEvent.invoke(.dynamic)
        at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
        at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
        at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerStopping(ServerLifecycleHooks.java:101)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:631)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalStateException: The Requester has been shutdown! No new requests can be requested!
        at net.dv8tion.jda.core.requests.Requester.request(Requester.java:106)
        at net.dv8tion.jda.core.requests.RestFuture.<init>(RestFuture.java:36)
        at net.dv8tion.jda.core.requests.RestAction.submit(RestAction.java:380)
        at net.dv8tion.jda.core.requests.RestAction.complete(RestAction.java:432)
        ... 9 more

It looks like there is an option to tell JDA not to register a shutdown hook..

[BUG] Couldn't load

What happened?
-Crash on startup

What should happen?
-Plugin should start

Steps to reproduce

  • place plugin in /plugins
  • start the server

Version
Paperspigot 1.15.2 This server is running Paper version git-Paper-105 (MC: 1.15.2) (Implementing API version 1.15.2-R0.1-SNAPSHOT)
Mod version Feb 12, 2020

Crash report if available (use https://paste.dimdev.org)

[16:39:03 ERROR]: Could not load 'plugins/dcintegration-1.1.14-1.15.jar' in folder 'plugins'
org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:159) ~[patched_1.15.2.jar:git-Paper-105]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:147) ~[patched_1.15.2.jar:git-Paper-105]
        at org.bukkit.craftbukkit.v1_15_R1.CraftServer.loadPlugins(CraftServer.java:358) ~[patched_1.15.2.jar:git-Paper-105]
        at net.minecraft.server.v1_15_R1.DedicatedServer.init(DedicatedServer.java:234) ~[patched_1.15.2.jar:git-Paper-105]
        at net.minecraft.server.v1_15_R1.MinecraftServer.run(MinecraftServer.java:885) ~[patched_1.15.2.jar:git-Paper-105]
        at java.lang.Thread.run(Thread.java:834) [?:?]
Caused by: java.io.FileNotFoundException: Jar does not contain plugin.yml
        ... 6 more

Additional info

  • Host OS: Raspbian (ARM)

[BUG] %player% token no longer being resolved

What happened?
-Since updating to DCIntegration 1.1.8-1.14, messages relayed from Discord to Minecraft now appear as "%player% " rather than the usual player name.

What should happen?
-Presumably the token should be replace with the player's name.

Steps to reproduce

  • Unable to give indication of reproduction steps.

Version

  • 1.12
  • 1.14

Mod version 1.1.8

Crash report if available (use https://paste.dimdev.org)

Additional info

Questionmark as command prefix throws an issue

I set up '?' as my command prefix, but on the usage of any command, an error is instead thrown by the server:

[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:write:277]: [JDA MainWS-ReadThread] ERROR JDA - One of the EventListeners had an uncaught exception
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: java.util.regex.PatternSyntaxException: Dangling meta character '?' near index 0
?
^
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.util.regex.Pattern.error(Pattern.java:1957)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.util.regex.Pattern.sequence(Pattern.java:2125)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.util.regex.Pattern.expr(Pattern.java:1998)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.util.regex.Pattern.compile(Pattern.java:1698)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.util.regex.Pattern.<init>(Pattern.java:1351)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.util.regex.Pattern.compile(Pattern.java:1028)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at java.lang.String.replaceFirst(String.java:2178)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at de.erdbeerbaerlp.dcintegration.Discord.onEvent(Discord.java:326)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.hooks.InterfacedEventManager.handle(InterfacedEventManager.java:84)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.handle.MessageCreateHandler.handleInternally(MessageCreateHandler.java:128)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.handle.SocketHandler.handle(SocketHandler.java:37)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.requests.WebSocketClient.onDispatch(WebSocketClient.java:868)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.requests.WebSocketClient.onEvent(WebSocketClient.java:766)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:745)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:903)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
[20:30:55] [JDA MainWS-ReadThread/INFO] [STDERR]: [net.dv8tion.jda.core.utils.SimpleLogger:log:272]: 	at dcshadow.com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)

Forge is 1.12.2-14.23.5.2836
Mod version is 1.0.9

Allow commands to be used in a separate channel.

Hi,

I have a suggestion, allowing commands to be used in a different channel which can be defined within the config, this would be useful for servers which use one dedicated channel to sync multiple server chats as !list would spam the chat giving players on the servers a spammed chat.

[Suggestion] /ignore command in game.

What you want to be added?

Hi! I have another suggestion (Sorry for all the suggestions!) a command such as /ignore for players to use ingame or /dcdisable to not get relayed messages from the Discord if they wanted to disable it as some players may not like the spam if it is a heavily populated or talkative server such as mine.

I've had quite a few players request this.

[Suggestion] Don't disable the mod in single player.

I've been looking for a discord chat mod to link my modpacks together. However, yours is the only one that even remotely works in 1.12. I attempted to utilize the mod, have my discord set up and ready and everything, but the mod fails to load in Single Player. I checked my logs and found it gets disabled completely. Maybe don't do this and have it not work till LAN is opened?

Logger Error [BUG]

What happened?

  • mod failed to load

Steps to reproduce

  • install mod
  • start server
    -?

Version

  • 1.12

Mod version 1.1.13

newest to oldest

16.03 16:11:19 [Server] JDA MainWS-WriteThread/INFO [STDERR]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [JDA MainWS-WriteThread] INFO WebSocketClient - Connected to WebSocket
16.03 16:11:17 [Server] JDA MainWS-WriteThread/INFO [STDERR]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [JDA MainWS-WriteThread] WARN WebSocketClient - Got disconnected from WebSocket. Appending to reconnect queue
16.03 16:11:17 [Server] JDA MainWS-WriteThread/INFO [STDERR]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [JDA MainWS-WriteThread] ERROR WebSocketClient - Encountered IDENTIFY Rate Limit! Waiting 54 milliseconds before trying again!
16.03 16:11:12 [Server] JDA MainWS-ReadThread/INFO [STDERR]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [JDA MainWS-ReadThread] INFO WebSocketClient - Connected to WebSocket
16.03 16:11:11 [Server] Server thread/INFO [STDERR]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [Server thread] INFO JDA - Login Successful!
16.03 16:10:58 [Server] Server thread/INFO [STDERR]: [dcshadow.slf4j.helpers.Util:report:128]: SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
16.03 16:10:58 [Server] Server thread/INFO [STDERR]: [dcshadow.slf4j.helpers.Util:report:128]: SLF4J: Defaulting to no-operation MDCAdapter implementation.
16.03 16:10:58 [Server] Server thread/INFO [STDERR]: [dcshadow.slf4j.helpers.Util:report:128]: SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
16.03 16:10:54 [Server] Server thread/INFO [STDERR]: [dcshadow.slf4j.helpers.Util:report:128]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
16.03 16:10:54 [Server] Server thread/INFO [STDERR]: [dcshadow.slf4j.helpers.Util:report:128]: SLF4J: Defaulting to no-operation (NOP) logger implementation
16.03 16:10:54 [Server] Server thread/INFO [STDERR]: [dcshadow.slf4j.helpers.Util:report:128]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
16.03 16:10:54 [Server] Server thread/INFO [STDOUT]: [de.erdbeerbaerlp.dcintegration.DiscordIntegration:preInit:409]: Loading mod

[BUG] Server hangs with messages send to discord

What happened?
Discord was having issues so the messages could take a while to get through. The server hanged every time that a message was send to discord (chat/advancement etc)

What should happen?
The server shouldnt have to wait for the message to arrive at Discord's end, and should not hang waiting.

Steps to reproduce
Have discord laggy and say something in minecraft chat

Version

  • 1.14

Mod version 1.1.5

Error during shutdown.

Error while shutting down the server using the stop command potentially causing unclean shutdowns:

[05:35:19] [Server Shutdown Thread/ERROR] [FML]: Exception caught during firing event net.minecraftforge.fml.common.gameevent.PlayerEvent$PlayerLoggedOutEvent@136a5986:
java.lang.NullPointerException: FTBLib Universe == null!
        at com.feed_the_beast.ftblib.lib.data.Universe.get(Universe.java:108) ~[Universe.class:?]
        at de.erdbeerbaerlp.dcintegration.DiscordIntegration.formatPlayerName(DiscordIntegration.java:134) ~[DiscordIntegration.class:?]
        at de.erdbeerbaerlp.dcintegration.DiscordIntegration.playerLeave(DiscordIntegration.java:326) ~[DiscordIntegration.class:?]
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_650_DiscordIntegration_playerLeave_PlayerLoggedOutEvent.invoke(.dynamic) ~[?:?]
        at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?]
        at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?]
        at net.minecraftforge.fml.common.FMLCommonHandler.firePlayerLoggedOut(FMLCommonHandler.java:580) [FMLCommonHandler.class:?]
        at net.minecraft.server.management.PlayerList.playerLoggedOut(PlayerList.java:388) [pl.class:?]
        at net.minecraft.network.NetHandlerPlayServer.onDisconnect(NetHandlerPlayServer.java:853) [pa.class:?]
        at net.minecraft.network.NetworkManager.handleDisconnection(NetworkManager.java:453) [gw.class:?]
        at net.minecraft.network.NetHandlerPlayServer$2.run(NetHandlerPlayServer.java:291) [pa$2.class:?]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_222]
        at net.minecraft.server.MinecraftServer.callFromMainThread(MinecraftServer.java:1383) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer.addScheduledTask(MinecraftServer.java:1395) [MinecraftServer.class:?]
        at net.minecraft.network.NetHandlerPlayServer.disconnect(NetHandlerPlayServer.java:287) [pa.class:?]
        at net.minecraft.server.management.PlayerList.removeAllPlayers(PlayerList.java:1084) [pl.class:?]
        at net.minecraft.server.MinecraftServer.stopServer(MinecraftServer.java:431) [MinecraftServer.class:?]
        at net.minecraft.server.MinecraftServer$4.run(MinecraftServer.java:1579) [MinecraftServer$4.class:?]

This happens when someone (or multiple people) are still on the server while it is shutting down.

A couple of suggestions

Hi! I recently swapped from Chikachi's discord integration mod to yours. I'm super excited about the custom commands feature, but there are some things that the other mod did that I kind of miss.

Mostly, the fact that /say and /me were broadcast to the server. Interestingly, it does print the say command when I do it in the server console. But when the worldprimer mod executes it, it doesn't. I do not have anything blacklisted in the config. In Chikachi, I think this was covered under the "ignoreFakePlayerChat" boolean.

The /me command doesn't seem to work under any circumstances.

Also, the ability to ping Discord users from ingame. That one is pretty minor, we didn't use it a whole lot. But it'd be nice to have.

And the last thing, which is incredibly minor, is the fact that you could use /online or /list to get a list of online people. I can, of course, get used to the new one eventually, but I figured I'd bring it up just in case.

Anyway, thanks for the excellent mod! And also thank you for your time :)

[Suggestion] Discord-based whitelist

I was on DigitalJesuit, a famous public server and noticed a interesting feature: the ability to "link/verify" Discord accounts (members of the server's guild) with Minecraft player names, and it allows a discord-based whitelist to be setup. If i'm not mistaken, only players with verified accounts on the Discord guild can join the server.

I think the plugin they are using is this one or this one for Spigot.

So, can this system be added to dcintegration as well? Thanks in advance!

Log Spam / Rate Limited

What happened?
Channel's topic doesn't update after 2 hours server uptime.

What should happen?
It's should be work fine I guess.

Steps to reproduce

  • Set botModifyDescription to true.
  • Start the server.
  • Wait for 2 hours ± 5 minutes.
  • Get the error.

Versions
Minecraft version 1.15.2
Forge version 31.1.0
Mod version 1.1.13

Crash report if available

Additional info

  • Nothing to say anymore.

Incorrect placeholder for "ingame_discord_msg" option (also a small request)

Hi! Small issue I found. The config says this:

# This is what will be displayed ingame when someone types into the bot´s channel
        # PLACEHOLDERS:
        # %name% - The username
        # %id% - The user ID
        # %msg% - The Message
        S:INGAME_DISCORD_MSG=§6[§5DISCORD§6]§r <%user%> %msg%

Currently, it prints the discord username instead of the nickname, which I was hoping to change. I thought perhaps changing it to <%name%> would do the trick, but it turns out that's not actually a proper variable, and it just prints to chat as <%name%>. So you may want to change the placeholders.

Also, if it's possible, I'd really like to have the name print as their Discord server nickname, as most of us know each other by name and not by xXpro_reapsXx :P

Also, since I see you have a lot of FTB Utilities support, would it be possible to have the name printed to Discord be someone's FTBU /nick set name, instead of their Minecraft username? It's not as important, but it'd be a nice feature.

Thanks for your time, sorry for making two issues in such quick succession!

[BUG] Channel description updates break Discord on Android

I didn't fill out the form because it's pretty clear what's going on here: on the latest stable version for Minecraft 1.12.2 (so, version 1.1.5), the bot doesn't check that the channel description actually needs to be edited - it just tries to edit it immediately.

This causes issues with Discord on Android at the moment - if you're trying to edit a message, the cursor will jump back to the end of the message every time the channel description is updated, whether the actual text has changed or not.

The solution is to check the channel description before attempting to edit it - and don't try to edit it if it wouldn't have changed.


This is technically a Discord bug, but it's impossible to submit bug reports at the moment - they've decided to lock all of the bug reporting channels until the 5th of January or so. Still, this should be an easy fix for you!

Add command to refresh config

Add a command to refresh the config and possibly the discord connection.
This is useful if you change any part of the discordintegration config like adding a new command or a bot setting.

Make it so the Discord relays are colour coded

Hi!

This is more so a suggestion rather than an issue.

I would recommend making it so when a discord message is sent and is shown in game the person that sent the messages name is colour coded to their role's colour.

[Suggestion] Split up the %uptime% placeholder.

Hello,

our discord server has a log system that logs every change in channels.
What happends here that the discord integration updates every 1-2 seconds, that causes our log system to be rate limited by Discord.

I think it would be nicer to have %hours% %minutes% and %seconds%

Kind regards :)

[Improvement] Ability to send different content to different channels

I have a few suggestions related to the title:

  1. I find the server activity messages and login messages would be better in another channel on my discord because they turn into spam.
  2. The option to disable login messages as well as afk messages in the config (thanks for adding the latter).
  3. I'd like to be able to kick players using the Mee6 Bot that mutes/kicks users on discord - is that possible? I can see that you have admin commands in the cfg, but I am confused how to implement and there is no documentation how to do so. =(

Again thanks for this great mod and your hard work!

Add the ability to see peoples FTBUtiltiies Ranks/Prefixes/Nicks

As the title says (:

Is there any possibility of you adding a way of it allowing people to see peoples Ranks, Prefixes (That are added via ranks) and Nicknames set via /nick. Via Discord and Vice Versa if multiple bots are in one chat to enable Network Wide chat intergration?

Many thanks, you have made an amazing mod, thank you!

[BUG] msgChatMessage is the same for Ingame to Discord, and Discord to Ingame.

What happened?

  • User talk ingame & discord talk share the same config line.

What should happen?

  • They should be separate.

Version

  • 1.12
  • [X ] 1.14

Mod version: 1.1.8-1.14

Information:
Right now when i have %user% for "msgChatMessage =" it shows up normally from Discord Chat to MC, like this: "[GYAZO]"| But if I have %user% it won't work from MC to Discord. Then it'll show up like this: [GYAZO] And if i swap them around its the same thing. Only one way works. Sorry if i explained this poorly.

[BUG 1.15.2] Console spam

What happened?
When the server has been running for a while the mod starts spamming the console with this message:
[31mrt2020 21:39:08.418] [OkHttp https://discordapp.com/.../INFO] [STDERR/]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [OkHttp https://discordapp.com/...] WARN RateLimiter - Encountered 429 on route /channels/688576384859504655

I'm not sure it that is this is a problem with the mod or with discord but I thought I would post it here anyway.
What should happen?
Not spamming the console

Steps to reproduce

  • Run the server
  • Error appears

Version

  • 1.15.2
  • DiscordIntegration-1.1.14 (MC 1.15)
  • Forge 31.1.30

Config file

2 way server chat not working Not sure if intended or not

I have 2 servers setup one is 1.12.2 and one is 1.14.4 everything is setup perfectly and messages and can sent from both servers to discord and discord messages to the servers. the issue seems to be when a player from the 1.12.2 server says something the person on the 1.14.4 server does not see the message. only on discord they see it. I'm guessing its cause the messages show up as bot messages on discord and the mod ignores these messeges since it would create an infinite loop of some sort I would presume. I was wondering if there is some sort of work around to get these 2 servers to be able to talk to each other.
Example of what im talking about:
player on 1.12.2 server: HI
discord bot: HI
player on 1.14.4 server receives no response from the player on the 1.12.2 server just on the discord app itself.

person replying on discord: Hello
both servers: Hello

[BUG] Constant spam in logs:

What happened?
Constant spam in logs:
OkHttp https://discordapp.com/.../INFO] [STDERR]: [net.dv8tion.jda.internal.utils.SimpleLogger:write:277]: [OkHttp https://discordapp.com/...] WARN RateLimiter - Encountered 429 on route /channels/########

What should happen?
Not having the logs spammed to death

Steps to reproduce

  • Server was up for... ~27 hours.

Version

  • [X ] 1.12
  • 1.14

Mod version
dcintegration-1.1.5-1.12

Additional info

The logfile was bigger than the world save after only about a day. Not lookin' good.

[Suggestion]

What you want to be added?
/save-all, to allow people to save the world from discord
/time set, to allow people who have admin to set day and night
/ban, to allow admin role to ban people in server

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.