Events.CHAT_MENTION

This commit is contained in:
Roman Davydov
2023-04-01 18:28:09 +03:00
committed by GitHub
parent b685b89801
commit 13fa6c3960

View File

@@ -231,12 +231,14 @@ twitch_miner = TwitchChannelPointsMiner(
telegram=Telegram( # You can omit or leave None if you don't want to receive updates on Telegram telegram=Telegram( # You can omit or leave None if you don't want to receive updates on Telegram
chat_id=123456789, # Chat ID to send messages @GiveChatId chat_id=123456789, # Chat ID to send messages @GiveChatId
token="123456789:shfuihreuifheuifhiu34578347", # Telegram API token @BotFather token="123456789:shfuihreuifheuifhiu34578347", # Telegram API token @BotFather
events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, "BET_LOSE"], # Only these events will be sent to the chat events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE,
Events.BET_LOSE, Events.CHAT_MENTION], # Only these events will be sent to the chat
disable_notification=True, # Revoke the notification (sound/vibration) disable_notification=True, # Revoke the notification (sound/vibration)
), ),
discord=Discord( discord=Discord(
webhook_api="https://discord.com/api/webhooks/0123456789/0a1B2c3D4e5F6g7H8i9J", # Discord Webhook URL webhook_api="https://discord.com/api/webhooks/0123456789/0a1B2c3D4e5F6g7H8i9J", # Discord Webhook URL
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, Events.CHAT_MENTION], # Only these events will be sent to the chat
) )
), ),
streamer_settings=StreamerSettings( streamer_settings=StreamerSettings(
@@ -473,7 +475,8 @@ If you want to receive logs update on Telegram initiate a new Telegram class, el
Telegram( Telegram(
chat_id=123456789, chat_id=123456789,
token="123456789:shfuihreuifheuifhiu34578347", token="123456789:shfuihreuifheuifhiu34578347",
events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, "BET_LOSE"], events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE,
Events.BET_LOSE, Events.CHAT_MENTION],
disable_notification=True, disable_notification=True,
) )
``` ```
@@ -497,7 +500,8 @@ If you want to receive log updates on Discord initialize a new Discord class, el
```python ```python
Discord( Discord(
webhook_api="https://discord.com/api/webhooks/0123456789/0a1B2c3D4e5F6g7H8i9J", webhook_api="https://discord.com/api/webhooks/0123456789/0a1B2c3D4e5F6g7H8i9J",
events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, Events.BET_LOSE], events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE,
Events.BET_LOSE, Events.CHAT_MENTION],
) )
``` ```
@@ -520,6 +524,7 @@ Discord(
- `JOIN_RAID` - `JOIN_RAID`
- `DROP_CLAIM` - `DROP_CLAIM`
- `DROP_STATUS` - `DROP_STATUS`
- `CHAT_MENTION`
### StreamerSettings ### StreamerSettings
| Key | Type | Default | Description | | Key | Type | Default | Description |