Skip to main content

Very simple to use Twitch chat bot for lurking chat that does not require an oauth token

Project description

simple-twitch-chat-listener

Seeing the pure lack of twitch chat bots that are only meant for listening in and not requiring oauth tokens I decided to make my own.

This package is only meant for Twitch chat and is only capable of receiving messages, not sending

Pros:

  • Does not require a oauth token
  • Extremely simple setup
  • Chat listener runs on a separate thread

Cons:

  • Not much experience with edge case error handling

Installation

pip install -U simple-twitch-chat-listener

Example usage

from simple_twitch_chat_listener import TwitchChatListener

def my_message_handler(username, message):
    print(f"{username}: {message}")

tc = TwitchChatListener("goldenbeaster")
tc.set_client_message_handler(my_message_handler)
tc.start()

# Place your code here
import time
time.sleep(10)
# endof place your code here

# once you want to stop the service
tc.stop()

Other examples can be found here

Stuff that still needs to be done

actual RECONNECT handling

network connectivity testing

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

simple_twitch_chat_listener-0.2.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file simple_twitch_chat_listener-0.2.1.tar.gz.

File metadata

File hashes

Hashes for simple_twitch_chat_listener-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fb9b7b2f8a96617322c0a1ba236e02eec9a5dc3230ef39605d488296c73bc994
MD5 a347db8c6af902cd16a62c749c64bf60
BLAKE2b-256 9883e1322e14fabb6556e2876aa5e6ca26c7b546047408e456c60536c4f09803

See more details on using hashes here.

File details

Details for the file simple_twitch_chat_listener-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_twitch_chat_listener-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6028a9508b5f99460065f14a6aad84ea1e7f2da065e3271e74b824b5a31d0c7e
MD5 12c802a67200de860d50690ac67f6e3d
BLAKE2b-256 e956bd756f60d9a23212c48094e1bb8caa326a39de7bd9e9a59c05393ce60955

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page