Exemplo n.º 1
0
        private async void OnMessageRecieved(BotWideMessageArguments args)
        {
            BotChannel bChan = await GetBotChannel(args);

            if (bChan == null)
            {
                return;
            }
            await DBVerify(bChan);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Count messages for reminder functionality
 /// </summary>
 /// <param name="args"></param>
 private void OnMessageReceived(BotWideMessageArguments args)
 {
     if (args.source == MESSAGESOURCE.TWITCH)
     {
         if (_timedMessages.Exists(p => p.twitchChannelName == args.channel))
         {
             _timedMessages.Find(p => p.twitchChannelName == args.channel).msgSinceLastused++;
         }
     }
 }
Exemplo n.º 3
0
 private async void OnMessageReceived(BotWideMessageArguments args)
 {
     if (args.message.ToLower() == "!aping")
     {
         if (args.source == MESSAGESOURCE.TWITCH)
         {
             Program.TwitchSayMessage(args.channel, "PONG! Soffa");
         }
         if (args.source == MESSAGESOURCE.DISCORD)
         {
             await DiscordClient.DiscordSayMessage(args.channelID, "PONG! arrrgh");
         }
     }
 }
Exemplo n.º 4
0
        private async void OnMessageRecieved(BotWideMessageArguments args)
        {
            BotChannel bChan = await GetBotChannel(args);

            QueueSettings settings = await Settings <QueueSettings>(bChan, PluginName);

            if (settings._active)
            {
                if (_queues.ContainsKey(bChan.Key))
                {
                    _queues[bChan.Key].AddMessage();
                }
            }
        }
Exemplo n.º 5
0
 internal void RaiseOnMessageReceived(BotWideMessageArguments args)
 {
     OnMessageReceived?.Invoke(args);
 }