added pep command to quickly get the link to a PEP |
||
|---|---|---|
| .activate.sh | ||
| .deactivate.sh | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| README.md | ||
| bot.py | ||
| requirements.txt | ||
| setup.cfg | ||
README.md
twitch-chat-bot
A hackety chat bot I wrote for my twitch stream. I wanted to learn asyncio and this felt like a decent project to dive in on.
setup
-
Set up a configuration file
{ "username": "...", "channel": "...", "oauth_token": "...", "client_id": "..." } -
Use python3.7 or newer and install
aiohttpvirtualenv venv -ppython3.7 venv/bin/pip install aiohttp -
Run!
venv/bin/python bot.py
implemented commands
!help
List all the currently supported commands
anthonywritescode: !help
anthonywritescodebot: possible commands: !help, !ohai, !uptime
!ohai
Greet yo self
anthonywritescode: !ohai
anthonywritescodebot: ohai, anthonywritescode!
!uptime
Show how long the stream has been running for
anthonywritescode: !uptime
anthonywritescodebot: streaming for: 3 hours, 57 minutes, 17 seconds
PING ...
Replies PONG to whatever you say
anthonywritescode: PING
anthonywritescodebot: PONG
anthonywritescode: PING hello
anthonywritescodebot: PONG hello
!discord
Show the discord url
anthonywritescode: !discord
anthonywritescodebot: We do have Discord, you are welcome to join: https://discord.gg/HxpQ3px