mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-04-18 21:03:11 +00:00
[AB-xxx] adding bonk image generation command
fixing offline streamer handling not being able to handle streamer without current sessions
This commit is contained in:
@@ -314,7 +314,8 @@ public class StreamerServiceBean implements StreamerService {
|
||||
}
|
||||
log.info("Streamer {} went offline.", streamerId);
|
||||
if (deleteFlagValues.computeIfAbsent(streamer.getServer().getId(),
|
||||
aLong -> featureModeService.featureModeActive(TwitchFeatureDefinition.TWITCH, aLong, TwitchFeatureMode.DELETE_NOTIFICATION))) {
|
||||
aLong -> featureModeService.featureModeActive(TwitchFeatureDefinition.TWITCH, aLong, TwitchFeatureMode.DELETE_NOTIFICATION))
|
||||
&& streamer.getCurrentSession() != null) {
|
||||
Long channelId = streamer.getCurrentSession().getChannel().getId();
|
||||
Long messageId = streamer.getCurrentSession().getId();
|
||||
messageService.deleteMessageInChannelInServer(streamer.getServer().getId(), channelId, messageId).thenAccept(unused -> {
|
||||
|
||||
Reference in New Issue
Block a user