I am encountering an error whilst running SriZbot to connect to my channel:
Request to join the "srizbi" channel has timed out. Make sure the channel exists.
I installed pipenv: pip install pipenv, created a virtual environment for Python 3.7: pipenv --python 3.7 and then installed twitchio: pipenv install twitchio, and run my code using: pipenv run python SriZbot.py.
# SriZbot.py
import os # for importing env vars for the bot to use
from twitchio.ext import commands
bot = commands.Bot(
# set up the bot
irc_token=os.environ['TMI_TOKEN'],
client_id=os.environ['CLIENT_ID'],
nick=os.environ['BOT_NICK'],
prefix=os.environ['BOT_PREFIX'],
initial_channels=[os.environ['CHANNEL']]
)
if __name__ == "__main__":
bot.run()
srizbot doesn’t appear to be an actual user, which would be why you’re getting an error. You can’t log in to Chat with accounts aren’t aren’t the one going through the OAuth flow to grant the token.