Fix connect command test

This commit is contained in:
Norbi Peti 2022-07-21 02:34:03 +02:00
parent ac3e6655e6
commit 8d63394b55
No known key found for this signature in database
GPG key ID: DBA4C4549A927E56

View file

@ -42,9 +42,7 @@ object CommonListeners {
SFlux(dispatcher.on(classOf[RoleUpdateEvent])).subscribe(GameRoleModule.handleRoleEvent)
SFlux(dispatcher.on(classOf[ChatInputInteractionEvent], event => {
if(event.getCommandName() equals "connect") {
println("Message: "+event.getInteraction.getMessage.isPresent)
val asd = Mono.just(new ConnectCommand().`def`(new Command2DCSender(event)))
println("Ran connect command")
val asd = Mono.just(new ConnectCommand().`def`(new Command2DCSender(event), event.getOption("name").get.getValue.get.asString))
asd
} else
Mono.empty()