-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Interim getting ready for release testing
- Loading branch information
Showing
5 changed files
with
67 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
{ | ||
"python.linting.flake8Enabled": true, | ||
"python.formatting.provider": "autopep8", | ||
"python.linting.flake8Args": [ | ||
"autopep8.args": [ | ||
"--max-line-length", | ||
"160" | ||
], | ||
"flake8.args": [ | ||
"--config", | ||
".flake8" | ||
], | ||
"python.linting.flake8Path": "${workspaceFolder}/.venv/bin/flake8", | ||
"python.linting.banditPath": "${workspaceFolder}/.venv/bin/bandit", | ||
"python.linting.banditEnabled": true, | ||
"python.linting.banditArgs": [ | ||
"--ini", | ||
".bandit", | ||
"-r" | ||
], | ||
"python.linting.mypyEnabled": false, | ||
"python.linting.mypyPath": "${workspaceFolder}/.venv/bin/mypy", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,33 @@ | ||
TODO | ||
# TwitchIRC | ||
|
||
This module connects to the Twitch IRC as a basic listener client. It handles the ping pong and initial connection but otherwise does not send anything to Twitch therefore does not appear in the viewer list nor can it post to chat. As such, no oauth is required, it just works out of the box. | ||
|
||
It can join multiple channels at the same time and will report which channel a message was received in. | ||
|
||
## Installation | ||
|
||
Available on PyPi at https://pypi.org/project/twitchirc-drgreengiant/ | ||
|
||
```bash | ||
pip install twitchirc_drgreengiant | ||
``` | ||
|
||
## Typical Usage | ||
|
||
```python | ||
from twitchirc_drgreengiant import twitchirc | ||
|
||
channels = frozenset(["drgreengiant", "hpxdreamer"]) | ||
|
||
with twitchirc.TwitchIrc(channels) as irc: | ||
while True: | ||
msg = irc.get_message(irc) | ||
|
||
if not msg: | ||
continue | ||
|
||
print("Received a message:") | ||
print(f"{msg.channel=} from {msg.username=}") | ||
print(f"{msg.payload=}") | ||
print() | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "twitchirc_drgreengiant" | ||
version = "2.0.0b3" | ||
version = "2.0.0b4" | ||
authors = [ | ||
{ name="Simon Howroyd", email="[email protected]" }, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters