From 0bb0876f74d152f1d37ed7d4763f4d933c158a7a Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Mon, 16 Aug 2021 22:36:28 +0200 Subject: [PATCH 01/10] ChatPresence enum. Ability to manage the presence in chat (irc) with ALWAYS, NEVER, ONLINE (ONLY), OFFLINE (ONLY) --- README.md | 18 +++++--- .../TwitchChannelPointsMiner.py | 4 +- TwitchChannelPointsMiner/classes/Chat.py | 11 +++++ .../classes/entities/Streamer.py | 41 ++++++++++++++----- example.py | 3 +- 5 files changed, 57 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 4ba7c93..c776195 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,8 @@ from colorama import Fore from TwitchChannelPointsMiner import TwitchChannelPointsMiner from TwitchChannelPointsMiner.logger import LoggerSettings, ColorPalette from TwitchChannelPointsMiner.classes.Settings import Priority -from TwitchChannelPointsMiner.classes.entities.Bet import Strategy, BetSettings, Condition, OutcomeKeys, FilterCondition, DelayMode +from TwitchChannelPointsMiner.classes.Chat import ChatPresence +from TwitchChannelPointsMiner.classes.entities.Bet import Strategy, BetSettings, Condition, OutcomeKeys, FilterCondition from TwitchChannelPointsMiner.classes.entities.Streamer import Streamer, StreamerSettings twitch_miner = TwitchChannelPointsMiner( @@ -210,16 +211,14 @@ twitch_miner = TwitchChannelPointsMiner( follow_raid=True, # Follow raid to obtain more points claim_drops=True, # We can't filter rewards base on stream. Set to False for skip viewing counter increase and you will never obtain a drop reward from this script. Issue #21 watch_streak=True, # If a streamer go online change the priotiry of streamers array and catch the watch screak. Issue #11 - join_chat=True, # Join irc chat to increase watch-time + chat=ChatPresence.ONLINE, # Join irc chat to increase watch-time [ALWAYS, NEVER, ONLINE, OFFLINE] bet=BetSettings( strategy=Strategy.SMART, # Choose you strategy! percentage=5, # Place the x% of your channel points percentage_gap=20, # Gap difference between outcomesA and outcomesB (for SMART stragegy) max_points=50000, # If the x percentage of your channel points is gt bet_max_points set this value stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points #33 - delay_mode=DelayMode.FROM_END, # When placing a bet, we will wait until `delay` seconds before the end of the timer - delay=6, - filter_condition=FilterCondition( + filter_condition=FilterCondition( by=OutcomeKeys.TOTAL_USERS, # Where apply the filter. Allowed [PERCENTAGE_USERS, ODDS_PERCENTAGE, ODDS, TOP_POINTS, TOTAL_USERS, TOTAL_POINTS] where=Condition.LTE, # 'by' must be [GT, LT, GTE, LTE] than value value=800 @@ -342,6 +341,14 @@ ColorPalette( | `claim_drops` | bool | True | If this value is True, the script will increase the watch-time for the current game. With this, you can claim the drops from Twitch Inventory [#21](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/21) | | `watch_streak` | bool | True | Choose if you want to change a priority for these streamers and try to catch the Watch Streak event [#11](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/11) | | `bet` | BetSettings | | Rules to follow for the bet | +| `chat` | ChatPresence | ONLINE | Join IRC-Chat to appear online in chat and attempt to get StreamElements channel points and increase view-time [#47](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/47) | + +Allowed values for `chat` are: +- `ALWAYS` Join in IRC chat and never leave +- `NEVER` Never join IRC chat +- `ONLINE` Partecipate to IRC chat if the streamer is online (leave if offline) +- `OFFLINE` Partecipate to IRC chat if the streamer is offline (leave if online) + ### BetSettings | Key | Type | Default | Description | |-------------------- |----------------- |--------- |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | @@ -350,7 +357,6 @@ ColorPalette( | `percentage_gap` | int | 20 | Gap difference between outcomesA and outcomesB (for SMART stragegy) | | `max_points` | int | 50000 | If the x percentage of your channel points is GT bet_max_points set this value | | `stealth_mode` | bool | False | If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points [#33](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/33) | -| `join_chat` | bool | True | Join IRC-Chat to appear online in chat and attempt to get StreamElements channel points and increase view-time [#47](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/47) | | `delay_mode` | DelayMode | FROM_END | Define how is calculating the waiting time before placing a bet | | `delay` | float | 6 | Value to be used to calculate bet delay depending on `delay_mode` value | diff --git a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py b/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py index 7b44c89..8b269fb 100644 --- a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py +++ b/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py @@ -12,7 +12,7 @@ from datetime import datetime from pathlib import Path from TwitchChannelPointsMiner.classes.AnalyticsServer import AnalyticsServer -from TwitchChannelPointsMiner.classes.Chat import ThreadChat +from TwitchChannelPointsMiner.classes.Chat import ChatPresence, ThreadChat from TwitchChannelPointsMiner.classes.entities.PubsubTopic import PubsubTopic from TwitchChannelPointsMiner.classes.entities.Streamer import ( Streamer, @@ -180,7 +180,7 @@ class TwitchChannelPointsMiner: streamer.settings.bet = set_default_settings( streamer.settings.bet, Settings.streamer_settings.bet ) - if streamer.settings.join_chat is True: + if streamer.settings.chat != ChatPresence.NEVER: streamer.irc_chat = ThreadChat( self.username, self.twitch.twitch_login.get_auth_token(), diff --git a/TwitchChannelPointsMiner/classes/Chat.py b/TwitchChannelPointsMiner/classes/Chat.py index 5e0272d..e120148 100644 --- a/TwitchChannelPointsMiner/classes/Chat.py +++ b/TwitchChannelPointsMiner/classes/Chat.py @@ -1,5 +1,6 @@ import logging import time +from enum import Enum, auto from threading import Thread from irc.bot import SingleServerIRCBot @@ -9,6 +10,16 @@ from TwitchChannelPointsMiner.constants import IRC, IRC_PORT logger = logging.getLogger(__name__) +class ChatPresence(Enum): + ALWAYS = auto() + NEVER = auto() + ONLINE = auto() + OFFLINE = auto() + + def __str__(self): + return self.name + + class ClientIRC(SingleServerIRCBot): def __init__(self, username, token, channel): self.token = token diff --git a/TwitchChannelPointsMiner/classes/entities/Streamer.py b/TwitchChannelPointsMiner/classes/entities/Streamer.py index c01cd79..c1731c3 100644 --- a/TwitchChannelPointsMiner/classes/entities/Streamer.py +++ b/TwitchChannelPointsMiner/classes/entities/Streamer.py @@ -5,7 +5,7 @@ import time from datetime import datetime from threading import Lock -from TwitchChannelPointsMiner.classes.Chat import ThreadChat +from TwitchChannelPointsMiner.classes.Chat import ChatPresence, ThreadChat from TwitchChannelPointsMiner.classes.entities.Bet import BetSettings, DelayMode from TwitchChannelPointsMiner.classes.entities.Stream import Stream from TwitchChannelPointsMiner.classes.Settings import Settings @@ -22,7 +22,7 @@ class StreamerSettings(object): "claim_drops", "watch_streak", "bet", - "join_chat", + "chat", ] def __init__( @@ -32,14 +32,14 @@ class StreamerSettings(object): claim_drops: bool = None, watch_streak: bool = None, bet: BetSettings = None, - join_chat: bool = True, + chat: ChatPresence = None, ): self.make_predictions = make_predictions self.follow_raid = follow_raid self.claim_drops = claim_drops self.watch_streak = watch_streak self.bet = bet - self.join_chat = join_chat + self.chat = chat def default(self): for name in [ @@ -47,15 +47,16 @@ class StreamerSettings(object): "follow_raid", "claim_drops", "watch_streak", - "join_chat", ]: if getattr(self, name) is None: setattr(self, name, True) if self.bet is None: self.bet = BetSettings() + if self.chat is None: + self.chat = ChatPresence.ONLINE def __repr__(self): - return f"BetSettings(make_predictions={self.make_predictions}, follow_raid={self.follow_raid}, claim_drops={self.claim_drops}, watch_streak={self.watch_streak}, bet={self.bet}, join_chat={self.join_chat})" + return f"BetSettings(make_predictions={self.make_predictions}, follow_raid={self.follow_raid}, claim_drops={self.claim_drops}, watch_streak={self.watch_streak}, bet={self.bet}, chat={self.chat})" class Streamer(object): @@ -116,7 +117,8 @@ class Streamer(object): if self.is_online is True: self.offline_at = time.time() self.is_online = False - self.leave_chat() + + self.toggle_chat() logger.info( f"{self} is Offline!", @@ -131,7 +133,8 @@ class Streamer(object): self.online_at = time.time() self.is_online = True self.stream.init_watch_streak() - self.join_chat() + + self.toggle_chat() logger.info( f"{self} is Online!", @@ -238,7 +241,7 @@ class Streamer(object): json_data[key].append(data) json.dump(json_data, open(fname, "w"), indent=4) - def leave_chat(self): + def __leave_chat(self): if self.irc_chat is not None: self.irc_chat.stop() @@ -250,6 +253,22 @@ class Streamer(object): self.username, ) - def join_chat(self): + def __join_chat(self): if self.irc_chat is not None: - self.irc_chat.start() + if self.irc_chat.is_alive() is False: + self.irc_chat.start() + + def toggle_chat(self): + if self.settings.chat == ChatPresence.ALWAYS: + self.__join_chat() + elif self.settings.chat != ChatPresence.NEVER: + if self.is_online is True: + if self.settings.chat == ChatPresence.ONLINE: + self.__join_chat() + elif self.settings.chat == ChatPresence.OFFLINE: + self.__leave_chat() + else: + if self.settings.chat == ChatPresence.ONLINE: + self.__leave_chat() + elif self.settings.chat == ChatPresence.OFFLINE: + self.__join_chat() diff --git a/example.py b/example.py index a8eb20f..123829f 100644 --- a/example.py +++ b/example.py @@ -5,6 +5,7 @@ from colorama import Fore from TwitchChannelPointsMiner import TwitchChannelPointsMiner from TwitchChannelPointsMiner.logger import LoggerSettings, ColorPalette from TwitchChannelPointsMiner.classes.Settings import Priority +from TwitchChannelPointsMiner.classes.Chat import ChatPresence from TwitchChannelPointsMiner.classes.entities.Bet import Strategy, BetSettings, Condition, OutcomeKeys, FilterCondition from TwitchChannelPointsMiner.classes.entities.Streamer import Streamer, StreamerSettings @@ -35,7 +36,7 @@ twitch_miner = TwitchChannelPointsMiner( follow_raid=True, # Follow raid to obtain more points claim_drops=True, # We can't filter rewards base on stream. Set to False for skip viewing counter increase and you will never obtain a drop reward from this script. Issue #21 watch_streak=True, # If a streamer go online change the priotiry of streamers array and catch the watch screak. Issue #11 - join_chat=True, # Join irc chat to increase watch-time + chat=ChatPresence.ONLINE, # Join irc chat to increase watch-time [ALWAYS, NEVER, ONLINE, OFFLINE] bet=BetSettings( strategy=Strategy.SMART, # Choose you strategy! percentage=5, # Place the x% of your channel points From 73cf4f2b35528c42595fba91977f1c81e8d3732f Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Wed, 18 Aug 2021 16:14:03 +0200 Subject: [PATCH 02/10] Make leave chat pub --- TwitchChannelPointsMiner/TwitchChannelPointsMiner.py | 5 ++++- TwitchChannelPointsMiner/classes/entities/Streamer.py | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py b/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py index 8b269fb..d71572e 100644 --- a/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py +++ b/TwitchChannelPointsMiner/TwitchChannelPointsMiner.py @@ -297,7 +297,10 @@ class TwitchChannelPointsMiner: logger.info("CTRL+C Detected! Please wait just a moment!") for streamer in self.streamers: - if streamer.irc_chat is not None: + if ( + streamer.irc_chat is not None + and streamer.settings.chat != ChatPresence.NEVER + ): streamer.leave_chat() if streamer.irc_chat.is_alive() is True: streamer.irc_chat.join() diff --git a/TwitchChannelPointsMiner/classes/entities/Streamer.py b/TwitchChannelPointsMiner/classes/entities/Streamer.py index c1731c3..97d2104 100644 --- a/TwitchChannelPointsMiner/classes/entities/Streamer.py +++ b/TwitchChannelPointsMiner/classes/entities/Streamer.py @@ -241,7 +241,7 @@ class Streamer(object): json_data[key].append(data) json.dump(json_data, open(fname, "w"), indent=4) - def __leave_chat(self): + def leave_chat(self): if self.irc_chat is not None: self.irc_chat.stop() @@ -266,9 +266,9 @@ class Streamer(object): if self.settings.chat == ChatPresence.ONLINE: self.__join_chat() elif self.settings.chat == ChatPresence.OFFLINE: - self.__leave_chat() + self.leave_chat() else: if self.settings.chat == ChatPresence.ONLINE: - self.__leave_chat() + self.leave_chat() elif self.settings.chat == ChatPresence.OFFLINE: self.__join_chat() From 2b0aac839459606d0a0810a643f4cc3efd6d7f34 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Wed, 17 Nov 2021 15:13:01 +0100 Subject: [PATCH 03/10] Betting strategy: Smart money #331 --- README.md | 1 + TwitchChannelPointsMiner/classes/entities/Bet.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/README.md b/README.md index d4e39b7..0de2f90 100644 --- a/README.md +++ b/README.md @@ -377,6 +377,7 @@ ColorPalette( - **MOST_VOTED**: Select the option most voted based on users count - **HIGH_ODDS**: Select the option with the highest odds - **PERCENTAGE**: Select the option with the highest percentage based on odds (It's the same that show Twitch) - Should be the same as select LOWEST_ODDS +- **SMART_MONEY**: Select the option with the highest points placed. [#331](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/issues/331) - **SMART**: If the majority in percent chose an option, then follow the other users, otherwise select the option with the highest odds ![Screenshot](https://raw.githubusercontent.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/master/assets/prediction.png) diff --git a/TwitchChannelPointsMiner/classes/entities/Bet.py b/TwitchChannelPointsMiner/classes/entities/Bet.py index 9b70aeb..be11ae6 100644 --- a/TwitchChannelPointsMiner/classes/entities/Bet.py +++ b/TwitchChannelPointsMiner/classes/entities/Bet.py @@ -11,6 +11,7 @@ class Strategy(Enum): MOST_VOTED = auto() HIGH_ODDS = auto() PERCENTAGE = auto() + SMART_MONEY = auto() SMART = auto() def __str__(self): @@ -260,6 +261,8 @@ class Bet(object): self.decision["choice"] = self.__return_choice(OutcomeKeys.ODDS) elif self.settings.strategy == Strategy.PERCENTAGE: self.decision["choice"] = self.__return_choice(OutcomeKeys.ODDS_PERCENTAGE) + elif self.settings.strategy == Strategy.SMART_MONEY: + self.decision["choice"] = self.__return_choice(OutcomeKeys.TOP_POINTS) elif self.settings.strategy == Strategy.SMART: difference = abs( self.outcomes[0][OutcomeKeys.PERCENTAGE_USERS] From 385361fe37271bc2eaa96d14c7144d7a66652d6d Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Sat, 26 Feb 2022 12:53:18 +0100 Subject: [PATCH 04/10] update version and readme --- README.md | 1 - TwitchChannelPointsMiner/__init__.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 8343663..1cb25f3 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,6 @@ Currently, we have a lot of PRs requests opened, but the time to test and improv - [Features/improvements to analytics #131](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/131) - [Betting strategy: Smart money #348](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/348) - [Add SMART_HIGH_ODDS strategy #172](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/172) -- [Replace join_chat boolean with chat: ChatPresence #253](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/253) - [Add stats #318](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/318) # README Contents diff --git a/TwitchChannelPointsMiner/__init__.py b/TwitchChannelPointsMiner/__init__.py index bb78b13..01d5e0d 100644 --- a/TwitchChannelPointsMiner/__init__.py +++ b/TwitchChannelPointsMiner/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = "2.0.7" +__version__ = "2.0.8" from .TwitchChannelPointsMiner import TwitchChannelPointsMiner __all__ = [ From 581f513c52d7feb1236d6a0c968f981ade931648 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Sat, 5 Mar 2022 14:41:48 +0100 Subject: [PATCH 05/10] Manual merge, fix conflicts - Sync with master --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 6f347e8..7833c74 100644 --- a/README.md +++ b/README.md @@ -187,11 +187,8 @@ import logging from colorama import Fore from TwitchChannelPointsMiner import TwitchChannelPointsMiner from TwitchChannelPointsMiner.logger import LoggerSettings, ColorPalette -<<<<<<< HEAD from TwitchChannelPointsMiner.classes.Chat import ChatPresence -======= from TwitchChannelPointsMiner.classes.Discord import Discord ->>>>>>> master from TwitchChannelPointsMiner.classes.Telegram import Telegram from TwitchChannelPointsMiner.classes.Settings import Priority, Events, FollowersOrder from TwitchChannelPointsMiner.classes.entities.Bet import Strategy, BetSettings, Condition, OutcomeKeys, FilterCondition, DelayMode From 8248bb30fe5dfbdf5b4a7053dd3fcd759b4aded1 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Mon, 7 Mar 2022 13:03:46 +0100 Subject: [PATCH 06/10] Update README.md - Version 2.0.9 (After merge: #253 #348) --- README.md | 3 +-- TwitchChannelPointsMiner/__init__.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 101377d..5f5a9ad 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,8 @@ Read more about channels point [here](https://help.twitch.tv/s/article/channel-p ## 📢 Help wanted Currently, we have a lot of PRs requests opened, but the time to test and improve It's less and less. If you want to help the community and the project, please test the following PRs and give us feedback: - [Features/improvements to analytics #131](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/131) -- [Betting strategy: Smart money #348](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/348) - [Add SMART_HIGH_ODDS strategy #172](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/172) -- [Add stats #318](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/318) +- [Add support for arbitrary filter functions #336](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/336) # README Contents 1. 🤝 [Community](#community) diff --git a/TwitchChannelPointsMiner/__init__.py b/TwitchChannelPointsMiner/__init__.py index 01d5e0d..5d423f8 100644 --- a/TwitchChannelPointsMiner/__init__.py +++ b/TwitchChannelPointsMiner/__init__.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -__version__ = "2.0.8" +__version__ = "2.0.9" from .TwitchChannelPointsMiner import TwitchChannelPointsMiner __all__ = [ From b3d04a0c909e66dde422aa8020ec6074d5c7f02f Mon Sep 17 00:00:00 2001 From: ImLorio Date: Tue, 8 Mar 2022 14:19:59 +0000 Subject: [PATCH 07/10] fix color bug in discord message --- TwitchChannelPointsMiner/logger.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/TwitchChannelPointsMiner/logger.py b/TwitchChannelPointsMiner/logger.py index bf30e0c..975b1af 100644 --- a/TwitchChannelPointsMiner/logger.py +++ b/TwitchChannelPointsMiner/logger.py @@ -132,11 +132,6 @@ class GlobalFormatter(logging.Formatter): ): self.settings.telegram.send(record.msg, record.event) - if self.settings.colored is True: - record.msg = ( - f"{self.settings.color_palette.get(record.event)}{record.msg}" - ) - skip_discord = False if hasattr(record, "skip_discord") is False else True if ( From d6530e7dda7b19596e5391bf3dcbb0d6be04696d Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Tue, 8 Mar 2022 15:33:34 +0100 Subject: [PATCH 08/10] Separate method for telegram and discord in logger formatter --- TwitchChannelPointsMiner/logger.py | 41 +++++++++++++++++------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/TwitchChannelPointsMiner/logger.py b/TwitchChannelPointsMiner/logger.py index 975b1af..ff40fca 100644 --- a/TwitchChannelPointsMiner/logger.py +++ b/TwitchChannelPointsMiner/logger.py @@ -123,24 +123,8 @@ class GlobalFormatter(logging.Formatter): record.msg = remove_emoji(record.msg) if hasattr(record, "event"): - skip_telegram = False if hasattr(record, "skip_telegram") is False else True - - if ( - self.settings.telegram is not None - and skip_telegram is False - and self.settings.telegram.chat_id != 123456789 - ): - self.settings.telegram.send(record.msg, record.event) - - skip_discord = False if hasattr(record, "skip_discord") is False else True - - if ( - self.settings.discord is not None - and skip_discord is False - and self.settings.discord.webhook_api - != "https://discord.com/api/webhooks/0123456789/0a1B2c3D4e5F6g7H8i9J" - ): - self.settings.discord.send(record.msg, record.event) + self.telegram(record) + self.discord(record) if self.settings.colored is True: record.msg = ( @@ -149,6 +133,27 @@ class GlobalFormatter(logging.Formatter): return super().format(record) + def telegram(self, record): + skip_telegram = False if hasattr(record, "skip_telegram") is False else True + + if ( + self.settings.telegram is not None + and skip_telegram is False + and self.settings.telegram.chat_id != 123456789 + ): + self.settings.telegram.send(record.msg, record.event) + + def discord(self, record): + skip_discord = False if hasattr(record, "skip_discord") is False else True + + if ( + self.settings.discord is not None + and skip_discord is False + and self.settings.discord.webhook_api + != "https://discord.com/api/webhooks/0123456789/0a1B2c3D4e5F6g7H8i9J" + ): + self.settings.discord.send(record.msg, record.event) + def configure_loggers(username, settings): if settings.colored is True: From 29f20732844ddd686163cb10fee5a9862cf90289 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 12 Mar 2022 00:53:45 +0000 Subject: [PATCH 09/10] Bump pillow from 9.0.0 to 9.0.1 Bumps [pillow](https://github.com/python-pillow/Pillow) from 9.0.0 to 9.0.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/9.0.0...9.0.1) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index f15b9b8..d8fe25e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,7 @@ requests==2.25.1 websocket-client==1.0.1 browser_cookie3==0.12.1 -pillow==9.0.0 +pillow==9.0.1 python-dateutil==2.8.1 emoji==1.2.0 millify==0.1.1 diff --git a/setup.py b/setup.py index bb1e009..c9eff06 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ setuptools.setup( "requests==2.25.1", "websocket-client==1.0.1", "browser_cookie3==0.12.1", - "pillow==9.0.0", + "pillow==9.0.1", "python-dateutil==2.8.1", "emoji==1.2.0", "millify==0.1.1", From 6a03d50e7c935213715dded687ed104d745f1b32 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 15 Mar 2022 15:23:00 +0000 Subject: [PATCH 10/10] Bump docker/build-push-action from 2.9.0 to 2.10.0 Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2.9.0 to 2.10.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v2.9.0...v2.10.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy-docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-docker.yml b/.github/workflows/deploy-docker.yml index 689681b..cc137ea 100644 --- a/.github/workflows/deploy-docker.yml +++ b/.github/workflows/deploy-docker.yml @@ -27,7 +27,7 @@ jobs: - name: Build and push id: docker_build - uses: docker/build-push-action@v2.9.0 + uses: docker/build-push-action@v2.10.0 with: context: . push: true