コード例 #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
ファイル: GroupService.cs プロジェクト: sabihoshi/KomiBot
 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;