JDA-Applications / JDA-Utilities

A series of tools and utilities for JDA to assist in bot creation
Apache License 2.0
215 stars 108 forks source link

Bot doesn't react to clicks on reactions #64

Closed Andre601 closed 6 years ago

Andre601 commented 6 years ago

I currently use the Slideshow and Slideshow builder for my bot. When I run a command, does the bot generate the slideshow and add reactions. But the bot doesn't notice the adding of reactions.

Some info: I've set the EventWaiter in the Main.java as a new EventWaiter and get it later in the CmdNeko.java I then load 30 images through a function in the HttpUtil.java. Then finally creating the slideshow in the CmdNeko.java.

Like mentioned before does the bot create the embed and adds the images (Shows the text "Image 1/30") but it just doesn't react, when you click on the reactions. The bot has permission to manage messages and adding embeds and it also disables the slideshow after the timeout (changes the image).

Another Issue I also had was, that adding jda-utilities to the pom.xml as artifactId causes errors (bintray doesn't have this artifactId), while adding the different libraries (jda-utilities-menu and jda-utilities-common) works completely fine.

It would be so happy, if someone could help me with that issue.

Sanduhr32 commented 6 years ago

You forgot to add the event waiter in the JDABuilders listeners... How should it get the events without JDA providing them? This is no JDA nor Utilities issue. Join the JDA Guild for getting further support. Githubs issue tracker is for bug reports and feature requests.

Andre601 commented 6 years ago

So it would be builder.addEventListener(waiter); in the Main.java?

Sanduhr32 commented 6 years ago

Yes ofc. But let's move to the official JDA guild if you need more support ;) I am sure someone will be there for helping you.

Andre601 commented 6 years ago

I'm not in that guild for different reasons. Anyway, thank you for the quick help.

Andre601 commented 6 years ago

Oh. before I forget: What about the other issue? That one with the pom.xml

Shengaero commented 6 years ago

@Andre601 Your pom must be invalid in some way. @jagrosh uses JDA-Utilities in many of his projects, including the music bot and Vortex. I'd suggest looking at their pom.xml files.