Questions tagged [twitch-api]

Twitch is a live streaming service and global community for content spanning gaming, entertainment, music, sports, and more. Use this tag for questions related to the Twitch API, Extensions, Drops, or EventSub.

Official Twitch Links

Twitch API on GitHub

181 questions
0
votes
0 answers

creating twitch and discord with api

I have started to learning coding stuff a few months ago and I'm new at this kind of stuff. I want to learn doing bots for twitch and I search it on youtube. I found some videos about that but everybody using something called "tmi.js" and I don't…
0
votes
0 answers

Nightbot json fetch request by twitch api token returns "Unexpected Identifier"

I am currently trying to make an improved !addquote command in which the quote number is fetched from a twitch api application with the OAuth Redirect URL "http://localhost". All the requests return as "Unexpected Identifier" although the correct…
zebsy
  • 13
  • 4
0
votes
0 answers

Python chat script shows all messages as successfully sent in command window, but actually sends in Twitch chat only the first one

Script expected to send all commands to Twitch chat in random order and within specified time period then loop indefinitely, but despite showing success in command window, it actually sends only the first message in Twitch chat. This code is not my,…
0
votes
0 answers

How to run twitchio bot forever without manually adding the new token

I understand that if the bot access token expires we must get a new one from the refresh token and replace the token of my bot bot = commands.Bot( token=token, client_id=os.environ[‘CLIENT_ID’], nick = “mynick”, prefix=“!”, …
0
votes
1 answer

How to run twitch bot and app simultaneously

if __name__ =='__main__': bot.run() web.run_app(app, port=5000) I am trying to run these 2 simultaneously, however, one is blocking the other. Any help would be appreciated. Thanks
0
votes
1 answer

How do I find Twtich username from user ID?

I am trying to find a twitch username from its ID? How do I do that? For example, if I have the twitch user https://www.twitch.tv/user, I can open up the API https://api.ivr.fi/twitch/resolve/user, and find the users "id":"12345678". But how can I…
0
votes
0 answers

How to fix ssl error trying to run twitchio event

I am trying to run a ban event inside an async function async def ban_function(username): global bot headers = { 'Authorization': f'Bearer {os.environ["TMI_TOKEN"]}', 'Client-ID': os.environ['CLIENT_ID'] } response =…
0
votes
0 answers

Direct Links For Twitch Streams

can someone help me find direct link for watchmeforever on twitch? I tried github apps, guides but all of the apps outputted nothing, Just Empty.
0
votes
0 answers

Twitch @bot.event doesn't do anything

I am trying to make a twitch bot, but I seem to be unable to use bot.event for some reason. If I use @bot.command, it works perfectly and sends a response in chat: @bot.command(name='test') async def test_command(ctx): await ctx.send("this is a…
somethingidk
  • 13
  • 1
  • 5
0
votes
0 answers

SwiftUI TwitchAPI Request Memory leak

I'm trying to do a lot of API Request to load Data. The Requests itself are not very heavy on Data: struct myFollower { public var followed_at: String = "" public var from_id: String = "" public var from_login: String = "" public var…
Zeddi
  • 13
  • 3
0
votes
0 answers

Having a problem with checking the twitch subscription

I was testing the correctly function of checking if a user is subscribed to a determinated channel, but it keeps continuosly giving false the is_subscribed function, but i cannot find why, this is my code (i’m using the User token…
0
votes
0 answers

TwitchLib EventSub Websockets using WinForms .NET 6

I'm looking at the documentation for the TwitchLib library EventSub using WebSockets and the examples they have are for either a console app or a WPF app: https://github.com/TwitchLib/TwitchLib.EventSub.Websockets My situation, however, is that I…
BBousman
  • 83
  • 1
  • 8
0
votes
1 answer

How to check If a twitch streamer is live?

I was trying to check if a twitch streamer is live or not but when I tried it gave me a error. here is my code: async function isStreamerLive(username) { const theUrl = `https://api.twitch.tv/helix/streams?user_login=${username}` const headers =…
Ansh Tyagi
  • 116
  • 1
  • 15
0
votes
0 answers

How to update twitchio commands.bot token when user logs in

So I have commands.bot function with the token and everything else and I want to update the token every time the user logs in. I get the token using socket.on but I'm not sure how to update the bot so all the bots events can be used in his twitch…
0
votes
0 answers

How to check if a message was repeated in multiple lines in REGEX PCRE2 flavor twitch chatterinoi?

I am trying to make Chatterino (Twitch chat) warn me when the same message is sent over and over again. Chatterino uses REGEX PCRE2 flavor to check if pattern was sent in chat. ^bot\b == warning when someone typed the word "bot" once. I wanted to…