I am developing a DiscordBot for a friend of mine.
I started using a jserver app.
I also used the JDA Library in my Main Module. The Code here is expected to run all the time. It is listening to Events.
As i did encounter problems while developing; i got some Exceptions and i´m not sure if the Code in Main is always running to be able to react to Events.
I decided to use a UI app for now. Here all is working fine.
So my question:
Is it allowed to use a jServer app like this? Or do i need to only do the work in the ServerHandlers?
My goal was/is to use the JDA always running (and do the work when an Event raises and additionally i want to use the ServerHandlers to Control the Code running in Main.
I can remember i´ve something read regarding this. But i am not sure. Something that i do need to add special java parameters or something like that.
Any helpful info is highly appreciated ;-)
EDIT: Dammit. Wrong Forum.
I started using a jserver app.
I also used the JDA Library in my Main Module. The Code here is expected to run all the time. It is listening to Events.
As i did encounter problems while developing; i got some Exceptions and i´m not sure if the Code in Main is always running to be able to react to Events.
I decided to use a UI app for now. Here all is working fine.
So my question:
Is it allowed to use a jServer app like this? Or do i need to only do the work in the ServerHandlers?
My goal was/is to use the JDA always running (and do the work when an Event raises and additionally i want to use the ServerHandlers to Control the Code running in Main.
I can remember i´ve something read regarding this. But i am not sure. Something that i do need to add special java parameters or something like that.
Any helpful info is highly appreciated ;-)
EDIT: Dammit. Wrong Forum.