From 9a20fd641be9ce0e6f279dab9228aa5656e46649 Mon Sep 17 00:00:00 2001 From: Roman Davydov <15850461+rdavydov@users.noreply.github.com> Date: Sat, 13 Jan 2024 00:39:14 +0300 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c272754..2f57d8c 100644 --- a/README.md +++ b/README.md @@ -241,19 +241,25 @@ twitch_miner = TwitchChannelPointsMiner( events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, Events.BET_LOSE, Events.CHAT_MENTION], # Only these events will be sent to the chat ), + webhook=Webhook( + endpoint="https://example.com/webhook", # Webhook URL + method="GET", # GET or POST + events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, + Events.BET_LOSE, Events.CHAT_MENTION], # Only these events will be sent to the endpoint + ), matrix=Matrix( username="twitch_miner", # Matrix username (without homeserver) password="...", # Matrix password homeserver="matrix.org", # Matrix homeserver room_id="...", # Room ID - events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, Events.BET_LOSE], # Only these events will be sent to the chat + events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, Events.BET_LOSE], # Only these events will be sent ), pushover=Pushover( - userkey="YOUR-ACCOUNT-TOKEN", # Login to https://pushover.net/, the user token is on the main page. - token="YOUR-APPLICATION-TOKEN", # Create a application on the website, and use the token shown in your application. + userkey="YOUR-ACCOUNT-TOKEN", # Login to https://pushover.net/, the user token is on the main page + token="YOUR-APPLICATION-TOKEN", # Create a application on the website, and use the token shown in your application priority=0, # Read more about priority here: https://pushover.net/api#priority sound="pushover", # A list of sounds can be found here: https://pushover.net/api#sounds - events=[Events.CHAT_MENTION, Events.DROP_CLAIM], # Only these events will be sent. + events=[Events.CHAT_MENTION, Events.DROP_CLAIM], # Only these events will be sent ) ), streamer_settings=StreamerSettings( @@ -521,7 +527,7 @@ You can use generic webhook |----------------------- |------------------|-----------|------------------------------------------------------------------- | | `endpoint` | string | | webhook url | | `method` | string | | `POST` or `GET` | -| `events` | list | | Only these events will be sent to the chat. Array of Event. or str | +| `events` | list | | Only these events will be sent to the endpoint. Array of Event. or str | ```python Webhook(