A websocket based twitch irc chat client
Project description
Twitch WS IRC
how to install
You can install the lib with pip from this repo directly.
pip install git+ssh://git@gitlab.com/henny022/twitch-ws-irc.git#egg=twitch-ws-irc
how to use
proper examples will follow
- make an Event Handler
from twitch_ws_irc.events import *
class ExampleEventHandler(EventHandler):
async def on_privmsg(self, event: PrivMsgEvent):
print(f"{event.user}: {event.message}")
if event.message == '!test':
await event.reply(f"hey {event.user}")
if event.message == '!stop':
await event.reply('bye')
await event.websocket.close()
- start the bot
from twitch_ws_irc.client import TwitchWSIRCClient
async def bot():
client = TwitchWSIRCClient('twitch token', 'twitch username', 'target channel')
await client.start(ExampleEventHandler())
await client.join()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
twitch-ws-irc-0.0.7.tar.gz
(13.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file twitch-ws-irc-0.0.7.tar.gz.
File metadata
- Download URL: twitch-ws-irc-0.0.7.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6300e31693bcdc8bb462d24ccc0716cdaf8eb389dcc21f59fa64c2b54a84a56f
|
|
| MD5 |
25719cf42408776cb2fe469a7a855779
|
|
| BLAKE2b-256 |
4436ec66d376eed0f67a99d3cb84b2cd56e74e2af189c3b083176e42c7f0ec51
|
File details
Details for the file twitch_ws_irc-0.0.7-py3-none-any.whl.
File metadata
- Download URL: twitch_ws_irc-0.0.7-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd2a66e0d786c384cb250cf943d14c44ff628c9abccd41d90da1ccd1cad2ff75
|
|
| MD5 |
911562cbc60a9e10cdab82e16eac7e5a
|
|
| BLAKE2b-256 |
dcff14b4067b1f161ac52097b3edb501981f594df9d2292c3e0a1baa198d65ef
|