Creating a basic Twitch Bot with Python

Creating a basic Twitch Bot with Python

It's That Ian Guy

3 года назад

21,212 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Trizze
Trizze - 29.05.2023 00:22

Hi, does this still work? Or is it outdated due to new twitchio documentation?

Ответить
RandyRhombus
RandyRhombus - 13.02.2023 01:20

What IDE are you using?

Ответить
Ossuran Adamın Maceraları
Ossuran Adamın Maceraları - 18.12.2022 21:07

ı can't read nice

Ответить
jorge tejada
jorge tejada - 29.08.2022 20:35

where is the environment variables stored?

Ответить
Glommzy
Glommzy - 19.06.2022 17:52

im getting an error:
in <module>
irc_token=os.environ['TOKEN'],

in _getitem_
raise KeyError(key) from None
KeyError: 'TOKEN'


Anyone know what the problem is?

Ответить
SAPSC SMP
SAPSC SMP - 17.04.2022 12:50

Does this work for a bot you host by yourself?

Ответить
Maxi Flaxi
Maxi Flaxi - 12.03.2022 03:17

Hey, guys this is my tutorial for a bot. Basically just watch me FUCKING COPY PASTE EVERYTHING

Ответить
Jackie Zhen
Jackie Zhen - 22.02.2022 23:56

Hey there, how do you setup env variables?

Ответить
Philip Gouldman
Philip Gouldman - 11.02.2022 00:40

You can use your own account???

Ответить
MrVarmint
MrVarmint - 26.01.2022 05:31

The program runs, it recognizes command inputs yet does not respond in the channel's chat and does not error either.

Someone help

Ответить
Tom Smith
Tom Smith - 16.12.2021 22:57

HI, amazing Video.
I must say tough some commands are not valid any longer because they updated the library! So if anyone gets in trouble just as me or check the docs!

Ответить
Moba players
Moba players - 26.10.2021 13:44

you suck at coding bro , your sh*t dont work

Ответить
SymbolMinded
SymbolMinded - 23.08.2021 18:30

I am not twitch streamer so i wonder if there are some kind of default bots for the chat? And what's twitch'es policy for bots? You can basically use whatever custom bot you want?

Ответить
Endless
Endless - 21.08.2021 02:28

How can i get the irc token?
i got this error:
TypeError: __init__() missing 1 required positional argument: 'token'

Ответить
James Stew
James Stew - 17.08.2021 23:00

how do you manage that the bot reacts to "Hello" and "hello" , is there a way to tell the bot that booth are equal? lower case and upper case? something like Hello == hello

Ответить
MenUru
MenUru - 29.06.2021 22:41

Hello, can I use multiple twitch accounts at time?... I use node js and always when I try to send the messages (like spambot), it doesnt send it and it looks shadowbanned

Ответить
Jose Rene Alvarado
Jose Rene Alvarado - 04.06.2021 07:27

Need to send those messages to csv file for later sorting as well. Any help for that use case ?

Ответить
Jumbo Popcorn
Jumbo Popcorn - 29.05.2021 21:10

Hello! I found your video for making this twitch bot and got this error: Request to join the channel '[my channel name]' has timed out. Please make sure the channel exists. I made sure the tmi and channel ID were correct, I made sure the nick was the bot name, and after 4 hours of troubleshooting, I have gotten nowhere. Anyone's help would be greatly appreciated.

Edit: I fixed the problem for anyone wondering. It turns out that for some reason this tutorial doesn't work anymore. Just copy+paste the code at the official website of twitchio and it'll work.

Ответить
twinlio
twinlio - 06.05.2021 10:37

where do you get the os.environ['TWITCH_TOKEN'] from?

Ответить
WilliamS
WilliamS - 02.05.2021 16:29

How did you make your token become the varible TWITCH_TOKEN

Ответить
Surfangel
Surfangel - 25.04.2021 13:03

I can't get the bot to see or respond to whispers and I can't find anything on whispers in the documentation. How to get whisper commands working?

Ответить
breno gondim
breno gondim - 20.04.2021 23:39

Traceback (most recent call last): and a key error.... i cant run the bot because of this

Ответить
lpc
lpc - 24.03.2021 22:41

you need to keep making these videos bro

Ответить
HalfAiden
HalfAiden - 05.02.2021 01:26

Great video. Can't believe how easy it is with Python! Thanks.

Ответить