Code Monkey home page Code Monkey logo

discordchat's People

Contributors

petterim1 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

discordchat's Issues

Luckperms Issue

Hello, i use this Plugin with Luckperms.
Player Join and Leave Message to Discord works great.
But Chatformat Minecraft -> Discord doenst Work with it.
I have no Errors in my Console.
With Multipass and Multichat, it works great.

MC chat to Discord chat not functioning

enable Minecraft messages to Discord

enableMinecraftToDiscord: true

But still only stop and start, someone joining and leaving gets displayed.
The setup is done 100% properly and the console does not give out any errors.

Harmless error on loading

05:39:22 [INFO ] Enabling DiscordChat v1.1.3
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
SLF4J: Failed to load class "org.slf4j.impl.StaticMDCBinder".
SLF4J: Defaulting to no-operation MDCAdapter implementation.
SLF4J: See http://www.slf4j.org/codes.html#no_static_mdc_binder for further details.
[main] INFO JDA - Login Successful!
[JDA MainWS-ReadThread] INFO WebSocketClient - Connected to WebSocket
[JDA MainWS-ReadThread] INFO JDA - Finished Loading! ```

error

java.lang.IllegalArgumentException: ID may not be null
at net.dv8tion.jda.internal.utils.Checks.notNull(Checks.java:56) ~[?:?]
at net.dv8tion.jda.internal.utils.Checks.notEmpty(Checks.java:61) ~[?:?]
at net.dv8tion.jda.api.utils.MiscUtil.parseSnowflake(MiscUtil.java:105) ~[?:?]
at net.dv8tion.jda.api.utils.cache.SnowflakeCacheView.getElementById(SnowflakeCacheView.java:59) ~[?:?]
at net.dv8tion.jda.api.JDA.getTextChannelById(JDA.java:1247) ~[?:?]
at discordchat.API.sendToConsole(API.java:23) ~[?:?]
at discordchat.Main.onDisable(Main.java:78) ~[?:?]
at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:96) ~[powernukkit.jar:?]
at cn.nukkit.plugin.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:138) ~[powernukkit.jar:?]
at cn.nukkit.plugin.PluginManager.disablePlugin(PluginManager.java:546) [powernukkit.jar:?]
at cn.nukkit.plugin.PluginManager.disablePlugins(PluginManager.java:534) [powernukkit.jar:?]
at cn.nukkit.Server.forceShutdown(Server.java:867) [powernukkit.jar:?]
at cn.nukkit.Server.start(Server.java:927) [powernukkit.jar:?]
at cn.nukkit.Server.(Server.java:584) [powernukkit.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:120) [powernukkit.jar:?]

Doesnt work on PowerNukkitX

20:29:56 [FATAL] An error occurred while enabling the plugin DiscordChat, 2.2.4, me.petterim1.discordchat.Loader
java.lang.NoClassDefFoundError: Could not initialize class org.slf4j.impl.StaticLoggerBinder
at java.lang.Class.forName0(Native Method) ~[?:?]
at java.lang.Class.forName(Class.java:391) ~[?:?]
at java.lang.Class.forName(Class.java:382) ~[?:?]
at net.dv8tion.jda.internal.utils.JDALogger.(JDALogger.java:49) ~[?:?]
at net.dv8tion.jda.internal.utils.IOUtil.(IOUtil.java:35) ~[?:?]
at net.dv8tion.jda.api.JDABuilder.build(JDABuilder.java:1833) ~[?:?]
at me.petterim1.discordchat.Loader.onEnable(Loader.java:36) ~[?:?]
at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:107) ~[server.jar:?]
at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:125) ~[server.jar:?]
at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:462) [server.jar:?]
at cn.nukkit.Server.enablePlugin(Server.java:1878) [server.jar:?]
at cn.nukkit.Server.enablePlugins(Server.java:1861) [server.jar:?]
at cn.nukkit.Server.(Server.java:957) [server.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:160) [server.jar:?]
Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.NoSuchMethodError: org.apache.logging.slf4j.Log4jLoggerFactory: method 'void ()' not found [in thread "main"]
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:53) ~[log4j-slf4j-impl-2.17.1.jar:2.17.1]
at org.slf4j.impl.StaticLoggerBinder.(StaticLoggerBinder.java:41) ~[log4j-slf4j-impl-2.17.1.jar:2.17.1]
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150) ~[slf4j-api-1.7.32.jar:1.7.32]
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124) ~[slf4j-api-1.7.32.jar:1.7.32]
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:417) ~[slf4j-api-1.7.32.jar:1.7.32]
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:362) ~[slf4j-api-1.7.32.jar:1.7.32]
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:388) ~[slf4j-api-1.7.32.jar:1.7.32]
at oshi.hardware.common.AbstractNetworkIF.(AbstractNetworkIF.java:57) ~[oshi-core-5.8.7.jar:5.8.7]
at oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer.getNetworkIFs(LinuxHardwareAbstractionLayer.java:92) ~[oshi-core-5.8.7.jar:5.8.7]
at oshi.hardware.common.AbstractHardwareAbstractionLayer.getNetworkIFs(AbstractHardwareAbstractionLayer.java:104) ~[oshi-core-5.8.7.jar:5.8.7]
at cn.nukkit.network.Network.(Network.java:88) ~[server.jar:?]
at cn.nukkit.Server.(Server.java:787) ~[server.jar:?]
... 1 more
20:29:56 [INFO ] Disabling DiscordChat v2.2.4

Error in the console

[DiscordChat] There was an error while enabling DiscordChat
net.dv8tion.jda.api.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MANAGE_CHANNEL
at net.dv8tion.jda.internal.managers.ChannelManagerImpl.checkPermissions(ChannelManagerImpl.java:495) ~[DiscordChat-2.2.4.jar:?]
at net.dv8tion.jda.internal.managers.ChannelManagerImpl.(ChannelManagerImpl.java:76) ~[DiscordChat-2.2.4.jar:?]
at net.dv8tion.jda.internal.entities.AbstractChannelImpl.getManager(AbstractChannelImpl.java:197) ~[DiscordChat-2.2.4.jar:?]
at me.petterim1.discordchat.API.setTopic(API.java:94) ~[DiscordChat-2.2.4.jar:?]
at me.petterim1.discordchat.API.setTopic(API.java:82) ~[DiscordChat-2.2.4.jar:?]
at me.petterim1.discordchat.Loader.onEnable(Loader.java:58) [DiscordChat-2.2.4.jar:?]
at me.petterim1.discordchat.DiscordCommand.handleCommand(DiscordCommand.java:38) [DiscordChat-2.2.4.jar:?]
at me.petterim1.discordchat.Loader.onCommand(Loader.java:145) [DiscordChat-2.2.4.jar:?]
at cn.nukkit.command.PluginCommand.execute(PluginCommand.java:33) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:257) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Server.dispatchCommand(Server.java:768) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Player.handleDataPacket(Player.java:2926) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.network.session.RakNetPlayerSession.serverTick(RakNetPlayerSession.java:192) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.network.RakNetInterface.process(RakNetInterface.java:89) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.network.Network.processInterfaces(Network.java:165) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Server.tick(Server.java:1162) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Server.tickProcessor(Server.java:940) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Server.start(Server.java:908) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Server.(Server.java:589) [nukkit-1.0-SNAPSHOT.jar:?]
at cn.nukkit.Nukkit.main(Nukkit.java:120) [nukkit-1.0-SNAPSHOT.jar:?]

In game spam breaks the discord chat plugin.

when players use an in game spam script, it overloads the discord chat and puts it into an infinite feedback loop.

we tried to resolve this issue by using the Anti-Spam plugin, whats interesting is, the anti spam plugin will block the spam from the console and in game chat, however it fully continues to the discord chat , then the discord chat gets stuck in an infinite loop where is repeats the spam non stop.

we traced the problem to be server side, even tho the player has left, the spam has long ended, the server continues to send the looped spam text, you can see the continued spam loop output from the error logs linked below, the perms errors are normal as in this instance the discord bot was muted to stop the spam flood.

https://pastebin.com/8hDM4Pb4

Thanks!!!!!

Connect timed out

16:19:33 [INFO ] Enabling DiscordChat v2.0.1
16:19:33 [WARN ] Running DiscordChat in debug mode
16:19:33 [INFO ] Loading role color map from config
16:19:33 [INFO ] Registering events for PlayerListener
16:19:33 [INFO ] Logging in to Discord...
16:19:54 [ERROR] [DiscordChat] Couldn't enable DiscordChat. Enable debug mode for more info.

net.dv8tion.jda.api.exceptions.ErrorResponseException: -1: java.net.SocketTimeoutException
at net.dv8tion.jda.api.exceptions.ErrorResponseException.create(ErrorResponseException.java:158)
at net.dv8tion.jda.api.requests.Request.onFailure(Request.java:117)
at net.dv8tion.jda.internal.requests.RestActionImpl.handleResponse(RestActionImpl.java:260)
at net.dv8tion.jda.api.requests.Request.handleResponse(Request.java:259)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:246)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:244)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:139)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:122)
at net.dv8tion.jda.internal.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:461)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.SocketTimeoutException: connect timed out
at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.base/java.net.Socket.connect(Socket.java:608)
at okhttp3.internal.platform.Platform.connectSocket(Platform.java:128)
at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:247)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:167)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264)
at okhttp3.RealCall.execute(RealCall.java:93)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:199)
... 10 more
Caused by: net.dv8tion.jda.api.exceptions.ContextException
at net.dv8tion.jda.api.exceptions.ContextException.here(ContextException.java:54)
at net.dv8tion.jda.api.requests.Request.(Request.java:71)
at net.dv8tion.jda.api.requests.RestFuture.(RestFuture.java:36)
at net.dv8tion.jda.internal.requests.RestActionImpl.submit(RestActionImpl.java:201)
at net.dv8tion.jda.internal.requests.RestActionImpl.complete(RestActionImpl.java:211)
at net.dv8tion.jda.api.requests.RestAction.complete(RestAction.java:471)
at net.dv8tion.jda.api.utils.SessionControllerAdapter.getGateway(SessionControllerAdapter.java:86)
at net.dv8tion.jda.internal.JDAImpl.getGateway(JDAImpl.java:301)
at net.dv8tion.jda.internal.JDAImpl.login(JDAImpl.java:259)
at net.dv8tion.jda.internal.JDAImpl.login(JDAImpl.java:251)
at net.dv8tion.jda.api.JDABuilder.build(JDABuilder.java:1849)
at me.petterim1.discordchat.Loader.onEnable(Loader.java:40)
at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:89)
at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:119)
at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:404)
at cn.nukkit.Server.enablePlugin(Server.java:857)
at cn.nukkit.Server.enablePlugins(Server.java:847)
at cn.nukkit.Server.(Server.java:663)
at cn.nukkit.Nukkit.main(Nukkit.java:73)

Error problem

I have an error problem, how can I solve it, thanks

18:54:31 [INFO ] 開啟中... DiscordChat v2.0

[JDA RateLimit-Worker 1] ERROR net.dv8tion.jda.internal.requests.Requester - There was an exception while executing a REST request
javax.net.ssl.SSLException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:349)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:292)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:287)
at java.base/sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1591)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:453)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:411)
at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:320)
at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:284)
at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:169)
at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:264)
at okhttp3.RealCall.execute(RealCall.java:93)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:199)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:139)
at net.dv8tion.jda.internal.requests.Requester.execute(Requester.java:122)
at net.dv8tion.jda.internal.requests.ratelimit.BotRateLimiter$Bucket.run(BotRateLimiter.java:461)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.base/sun.security.validator.PKIXValidator.(PKIXValidator.java:102)
at java.base/sun.security.validator.Validator.getInstance(Validator.java:181)
at java.base/sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:300)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:176)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:189)
at java.base/sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:129)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1340)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1231)
at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1174)
at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)
at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:421)
at java.base/sun.security.ssl.TransportContext.dispatch(TransportContext.java:182)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:171)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1418)
at java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(SSLSocketImpl.java:1324)
at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:440)
... 30 more
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
at java.base/java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
at java.base/java.security.cert.PKIXParameters.(PKIXParameters.java:120)
at java.base/java.security.cert.PKIXBuilderParameters.(PKIXBuilderParameters.java:104)
at java.base/sun.security.validator.PKIXValidator.(PKIXValidator.java:99)
... 46 more
18:54:32 [ERROR] [DiscordChat] Couldn't enable Discord chat sync

message is broken from ingame to discord

when i send a message to discord it send in game but when i type something ingame bot doesn't message from ingame to the discord and it set to true i think here some picture
`# enable Discord messages to Minecraft
enableDiscordToMinecraft: true

enable Minecraft messages to Discord

enableMinecraftToDiscord: true

show Discord messages also in console

enableMessagesToConsole: false
screenshot

Multiple instances?

How hard would it be to:

A: Run 2 or 3 instances of the chat plugin so i can tie into multiple discord servers at once.
or
B: Enhance the plugin to allow for a multi discord server config.

Console output in Discord channel

Is it possible to add the option to have the console output in a Discord channel like the DiscordSRV plugin does for Spigot? It shows the output from Minecraft console in your chosen channel. You can also send commands like'stop' from Discord chat to the console. Thanks

Add plugin

Please create a login plugin in nukkit

Chat doesn't communicate well

Chat from Discord to game works fine, but from game to Discord not good. When a player joins or disconnects from the game, it will be posted on discord, but when someone writes messages in the game, they will not be posted to the Discord channel. Please how to fix it?

Cancel.... Fixed!

Oooof! discord chat perms got changed causing this,,, just give the bot permissions again, problem solved! : )

2018-12-21 04:08:47 [ALERT] java.lang.RuntimeException: net.dv8tion.jda.core.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MESSAGE_READ
	at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:439)
	at cn.nukkit.Server.enablePlugin(Server.java:675)
	at cn.nukkit.Server.enablePlugins(Server.java:664)
	at cn.nukkit.Server.<init>(Server.java:506)
	at cn.nukkit.Nukkit.main(Nukkit.java:109)
Caused by: net.dv8tion.jda.core.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MESSAGE_READ
	at net.dv8tion.jda.core.entities.impl.AbstractChannelImpl.checkPermission(AbstractChannelImpl.java:322)
	at net.dv8tion.jda.core.entities.impl.AbstractChannelImpl.checkPermission(AbstractChannelImpl.java:314)
	at net.dv8tion.jda.core.entities.impl.TextChannelImpl.sendMessage(TextChannelImpl.java:266)
	at discordchat.Main.onEnable(Main.java:41)
	at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:89)
	at cn.nukkit.plugin.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:117)
	at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:435)
	... 4 more

2018-12-21 04:08:47 [INFO] Disabling DiscordChat v1.1.3
2018-12-21 04:08:48 [ALERT] net.dv8tion.jda.core.exceptions.InsufficientPermissionException: Cannot perform action due to a lack of Permission. Missing permission: MESSAGE_READ
	at net.dv8tion.jda.core.entities.impl.AbstractChannelImpl.checkPermission(AbstractChannelImpl.java:322)
	at net.dv8tion.jda.core.entities.impl.AbstractChannelImpl.checkPermission(AbstractChannelImpl.java:314)
	at net.dv8tion.jda.core.entities.impl.TextChannelImpl.sendMessage(TextChannelImpl.java:266)
	at discordchat.Main.onDisable(Main.java:47)
	at cn.nukkit.plugin.PluginBase.setEnabled(PluginBase.java:91)
	at cn.nukkit.plugin.JavaPluginLoader.disablePlugin(JavaPluginLoader.java:132)
	at cn.nukkit.plugin.PluginManager.disablePlugin(PluginManager.java:509)
	at cn.nukkit.plugin.PluginManager.enablePlugin(PluginManager.java:441)
	at cn.nukkit.Server.enablePlugin(Server.java:675)
	at cn.nukkit.Server.enablePlugins(Server.java:664)
	at cn.nukkit.Server.<init>(Server.java:506)
	at cn.nukkit.Nukkit.main(Nukkit.java:109)

add option to pass bot messages to chat

were using bots to sync chats between servers, however the discord chat plugin blocks bot chats from passing through to the game chat.

possibly have a feature that will ignore bots unless the tags #0000 (a webhook)

disable plugin instead of hang.

discord chat error back on 2020-02-05 @ 17:01 on both lobby1 and 2.
it caused discord chat to hang the server for several hours,
if possible, create an enable timout function to disable the plugin
so the server can continue boot (if applicable).

nothing showed in the log files, heres a screenshot.

IMG_4624

Chat Error

[Discord : nullRole] LinuxLogo >> Msg

is what is said. Remove null

No linebreaks in chats

In nukkit, linebreak is banned from the chat, but this plugin doesn't. This plugin need to ignore linebreak.

Add an Anti-Flood option

When users on the server do chat text floods it also makes the discord chat channel over spammed.

we had a user spam the server chat for 3 min and it turned out spamming the discord chat for 15 min.

is there a way to implement an anti flood option?

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.