Darkside138/DiscordSoundboard

Bot does not enter Discord

Closed this issue · 2 comments

Hello,
New issue... The new version seems to work as it started the maincontroller but the bot never arrives in Discord instead it is allowed...

The URL http://localhost:8080/ is accessible but nothing happened when I click on a sound.

C:\Users\rbsle\Downloads\Bot\Bot avec photo - DiscordSoundboard-2.2.2-beta>java -jar DiscordSoundboard.jar net.dirtydeeds.discordsoundboard.MainController
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/rbsle/Downloads/Bot/Bot%20avec%20photo%20-%20DiscordSoundboard-2.2.2-beta/DiscordSoundboard.jar!/BOOT-INF/classes!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/rbsle/Downloads/Bot/Bot%20avec%20photo%20-%20DiscordSoundboard-2.2.2-beta/DiscordSoundboard.jar!/BOOT-INF/lib/logback-classic-1.1.11.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

. ____ _ __ _ _
/\ / ' __ _ () __ __ _ \ \ \
( ( )_
_ | '_ | '| | ' / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
' |
| .__|| ||| |_, | / / / /
=========|
|==============|/=////
:: Spring Boot :: (v2.2.2-beta)

2018-04-07 11:26:33.177 INFO 17476 --- [ main] n.d.discordsoundboard.MainController : Starting MainController v2.2.2-beta on DESKTOP-2B5OQ5V with PID 17476 (C:\Users\rbsle\Downloads\Bot\Bot avec photo - DiscordSoundboard-2.2.2-beta\DiscordSoundboard.jar started by rbsle in C:\Users\rbsle\Downloads\Bot\Bot avec photo - DiscordSoundboard-2.2.2-beta)
2018-04-07 11:26:33.180 INFO 17476 --- [ main] n.d.discordsoundboard.MainController : No active profile set, falling back to default profiles: default
2018-04-07 11:26:33.235 INFO 17476 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3b7951: startup date [Sat Apr 07 11:26:33 CEST 2018]; root of context hierarchy
2018-04-07 11:27:01.159 INFO 17476 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode!
2018-04-07 11:27:44.125 INFO 17476 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-04-07 11:27:44.361 INFO 17476 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f9ccd8cd] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-04-07 11:27:44.961 INFO 17476 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2018-04-07 11:27:44.974 INFO 17476 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2018-04-07 11:27:44.976 INFO 17476 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.20
2018-04-07 11:27:45.086 INFO 17476 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2018-04-07 11:27:45.086 INFO 17476 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 71852 ms
2018-04-07 11:27:45.308 INFO 17476 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2018-04-07 11:27:45.314 INFO 17476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/]
2018-04-07 11:27:45.315 INFO 17476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/
]
2018-04-07 11:27:45.315 INFO 17476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/]
2018-04-07 11:27:45.315 INFO 17476 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/
]
2018-04-07 11:27:48.232 INFO 17476 --- [ main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default'
2018-04-07 11:27:51.980 INFO 17476 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2018-04-07 11:27:52.992 INFO 17476 --- [ main] net.dv8tion.jda.core.JDA : Login Successful!
2018-04-07 11:27:53.467 INFO 17476 --- [inWS-ReadThread] n.d.jda.core.requests.WebSocketClient : Connected to WebSocket
2018-04-07 11:27:53.709 INFO 17476 --- [inWS-ReadThread] net.dv8tion.jda.core.JDA : Finished Loading!
2018-04-07 11:27:53.752 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Loading from C:\Users\rbsle\Downloads\Bot\Bot avec photo - DiscordSoundboard-2.2.2-beta/sounds
2018-04-07 11:27:53.773 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : agence
2018-04-07 11:27:54.164 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : allez viens
2018-04-07 11:27:54.168 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Anarhim
2018-04-07 11:27:54.170 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : apero
2018-04-07 11:27:54.173 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : ascenseur
2018-04-07 11:27:54.176 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : bikers67
2018-04-07 11:27:54.178 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : blc
2018-04-07 11:27:54.180 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : blc2
2018-04-07 11:27:54.182 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : carta
2018-04-07 11:27:54.185 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : cavalerie
2018-04-07 11:27:54.186 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : dadada
2018-04-07 11:27:54.188 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : desktop
2018-04-07 11:27:54.189 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : dommage
2018-04-07 11:27:54.191 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : enjaille
2018-04-07 11:27:54.193 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Ethnik
2018-04-07 11:27:54.194 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : gagn├®
2018-04-07 11:27:54.197 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : gogole
2018-04-07 11:27:54.198 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : goldeneye
2018-04-07 11:27:54.199 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : hallo salut
2018-04-07 11:27:54.201 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : hasta la vista
2018-04-07 11:27:54.202 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : headshot
2018-04-07 11:27:54.204 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : hello darkness
2018-04-07 11:27:54.206 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : hello
2018-04-07 11:27:54.207 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : humiliation
2018-04-07 11:27:54.209 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Kaharom
2018-04-07 11:27:54.211 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : let's go
2018-04-07 11:27:54.212 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : loli mou
2018-04-07 11:27:54.214 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : mac gyver
2018-04-07 11:27:54.215 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : mais oui
2018-04-07 11:27:54.217 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : maison prairie
2018-04-07 11:27:54.218 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : marseillaise
2018-04-07 11:27:54.220 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : mein fuhrer
2018-04-07 11:27:54.221 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : merde
2018-04-07 11:27:54.223 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : meuh
2018-04-07 11:27:54.225 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Mlle JeSsS
2018-04-07 11:27:54.226 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : monsterkill
2018-04-07 11:27:54.228 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : mouv
2018-04-07 11:27:54.229 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : nein
2018-04-07 11:27:54.231 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : pe cimpoi
2018-04-07 11:27:54.232 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : pompe
2018-04-07 11:27:54.234 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : pompe2
2018-04-07 11:27:54.235 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : rampage
2018-04-07 11:27:54.238 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Razorbak
2018-04-07 11:27:54.242 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : salut comment
2018-04-07 11:27:54.245 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : santiano
2018-04-07 11:27:54.247 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Shynu
2018-04-07 11:27:54.248 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : starsky et hutch
2018-04-07 11:27:54.253 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Strec
2018-04-07 11:27:54.255 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : Tat'
2018-04-07 11:27:54.257 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : teamkiller
2018-04-07 11:27:54.259 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : tu la sens
2018-04-07 11:27:54.261 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : unstoppable
2018-04-07 11:27:54.265 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : viens
2018-04-07 11:27:54.266 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : vous les femmes
2018-04-07 11:27:54.268 INFO 17476 --- [ main] n.d.d.service.SoundPlayerImpl : zaz
2018-04-07 11:27:54.360 INFO 17476 --- [ main] .s.a.AnnotationAsyncExecutionInterceptor : No task executor bean found for async processing: no bean of type TaskExecutor and no bean named 'taskExecutor' either
Watching path: C:\Users\rbsle\Downloads\Bot\Bot avec photo - DiscordSoundboard-2.2.2-beta\sounds
2018-04-07 11:27:54.866 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/volume],methods=[POST]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.setVolume(java.lang.Integer,java.lang.String)
2018-04-07 11:27:54.867 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/playFile],methods=[POST]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.playSoundFile(java.lang.String,java.lang.String)
2018-04-07 11:27:54.870 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/playUrl],methods=[POST]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.playSoundUrl(java.lang.String,java.lang.String)
2018-04-07 11:27:54.872 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/volume],methods=[GET]}" onto public float net.dirtydeeds.discordsoundboard.web.SoundboardRestController.getVolume()
2018-04-07 11:27:54.873 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/stop],methods=[POST]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.stopPlayback(java.lang.String)
2018-04-07 11:27:54.876 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/updateSoundList],methods=[GET]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.updateSoundList()
2018-04-07 11:27:54.877 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/availableSounds],methods=[GET]}" onto public java.util.List<net.dirtydeeds.discordsoundboard.beans.SoundFile> net.dirtydeeds.discordsoundboard.web.SoundboardRestController.getSoundFileList()
2018-04-07 11:27:54.881 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/sounds],methods=[POST]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.soundCommand(java.lang.String,java.lang.String)
2018-04-07 11:27:54.884 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/users],methods=[GET]}" onto public java.util.List<net.dirtydeeds.discordsoundboard.beans.User> net.dirtydeeds.discordsoundboard.web.SoundboardRestController.getUsers()
2018-04-07 11:27:54.884 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/playRandom],methods=[POST]}" onto public org.springframework.http.HttpStatus net.dirtydeeds.discordsoundboard.web.SoundboardRestController.playRandomSoundFile(java.lang.String)
2018-04-07 11:27:54.885 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/sounds/category],methods=[GET]}" onto public java.util.Set<java.lang.String> net.dirtydeeds.discordsoundboard.web.SoundboardRestController.getSoundCategoriesNew()
2018-04-07 11:27:54.886 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/soundCategories],methods=[GET]}" onto public java.util.Set<java.lang.String> net.dirtydeeds.discordsoundboard.web.SoundboardRestController.getSoundCategories()
2018-04-07 11:27:54.886 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/soundsApi/sounds],methods=[GET]}" onto public java.util.List<net.dirtydeeds.discordsoundboard.beans.SoundFile> net.dirtydeeds.discordsoundboard.web.SoundboardRestController.getSoundFileListNew()
2018-04-07 11:27:54.887 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/v2/api-docs],methods=[GET],produces=[application/json || application/hal+json]}" onto public org.springframework.http.ResponseEntity<springfox.documentation.spring.web.json.Json> springfox.documentation.swagger2.web.Swagger2Controller.getDocumentation(java.lang.String,javax.servlet.http.HttpServletRequest)
2018-04-07 11:27:54.891 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/swagger-resources]}" onto org.springframework.http.ResponseEntity<java.util.List<springfox.documentation.swagger.web.SwaggerResource>> springfox.documentation.swagger.web.ApiResourceController.swaggerResources()
2018-04-07 11:27:54.894 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/configuration/ui]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.UiConfiguration> springfox.documentation.swagger.web.ApiResourceController.uiConfiguration()
2018-04-07 11:27:54.897 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/configuration/security]}" onto org.springframework.http.ResponseEntity<springfox.documentation.swagger.web.SecurityConfiguration> springfox.documentation.swagger.web.ApiResourceController.securityConfiguration()
2018-04-07 11:27:54.899 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-04-07 11:27:54.899 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-04-07 11:27:55.395 INFO 17476 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3b7951: startup date [Sat Apr 07 11:26:33 CEST 2018]; root of context hierarchy
2018-04-07 11:27:55.483 INFO 17476 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-07 11:27:55.484 INFO 17476 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/
] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-07 11:27:55.550 INFO 17476 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-04-07 11:27:55.599 INFO 17476 --- [ main] oConfiguration$WelcomePageHandlerMapping : Adding welcome page: class path resource [static/index.html]
2018-04-07 11:27:55.887 INFO 17476 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2018-04-07 11:27:55.898 INFO 17476 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2018-04-07 11:27:55.920 INFO 17476 --- [ main] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2018-04-07 11:27:55.931 INFO 17476 --- [ main] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2018-04-07 11:27:56.148 INFO 17476 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2018-04-07 11:27:56.153 INFO 17476 --- [ main] n.d.discordsoundboard.MainController : Started MainController in 83.35 seconds (JVM running for 86.059)

z1g commented

If you properly created a discord app - https://discordapp.com/developers/applications/me , added the token for that app to your app.properties file, then invited the bot to your server - https://discordapp.com/oauth2/authorize?client_id=YOUR_APP_ID_GOES_HERE&scope=bot - then the bot should show up in your user list whether the bot is running or not. It will show up under OFFLINE if the bot is not running. So if you do not see your bot in the users list at all you have missed a step somewhere. Here is a link to a guide for creating a discord app and getting the token - https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token

Going to close this. The latest version is out and should fix any existing issues.