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

mIRC: White-listing links to an uncommon domain

So I am trying to build my twitch bot through mIRC and I have been wanting it to timeout links for everysite except for any links from http://osu.ppy.sh/ and any links from http://puu.sh/ but block out anything else. I have found script and…
-1
votes
1 answer

Pirc bot "2/10" doesn't equals "2/10"

I want to write IRC Twitch bot. I have never used Pirc library before, so i wrote this simple bot to get started. BasicBot class : public class BasicBot extends PircBot{ public BasicBot(String name){ super(); this.setName(name); } …
Kentox
  • 21
  • 1
  • 2
-1
votes
1 answer

Check for special characters in string

I'm currently coding a bot for Twitch. Now I want to check each message for special characters and detect messages that have more than 20% special characters. The message itself is a variable var msg and if the message should contain more than 20%…
Kazuto
  • 158
  • 2
  • 15
-1
votes
1 answer

Python unicode dictornary to string from twitch stream

I'm trying to decode a twitch api answer in python. import urllib2 import json url = 'http://api.justin.tv/api/stream/list.json?channel=kungentv' result =json.loads(urllib2.urlopen(url, timeout = 100).read().decode('utf-8')) print result If i…
CvR_XX
  • 89
  • 1
  • 1
  • 10
-1
votes
1 answer

Python: IndexError: list index out of range with IRC Bot

I have been making a Python Twitch IRC Bot and it all works besides one issue. About every 20 mins it will crash with the error: Traceback (most recent call last): File "E:\Geekster_Bot\Geekster_Bot Code\Geekster_Bot_Test_Write", line 54, in…
Mr.Unknown21
  • 35
  • 1
  • 6
-2
votes
1 answer

Having trouble with the Twitch API

I am trying to get chat, then turn that into a number of chatters per time period and then take the top 10 moments and print into a text file so that I can edit easier, however I cant seem to get it to work, it seems something wrong with the client…
-2
votes
1 answer

How to create a HTTPS tunnel on my vps for my twitch bot event listen

I found an example on how to use the twitch EventSub webhooks(https://github.com/twitchdev/eventsub-webhooks-node-sample/blob/main/index.js) but i'm struggling with finding out how to setup it up without having to install ngrok or other apps on my…
Ivan
  • 70
  • 5
-2
votes
1 answer

variable is declared but its value is never read

As mentioned in the title, my variable "isModUp" is "declared but its value is never read" client.on("message", (channel, tags, message, self) => { if(self) return; const badges = tags.badges || {}; const isBroadcaster =…
-2
votes
1 answer

In a C# app, what is the best way to store a (Twitch) User Access and ID tokens?

The main concern I have is security. I want to create an application using the Twitch API in C#. I've managed to get the OAuth page embedded into my application, and I plan on setting up a small Node.JS app on Glitch to store the client secret and…
CAG2
  • 381
  • 2
  • 14
-2
votes
1 answer

Adding something to Twitch bot

So I have looked up some vids and made one of those simple twitch bots that can handle triggers. Now I made a trigger when a normal bot says "Welcome to the...." that it sends a message. I would like to add the names etc, and was wondering if this…
-2
votes
1 answer

Array.length is 3 but logs an "empty" array

Results I hope to log: [ 'freecodecamp' , 'twitchtv' , 'exercise' ] I've read a bunch of post regarding Asynchronous situation which explains why I'm getting these "empty [ ]" on the Console: "empty" meaning it appears like this:[ ], rathan…
-2
votes
1 answer

Twitch API Login Authorization

I'm trying to allow users to login using the Twitch API, but I have a few problems with the code. The code was written by BarryCarlyon, and copied from this forum https://discuss.dev.twitch.tv/t/authorization-code-flow/5148/12. I'm not that familiar…
Volcan 3
  • 99
  • 1
  • 2
  • 11
-2
votes
1 answer

if statement with RegExp alway triggering

I'm working on a twitch bot and I'm currently trying to get the bot to welcome people to the stream, problem is, one of the emote is "HeyGuys" and typing this emote alone would trigger him as there is both "hey" and "guys", so I wanted to use regexp…
Blü
  • 631
  • 2
  • 11
  • 26
-2
votes
1 answer

Python program stopped responding whenever I start a certain script

I am creating a Twitch.tv chat bot and whenever I click 'Start' under the 'File' menu, running 'startSpenbot', I get the 'This program has stopped responding' error. I have uploaded the full source code to GitHub, however I have deleted the entry…
spencermehta
  • 639
  • 1
  • 5
  • 10
-2
votes
1 answer

C# Get data from twitch api for latest follower using JSON

Im trying to make a application that get's the latest follower from "https://api.twitch.tv/kraken/channels/mepphotv/follows?direction=DESC&limit=1&offset=0" and save it to a .txt file. I know how would I save the string 'display_name' to a txt file…
1 2 3
54
55