enhance the rwf command

This commit is contained in:
lm
2022-04-08 22:33:23 +02:00
parent f43905b760
commit 710c570c8d
2 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ class TSbot:
commands.ticker(self, "") commands.ticker(self, "")
# Hijacked for WoW # Hijacked for WoW
commands.rwf(self) # commands.rwf(self)
else: else:
pass pass
+9 -4
View File
@@ -3,8 +3,8 @@ TBD
""" """
__author__ = "Lukas Mahler" __author__ = "Lukas Mahler"
__version__ = "0.0.1" __version__ = "0.0.2"
__date__ = "21.03.2022" __date__ = "08.04.2022"
__email__ = "m@hler.eu" __email__ = "m@hler.eu"
__status__ = "Development" __status__ = "Development"
@@ -201,7 +201,12 @@ def rwf(self):
this is very specific to my use, you can disable this in the config. this is very specific to my use, you can disable this in the config.
""" """
url = "https://raider.io/api/v1/raiding/progression?raid=sepulcher-of-the-first-ones&difficulty=mythic&region=world" url = "https://raider.io/api/v1/raiding/progression?raid=sepulcher-of-the-first-ones&difficulty=mythic&region=world"
data = json.loads(requests.get(url).text) req = requests.get(url)
if req.status_code != 200:
return
data = json.loads(req.text)
if not data: if not data:
return return
@@ -225,7 +230,7 @@ def rwf(self):
def ticker(self, parameter): def ticker(self, parameter):
""" """
Refresh the Crypto Ticker channels, Refresh the crypto Ticker channels,
this is very specific to my use, you can disable this in the config. this is very specific to my use, you can disable this in the config.
""" """