mirror of
https://github.com/GaMeNu/HFCNotificator.git
synced 2024-11-16 15:24:51 +02:00
v2.2.0
Fix cog_notificator.py
This commit is contained in:
parent
54d1e08078
commit
2689cef361
@ -82,13 +82,13 @@ class Alert:
|
||||
|
||||
# noinspection PyUnresolvedReferences
|
||||
class Notificator(commands.Cog):
|
||||
location_group = app_commands.Group(name='locations',
|
||||
description='Commands related adding, removing, or setting locations.')
|
||||
districts: list[dict] = json.loads(requests.get('https://www.oref.org.il//Shared/Ajax/GetDistricts.aspx').text)
|
||||
|
||||
def __init__(self, bot: commands.Bot, handler: logging.Handler):
|
||||
self.bot = bot
|
||||
|
||||
self.bot.add_command(Location())
|
||||
|
||||
self.log = logging.Logger('Notificator')
|
||||
self.log.addHandler(handler)
|
||||
|
||||
@ -523,8 +523,6 @@ class Notificator(commands.Cog):
|
||||
"desc": desc
|
||||
}, districts_ls)
|
||||
|
||||
location_group = app_commands.Group(name='locations', description='Commands related adding, removing, or setting locations.')
|
||||
|
||||
@staticmethod
|
||||
def locations_page(data_list: list, page: int, res_in_page: int = 50) -> str:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user