Refactor notification service to streamline admin notifications
- Removed the functionality to send suspicious promo attempt notifications to admins, simplifying the notification process. - Updated comments in the code to reflect the changes made in the notification handling logic.
This commit is contained in:
@@ -216,9 +216,8 @@ class NotificationService:
|
||||
suspicious_input=hd.quote(suspicious_input),
|
||||
timestamp=datetime.now(timezone.utc).strftime("%Y-%m-%d %H:%M:%S %Z"))
|
||||
|
||||
# Send to log channel and admins
|
||||
# Send to log channel
|
||||
await self._send_to_log_channel(message)
|
||||
await self._send_to_admins(message)
|
||||
|
||||
async def send_custom_notification(self, message: str, to_admins: bool = False,
|
||||
to_log_channel: bool = True, thread_id: Optional[int] = None):
|
||||
|
||||
Reference in New Issue
Block a user