示例#1
0
        public MessageRecievedListener(
            CommandService commands, DiscordSocketClient discord, IServiceProvider services,
            KomiContext database)
        {
            _commands = commands;
            _discord  = discord;
            _services = services;
            _database = database;

            _prefixCache = _prefixCache = new Cache <ulong, IEnumerable <string> >(GetPrefix);
        }
示例#2
0
 public GroupService(KomiContext context) => _context = context;
示例#3
0
 public OnReadyListener(KomiContext context, DiscordSocketClient client)
 {
     _context = context;
     _client  = client;
 }
示例#4
0
 public TrackingModule(KomiContext context) => _context = context;