Jump to content

Could someone help me with this python error?

I am trying to make a twitch bot but I am getting errors. 

 File "C:\Users\Daniel\Desktop\ChatBot-master\Run.py", line 6, in <module>    s = openSocket()  File "C:\Users\Daniel\Desktop\ChatBot-master\Socket.py", line 8, in openSocket    s.send("PASS " + PASS + "\r\n")TypeError: a bytes-like object is required, not 'str'
Link to comment
https://linustechtips.com/topic/509606-could-someone-help-me-with-this-python-error/
Share on other sites

Link to post
Share on other sites

You passed in a string where a byte is expected? Refer to manual for whatever object openSocket returns.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×