Handling commands - How to build a Twitch bot in Python - Part 2

preview_player
Показать описание
Welcome to the series where I teach you how to build a Twitch chat bot in Python! Below are the links to the stuff you'll need:

Some other awesome links for you:

If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.

#python #twitch #bot
Рекомендации по теме
Комментарии
Автор

The code looks terrifying as you type it. But it works, and this is a new tutorial series AND it's in Python so I vibe. Thanks for being a homie and sharing your knowledge!

TOnySchAnneL
Автор

Nice video. I watch all ur videos in 4K. Ur videos are very helpful

helish_
Автор

I seem to be getting no response from the commands when i type them in on twitch, not even an error pops up.

Cryotap
Автор

Hey this tutorial is great.

However I'm stuck using the "from . import misc" & "from .lib import cmds" commands, I've made sure the files are arranged correctly, however I just keep getting unknown parent package. Any ideas?

GraphicGamersCrew
Автор

Is there a way to add a cool down period to this? if 4 users type !help Id like it to only respond to the first one and wait 30 seconds before listening out for the same command again. Thanks :)

Michaelbarley
Автор

For some odd reason, the startswith() method doesnt want to be used in the __init__.py file.. i get no errors, but whenever i try to type a command or whatever, the bot doesnt respond either. to anything.
The bot starts up perfectly fine, but else doesnt do anything.

QuaRench
Автор

hi! Ive been having trouble with the line in init where it says from . import misc, for some reason it says "attempted relative import with no known parent package." I was wondering if you knew anything about that error and how to fix it? I have both init and misc in my cmds file, so im unsure

theevidentoak
Автор

Mine is throwing a fit over both imports and the hello def in misc.py. I've no idea why.

elieyay
Автор

Hey Carberra ! Thanks for the great tutorial so far. Love it.

You might explain this further down the series but I was wondering if the bot could run a script from your PC. For example, I build an overlay in a game, that is being called when I use my Script. Can I let a user command the bot to open the Script on my pc ?

Giving it a path to the script and basically telling it to run

dimi_
Автор

May I use your Code for my Twitch-Livestream ?

WatchWord_News
Автор

Nice video. I learn a lot from your videos but I have a question. Can I check the user is subscriber or not?

MrJackgao
Автор

Hey, Its a nice video thank you fro making it. I have a problem which i am not able to solve for weeks now. when run the code from python shell or from pycharm. it stucks there, it does not send message on channel chat. no error in code once i run it keeps in running stage.

softwereengineer
visit shbcf.ru