Example #1
0
        public ReactionHandler(DiscordSocketClient client, PairsService pairs, ILogger <ReactionHandler> logger, QuicklinkService quicklink) : base(client, logger)
        {
            _client    = client;
            _pairs     = pairs;
            _quicklink = quicklink;

            _welcomeChannelId = ulong.Parse(_pairs.GetString("WELCOME_CHANNEL_ID"));
            _loggingChannelId = ulong.Parse(_pairs.GetString("LOGGING_CHANNEL_ID"));
            _classCRoleId     = ulong.Parse(_pairs.GetString("CLASS_C_ROLE_ID"));
            _intRoleId        = ulong.Parse(_pairs.GetString("INT_ROLE_ID"));
        }
Example #2
0
 public CommandHandler(IServiceProvider provider, DiscordSocketClient client, CommandService commandService,
                       IConfiguration config, PairsService pairs, QuicklinkService quicklink, ILogger <CommandHandler> logger) : base(client, logger)
 {
     _provider  = provider;
     _client    = client;
     _command   = commandService;
     _config    = config;
     _pairs     = pairs;
     _quicklink = quicklink;
     _random    = new Random();
 }
Example #3
0
 public ScpService(PairsService pairs)
 {
     _pairs         = pairs;
     _graphQlClient = new GraphQLHttpClient("https://api.crom.avn.sh/", new NewtonsoftJsonSerializer());
 }