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); }
public Twitch(TwitchAdapter adapter) { twitchAdapter = adapter; }