public UtilityCommands(Config_Json config, DatabaseContext db, JsonManager_Service jsonParser, Random rnd)
        {
            _config   = config;
            _db       = db;
            _rnd      = rnd;
            _jsonMngr = jsonParser;

            _eFooter = new EmbedFooterBuilder()
            {
                IconUrl = Defined.BIG_BOSS_THUMBNAIL,
                Text    = Defined.FOOTER_MESSAGE
            };

            _eBuilder = new EmbedBuilder
            {
                Color  = Defined.Colors[_rnd.Next(Defined.Colors.Length - 1)],
                Footer = _eFooter
            };
        }
        public EmoteCommands(DatabaseContext db, Random rnd, JsonManager_Service jsonM, Config_Json cnfg)
        {
            _db       = db;
            _rnd      = rnd;
            _jsonMngr = jsonM;
            _config   = cnfg;

            _eFooter = new EmbedFooterBuilder()
            {
                IconUrl = Defined.BIG_BOSS_THUMBNAIL,
                Text    = Defined.FOOTER_MESSAGE
            };

            _eBuilder = new EmbedBuilder
            {
                Color  = Defined.Colors[_rnd.Next(Defined.Colors.Length - 1)],
                Footer = _eFooter
            };
        }
Exemple #3
0
        /*[DllImport("kernel32.dll")]
         * static extern bool CreateSymbolicLink(string lpSymlinkFileName, string lpTargetFileName, SymbolicLink dwFlags);
         *
         * enum SymbolicLink
         * {
         *  File = 0,
         *  Directory = 1
         * }*/

        public Program(string tPath)
        {
            _jsonMngr             = new JsonManager_Service(tPath + "\\config.json");
            _userCommandCooldowns = new ConcurrentDictionary <ulong, TimeSpan>();
        }