Questions tagged [twitch]

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

821 questions
-1
votes
1 answer

Error while installing - composer require socialiteproviders/twitch

Problem 1 - Installation request for socialiteproviders/twitch ^3.0 -> satisfiable by socialiteproviders/twitch[v3.0.0]. - Conclusion: remove laravel/framework v5.3.31 - Conclusion: don't install laravel/framework v5.3.31 -…
-1
votes
1 answer

C# Beginner - Using classes in different from different classes

This is a file called TwitchAPIexample in folder Plugins under project MyFirstBot. The classes and code is below: using System.Net; using System.IO; using Newtonsoft.Json; namespace MyFirstBot.Plugins { public class TwitchAPIexample { …
Zack Arnett
  • 239
  • 2
  • 6
  • 19
-1
votes
1 answer

MongoDB query syntax error

I've run into an issue when querying a collection I've made of Twitch JSON objects. However, the following query throws "SyntaxError: invalid syntax". objflat = db.twitchstreams.find({'_links': [ 'streams': [ {'channel': …
-1
votes
3 answers

certain user(s) can only use a command

Essentially this program allows a user to use a command !weaponrequest, it then saves their request into a list, with !nextweapon you can see what the next weapon in the list is, this allows a streamer to take weapon requests in a game with a fully…
user6772381
-1
votes
1 answer

my bot doesn't accept my string array for mod. does anyone know whats wrong with it?

when "the_pvbro" wants to type a command in chat the bot doesn't allow him to use it. and i'm too lazy to make a new class for every new mod i add. so does anyone have an idea maybe how to do it differntly? import org.jibble.pircbot.*; public class…
Skalrayi
  • 13
  • 4
-1
votes
1 answer

Getting Started with Python-Twitch 1.2

I've been programming with Python for a few months now but I'm having trouble figuring out the Python-Twitch library for the Twitch API. I've installed version 1.2 and it gives instructions here:…
apbassett
  • 160
  • 1
  • 6
  • 14
-1
votes
2 answers

Python 3 and Twitch API?

Is there any possible way to use the Twitch.tv API with Python 3? It looks to be prepared for another language but I've been spending a lot of time learning Python.
apbassett
  • 160
  • 1
  • 6
  • 14
-1
votes
3 answers

Python 2.7: No module named hexchat

I'm trying to write a Python script that does something with the inputs from the IRC chat that is connected to twitch. However, when I do import hexchat, python keeps telling me there is no module named hexchat. I'm using Pycharm btw. I just want to…
JJGong
  • 129
  • 2
  • 11
-1
votes
1 answer

Manipulate Result type with JSON as content

This is a follow-up on the question Why do I get a list of numbers instead of JSON when using the Twitch API via Rust? If I use the solution suggested in the previous post: Use the response.get_body() method to get a list of byte number which can…
Adrian Z.
  • 904
  • 1
  • 12
  • 29
-1
votes
1 answer

Obtaining user's email id even if email is not verified

I am working on an application using Django/Python. I am implementing Twitch Connect and I need email address of the user for my application. My problem is that if the user has verified email id, i obtain it as apart of the django social auth…
Manas Paldhe
  • 766
  • 1
  • 10
  • 32
-1
votes
1 answer

Error while creating a sub JSONObject from another JSONObject

I am working on an Android app and one of its functionnalities is to know when a streamer is streaming by using Twitch API. When a streamer is streaming, if I connect to https://api.twitch.tv/kraken/streams/ I get a String which I use to build a…
Cyprien Aubry
  • 641
  • 8
  • 19
-1
votes
1 answer

How to check if stream in twitch.tv is on?

Here is code of my getStream method: public static Twitch_Stream getStream(String channelname) { try { String json = API.readJsonFromUrl("https://api.twitch.tv/kraken/streams?channel=" + channelname); Twitch_Stream…
dekros
  • 59
  • 1
  • 8
-1
votes
1 answer

Identify sending user, Python IRC

So I made a Twitch.tv bot for my own channel, after having fun with it a little bit, I wanted to have some command restricted to some users, and some commands that can say the users name, for example: Username reply example: Person1:…
GTAirpline
  • 65
  • 11
-1
votes
3 answers

Python AttributeError: 'str' object has no attribute 'append' (Specific)

Currently having an issue with my Twitch chat bot, this error occurs when the bot picks up JTV sending a flag to op somebody in the channel (Giving them mod permissions). The problem I'm having is that this error sometimes occurs and sometime…
Lynn
  • 3
  • 5
-1
votes
1 answer

Twitch.tv Api C# Get Streams

I want to create a Twitch.tv app for desktop Pc. I have read that Twitch api use Json for the streams. Can someone please explain me how I get the streams into a list? I plan to use C# get the list into a listbox but im stuck and cant continue…