Everything work fine on Spigot, but when Im trying to start bot on BungeeCord, I got this error:
[WARNING] Error loading plugin WP-BungeeCord
java.lang.NoClassDefFoundError: com/tjplaysnow/discord/object/ProgramThread
at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3429)
at java.base/java.lang.Class.getConstructor0(Class.java:3634)
at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2810)
at net.md_5.bungee.api.plugin.PluginManager.enablePlugin(PluginManager.java:341)
at net.md_5.bungee.api.plugin.PluginManager.loadPlugins(PluginManager.java:250)
at net.md_5.bungee.BungeeCord.start(BungeeCord.java:281)
at net.md_5.bungee.BungeeCordLauncher.main(BungeeCordLauncher.java:67)
at net.md_5.bungee.Bootstrap.main(Bootstrap.java:15)
Caused by: java.lang.ClassNotFoundException: com.tjplaysnow.discord.object.ProgramThread
at net.md_5.bungee.api.plugin.PluginClassloader.loadClass0(PluginClassloader.java:103)
at net.md_5.bungee.api.plugin.PluginClassloader.loadClass(PluginClassloader.java:59)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
... 9 more
TRASH api. The documentation says one thing, the reality is another. As BlessedFox wrote - "100% not NEEDED just start your Bot in onEnable an u can full using jda!
Useless API change nothing easier...."
uh the documentation is correct? Did you join the discord to get help? lol to the "developers" that rate this 1 star without giving any thought to how it is helpful. Just takes using your brain a little to see it is useful.
Version: 5.1
100% not NEEDED just start your Bot in onEnable an u can full using jda!
Useless API change nothing easier....
This helps a lot. In the instance where you shade the JDA dependency into your plugin you have to update the plugin with every new version of JDA. While if you use the API you only have to update the API and not the bot plugins you have, for some this works better as they would like to run multiple bots for different purposes. As well it makes creating the bot with commands take less than 5 minutes. I would give it a try and see how easy it is to make bots. Thanks for looking at and reviewing the plugin though.
Version: 5.1
I like this API a lot, i used it a couple of times. Although i would love to see a maven repository in the future. Keep it up !
Thanks man! I have no clue how maven works though so I doubt I will be able to do that sadly.
Version: 4.0
Am I getting something wrong here or am I doing the right thing? I ask for help c: This API is very, very helpful for Discord Bots and Minecraft servers :) Here is the error log:
https://pastebin.com/pYQRjbES
Thanks for the review!
Try with the new updates. Sorry about the delays.
If you have any other questions join the discord and let me know in the spigot channel.
Version: 4.0
The API is very nice and works fine and fast. I would love to see some docs where i can find maybe some examples for events and commands. And some of the new discord features would be cool too like the new buttons or the / commands :)
100% work, it's work in beerspigot and paperspigot taco spigot etc..
just change
bot.setBotThread(new ThreadSpigot(plugin));
to
bot.setBotThread(new ThreadHandle());
and
bot.setConsoleCommandManager(new CommandSpigotManager());
to
bot.setConsoleCommandManager(new CommandConsoleManager());
good luck!
Thanks :D and as always if you need help head over to my discord server and ask questions about it in the #spigot-talk channel!
https://discord.com/invite/QJq57Uf
Version: 3.0
very good api ==================================================================
Hosting a Discord bot on a server Minecraft by pretending that they must be bound is the silliest thing I've ever heard about and any developer would tell you the same thing. Moreover, the API is totally non-flexible bad designed.
The bot api is for making bots like this possible
https://www.spigotmc.org/resources/discord-minecraft-hook.44095/. Also the API is pretty much 100% flexible, you can literally rewrite everything about it. Sorry you don't believe in the idea of hosting a discord bot on a Minecraft server. It makes for an easy setup discord bot for Minecraft Discord communication, and if you'd rather you can just use it as an api for non minecraft purposes, just make a main method and make sure you extract the jars into your build when you build.
Version: 2.8
I love love lovee this plugin, but there is no errors and it is not running on PaperSpigot 1.8.8 :(
Hmm, that is strange. I'm glad you love the plugin! Try and send errors to the discord server or on the discussion tab first.
Version: 2.8
Hello, I'm sorry for these stars, but I could not test your API, it does not work on my network in 1.12.2, maybe there is a compatible version in 1.12.2?
What about it does not work? Have you setup another plugin that uses the api?
Version: 2.4
No plugin.yml to even run the "plugin"?
Code looks weird.
And since that is for devs, it's basicly useless since devs could simply implement a own JDA-instance into their plugin.
Also you should shade the JDA-lib into your code, to prevent any issues.
But this is just not recommended for anyone to use.
Sorry you feel this way, but if you join my discord server, you will see many implementations of this being used, including my updated Minecraft Hook Bot that was just released for testing. I did make a noobish mistake while updating my packaging system from the intellij default to maven, but I am now all finished with that and nothing around these lines should change.
Version: 2.3
Good but keep on getting this: [16:27:08 WARN]: [JDA MainWS-ReadThread] ERROR WebSocketClient - There was an error in the WebSocket connection
[16:27:08 WARN]: java.lang.NoClassDefFoundError: net/dv8tion/jda/core/handle/MessageUpdateHandler$1
[16:27:08 WARN]: at net.dv8tion.jda.core.handle.MessageUpdateHandler.handleInternally(MessageUpdateHandler.java:52)
[16:27:08 WARN]: at net.dv8tion.jda.core.handle.SocketHandler.handle(SocketHandler.java:37)
[16:27:08 WARN]: at net.dv8tion.jda.core.requests.WebSocketClient.onDispatch(WebSocketClient.java:1051)
[16:27:08 WARN]: at net.dv8tion.jda.core.requests.WebSocketClient.onEvent(WebSocketClient.java:911)
[16:27:08 WARN]: at net.dv8tion.jda.core.requests.WebSocketClient.handleEvent(WebSocketClient.java:890)
[16:27:08 WARN]: at net.dv8tion.jda.core.requests.WebSocketClient.onBinaryMessage(WebSocketClient.java:1089)
[16:27:08 WARN]: at com.neovisionaries.ws.client.ListenerManager.callOnBinaryMessage(ListenerManager.java:368)
[16:27:08 WARN]: at com.neovisionaries.ws.client.ReadingThread.callOnBinaryMessage(ReadingThread.java:270)
[16:27:08 WARN]: at com.neovisionaries.ws.client.ReadingThread.handleBinaryFrame(ReadingThread.java:990)
[16:27:08 WARN]: at com.neovisionaries.ws.client.ReadingThread.handleFrame(ReadingThread.java:749)
[16:27:08 WARN]: at com.neovisionaries.ws.client.ReadingThread.main(ReadingThread.java:108)
[16:27:08 WARN]: at com.neovisionaries.ws.client.ReadingThread.runMain(ReadingThread.java:64)
[16:27:08 WARN]: at com.neovisionaries.ws.client.WebSocketThread.run(WebSocketThread.java:45)
Uhm, I've never seen that, if you join the discord server you can discuss it with some of the other devs that also use the api! Sorry about it, and really hope that we can get it fixed :D
Version: 1.4
Really good plugin!. Its perfect!
10/10 Will give this another rating if you post update :3
Sorry about the problems, have been having a lot of internet issues and other problems. You can now download the plugin with the latest version!
Version: 1.2
In exaples: you have one mistake, bot = new Bot(TOKEN, PREFIX).
------------------------------------------------------------------------------------------------
I'm not quite sure I understand what you mean, that is how you make a bot. If you need further help get in contact with me through Spigot messages, or join my discord server.
Version: 1.1
Great API, i will use it in the furture, its helping a lot to develop Discord Bots.
So glad you are enjoying it, hope it's super easy to get your bot setup!
Version: 1.1
I'm a developer, wich uses JDA, and I can say that pure JDA, and pure commands are easier to make, your API is too messy for me, I recommend just using pure JDA, 3 stars for effort
I'm not quite sure if you've actually tried using it, but you can get everything set up in about 1 line of code, then it is even easier to do things such as adding bad words, muting users(, adding console commands, adding delayed actions, and a simple to setup and use Config system). Everything in parentheses is saying you're making a bot without spigot being involved, otherwise this allows your bot to be used inside a Minecraft server, and also if you want to use JDA functions you can always call bot.getBot() which returns the JDA instance of the bot. Hope you can see it's not entirely terrible.
Version: 1.0
Great API! Works perfectly and smoothly! I've always wanted a Discord Bot API Like this one :)
Thanks, glad you like it! I try to make things as easy as possible
Version: 1.0
Great API, great developer, great support, great everything really. When I first saw this I never expected the API to be so useful and simple as it is!