Skip to content

Pubsub bad oauth #47

@THENooBlet

Description

@THENooBlet

im having trouble with my token not working ... giving me bad oauth

heres my code

        pubsub = new TwitchPubSub();
        pubsub.OnPubSubServiceConnected += Pubsub_OnPubSubServiceConnected;
        pubsub.OnBitsReceived += Pubsub_OnBitsReceived;
        pubsub.OnSubscribersOnly += Pubsub_OnSubOnly;
        pubsub.OnSubscribersOnlyOff += Pubsub_onSubonlyoff;
        pubsub.OnWhisper += pubsub_onwisper;
        pubsub.OnListenResponse += Pubsub_OnListenResponse;


        pubsub.Connect();



    }

    private void Pubsub_OnPubSubServiceConnected(object sender, EventArgs e)
    {
        client.SendMessage(Twitch.Default.ChannelName, $"pubsub connected!!!");           
        pubsub.ListenToBitsEvents(Twitch.Default.ChannelID);            
        pubsub.SendTopics(Twitch.Default.BotOauth);            
    }

    private void Pubsub_OnBitsReceived(object sender, OnBitsReceivedArgs e)
    {
        client.SendMessage(Twitch.Default.ChannelName ,$"Just received {e.BitsUsed} bits from {e.Username}. That brings their total to {e.TotalBitsUsed} bits!");
    }

    private void Pubsub_OnListenResponse(object sender, OnListenResponseArgs e)
    {
        if (e.Successful)
            client.SendMessage(Twitch.Default.ChannelName,$"Successfully verified listening to topic: {e.Topic}");
        else
            client.SendMessage(Twitch.Default.ChannelName,$"Failed to listen! Error: {e.Response.Error}");
    }
}

}
:

i left some code out that has to do with client ...(works) but the botoauth being used in send topics is from swiftyspiffy token generator and all scopes are applyed
but i get

newbiestreambot: pubsub connected!!!
newbiestreambot: Failed to listen! Error: ERR_BADAUTH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions