Пример #1
0
        public CustomReactionsService(PermissionService perms, DbService db, IBotStrings strings, NadekoBot bot,
                                      DiscordSocketClient client, CommandHandler cmd, GlobalPermissionService gperm, CmdCdService cmdCds,
                                      IPubSub pubSub)
        {
            _db      = db;
            _client  = client;
            _perms   = perms;
            _cmd     = cmd;
            _strings = strings;
            _bot     = bot;
            _gperm   = gperm;
            _cmdCds  = cmdCds;
            _pubSub  = pubSub;
            _rng     = new NadekoRandom();

            _pubSub.Sub(_crsReloadedKey, OnCrsShouldReload);
            pubSub.Sub(_gcrAddedKey, OnGcrAdded);
            pubSub.Sub(_gcrDeletedkey, OnGcrDeleted);
            pubSub.Sub(_gcrEditedKey, OnGcrEdited);

            bot.JoinedGuild   += OnJoinedGuild;
            _client.LeftGuild += OnLeftGuild;
        }
Пример #2
0
 public CmdCdsCommands(CmdCdService service, DbService db)
 {
     _service = service;
     _db      = db;
 }