twitch-api

How to run twitch bot and app simultaneously

How to run twitch bot and app simultaneously Question: if __name__ ==’__main__’: bot.run() web.run_app(app, port=5000) I am trying to run these 2 simultaneously, however, one is blocking the other. Any help would be appreciated. Thanks Asked By: tidekis doritos || Source Answers: If they are both synchronous (no async or await) then you can use …

Total answers: 1

python Twitch-chatbot MONKALOT encounters json error on startup

python Twitch-chatbot MONKALOT encounters json error on startup Question: Presently I’m trying to make MONKALOT run on a PythonAnywhere account (customized Web Developer). I have basic knowledge of Linux but unfortunately no knowledge of dev’oping python scripts but advanced knowledge of dev’oping Java (hope that helps). My success log so far: After upgrading my account …

Total answers: 3

How do you send a message in TwitchIO that's not a response to a command?

How do you send a message in TwitchIO that's not a response to a command? Question: I’m setting up a python TwitchIO chat bot. The getting started example has this: async def event_message(self, message): print(message.content) await self.handle_commands(message) @commands.command(name=’test’) async def my_command(self, ctx): await ctx.send(f’Hello {ctx.author.name}!’) If the incoming message is a command (e.g. !test), a …

Total answers: 3