Пример #1
0
        public Task ExecuteAsync(ITurnContext context, IList <string> args)
        {
            if (context.Activity.Conversation.TenantId != context.Activity.Recipient.Name)
            {
                // only allow joining commands from the bots own channel
                return(Task.CompletedTask);
            }

            TwitchAdapter adapter = (TwitchAdapter)context.Adapter;

            adapter.JoinChannel(context.Activity.From.Name);

            return(Task.CompletedTask);
        }
Пример #2
0
 public Twitch(TwitchAdapter adapter)
 {
     twitchAdapter = adapter;
 }