Пример #1
0
 private async Task ReactionAdded(Cacheable <IUserMessage, ulong> cacheMessage, ISocketMessageChannel channel,
                                  SocketReaction reaction)
 {
     if (reaction.User.Value.IsBot)
     {
         return;
     }
     Reaction.ReactionAddedFor2048(cacheMessage, channel, reaction);
     OctoGameReaction.ReactionAddedForOctoGameAsync(cacheMessage, channel, reaction);
     ColorRoleReaction.ReactionAddedForRole(cacheMessage, channel, reaction);
     RoomRoleReaction.ReactionAddedForRole(cacheMessage, channel, reaction);
     RoomRoleReactionHandeling.ReactionAddedForRole(cacheMessage, channel, reaction);
     _reactionsHandelingForBlogAndArt.Client_ReactionAddedForArtVotes(cacheMessage, channel, reaction);
     _reactionsHandelingForBlogAndArt.Client_ReactionAddedAsyncForBlog(cacheMessage, channel, reaction);
 }
Пример #2
0
 public DiscordEventDispatcher(DiscordShardedClient client, CommandHandling commandHandler, OctoGameReaction octoGameReaction, LoginFromConsole log, Global global, ServerActivityLogger serverActivityLogger, UserSkatisticsCounter userSkatisticsCounter, LvLing lvLing, GiveRoleOnJoin giveRoleOnJoin, CheckIfCommandGiveRole checkIfCommandGiveRole, Announcer announcer, CheckForVoiceChannelStateForVoiceCommand checkForVoiceChannelStateForVoiceCommand)
 {
     _client           = client;
     _commandHandler   = commandHandler;
     _octoGameReaction = octoGameReaction;
     _log    = log;
     _global = global;
     _serverActivityLogger  = serverActivityLogger;
     _userSkatisticsCounter = userSkatisticsCounter;
     _lvLing                 = lvLing;
     _giveRoleOnJoin         = giveRoleOnJoin;
     _checkIfCommandGiveRole = checkIfCommandGiveRole;
     _announcer              = announcer;
     _checkForVoiceChannelStateForVoiceCommand = checkForVoiceChannelStateForVoiceCommand;
 }
Пример #3
0
 public DiscordEventHandler(DiscordShardedClient client, CommandHandeling commandHandler, OctoGameReaction octoGameReaction)
 {
     _client           = client;
     _commandHandler   = commandHandler;
     _octoGameReaction = octoGameReaction;
 }