mirror of
https://github.com/GaMeNu/HFCNotificator.git
synced 2024-11-16 15:24:51 +02:00
Done
This commit is contained in:
parent
513ad6b1bb
commit
28556a60fa
@ -1,6 +1,5 @@
|
||||
import asyncio
|
||||
import datetime
|
||||
from typing import Self
|
||||
|
||||
import requests
|
||||
|
||||
@ -104,12 +103,12 @@ class AlertEmbed:
|
||||
self.embed.add_field(name='מידע נוסף', value=self.alert.description)
|
||||
|
||||
@classmethod
|
||||
def generic_alert(cls, alert: Alert | dict, district: db_access.AreaDistrict | str) -> Self:
|
||||
def generic_alert(cls, alert: Alert | dict, district: db_access.AreaDistrict | str):
|
||||
ret_alem = cls(alert, district)
|
||||
return ret_alem
|
||||
|
||||
@classmethod
|
||||
def missile_alert(cls, alert: Alert | dict, district: db_access.AreaDistrict | str) -> Self:
|
||||
def missile_alert(cls, alert: Alert | dict, district: db_access.AreaDistrict | str):
|
||||
ret_alem = cls.generic_alert(alert, district)
|
||||
|
||||
if (not isinstance(district, str)) and (district.migun_time is not None):
|
||||
@ -120,7 +119,7 @@ class AlertEmbed:
|
||||
return ret_alem
|
||||
|
||||
@classmethod
|
||||
def auto_alert(cls, alert: Alert | dict, district: db_access.AreaDistrict | str) -> Self:
|
||||
def auto_alert(cls, alert: Alert | dict, district: db_access.AreaDistrict | str):
|
||||
"""
|
||||
Tired of having to CHOOSE an alert type all the time? Well this is JUST for you!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user