Esempio n. 1
0
 void OnRaided(IChannelInfoChannel channel, RaidInformation info)
 {
     Logger.Info(this, $"Channel is being raided by {info.Login} with {info.RaiderCount} users on {info.Service}");
     if (ValidUser(info.Service, info.Login))
     {
         Raid?.Invoke(info);
     }
 }
Esempio n. 2
0
        void OnRaid(RaidInformation raid)
        {
            User user = usermodule.GetExistingUser(raid.Service, raid.Login);

            notificationwindow.ShowNotification(
                new MessageBuilder().Text("New Raid").BuildMessage(),
                raid.RaiderCount > 0 ?
                new MessageBuilder().User(user, imagemodule.AddImage(user.Avatar)).Text(" is raiding this channel with ").Text(raid.RaiderCount.ToString(), StreamColors.Option, FontWeight.Bold).Text(" raiders.").BuildMessage() :
                new MessageBuilder().User(user, imagemodule.AddImage(user.Avatar)).Text(" is raiding this channel.").BuildMessage()
                );
        }