public CommandHandlerService(IServiceProvider _provider, DiscordSocketClient _discord, CommandService _commands, SettingsHandlerService _settings)
        {
            discord  = _discord;
            commands = _commands;
            provider = _provider;
            settings = _settings;

            discord.MessageReceived += HandleCommandAsync;

            discord.SetGameAsync(settings.dallarSettings.startup.taskName);
        }
Exemple #2
0
        public GlobalHandlerService(DiscordSocketClient _discord, SettingsHandlerService _settings)
        {
            discord  = _discord;
            settings = _settings;

            client             = new ConnectionManager(settings.dallarSettings.rpc.ipaddress + ":" + settings.dallarSettings.rpc.port);
            client.credentials = new NetworkCredential(settings.dallarSettings.rpc.username, settings.dallarSettings.rpc.password);

            foreach (var guild in settings.dallarSettings.guilds)
            {
                string toWallet;
                client.GetWalletAddressFromUser(guild.tx.feeAccount, true, out toWallet);
            }

            discord.MessageReceived += MessageReceived;
        }
Exemple #3
0
 public RaffleHandlerService(DiscordSocketClient _discord, SettingsHandlerService _settings)
 {
     discord  = _discord;
     settings = _settings;
 }