mirror of
https://github.com/DreamExposure/DisCal-Discord-Bot.git
synced 2026-02-08 04:19:06 -06:00
Still working on getting announcement system going
This commit is contained in:
@@ -139,13 +139,21 @@ public class DisCalClient {
|
||||
.flatMap(MessageCreateListener::handle)
|
||||
.then();
|
||||
|
||||
Mono<Void> startAnnouncement = client.on(ReadyEvent.class)
|
||||
Mono<Void> startAnnouncement = Flux.interval(Duration.ZERO)
|
||||
.onBackpressureBuffer()
|
||||
.doOnNext(ignore -> LogFeed.log(LogObject.forDebug("Tick")))
|
||||
.flatMap(ignore -> new AnnouncementThread(client).run())
|
||||
.then();
|
||||
|
||||
/*
|
||||
client.on(ReadyEvent.class)
|
||||
.doOnNext(ignore -> LogFeed.log(LogObject.forDebug("Ready event hit in announcement start")))
|
||||
.next()
|
||||
.flatMapMany(ignore -> Flux.interval(Duration.ZERO))
|
||||
.onBackpressureBuffer()
|
||||
.flatMap(i -> new AnnouncementThread(client).run())
|
||||
.then();
|
||||
*/
|
||||
|
||||
return Mono.when(onReady, onTextChannelDelete, onRoleDelete, onCommand, startAnnouncement);
|
||||
}).block();
|
||||
|
||||
Reference in New Issue
Block a user