Clean up alert message, move notification to an embed

This commit is contained in:
2024-12-03 02:43:06 -08:00
parent 62e3fec496
commit 5a2e183ccd
2 changed files with 13 additions and 4 deletions

View File

@@ -74,7 +74,8 @@ class Alert:
if self.alert_type == AlertType.SPECIFIC_PRICE:
raise NotImplementedError
else:
return f"\n|\tRegion: {self.region.value.upper()}\tFlavor: {self.flavor.name.lower()}\tAlert: {self.alert_type.name.lower()}\t|"
alert_type_str = ' '.join(self.alert_type.name.split("_"))
return f"\n|\tRegion: {self.region.value.upper()}\tFlavor: {self.flavor.name.lower()}\tAlert: {alert_type_str.title()}\t|"
async def _lazy_load(self, table: Table, consistent: bool = False) -> None:
if consistent or not self._loaded: