This commit is contained in:
Athena Funderburg
2026-05-25 07:05:17 +00:00
commit 4b463a3432
682 changed files with 47796 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import asyncio, settings
from insclient.cmds import alert
async def main(emails: str):
message = input('Enter alert message: ').strip()
if not message:
print('Message is required.')
return
url = input('Enter a URL (or leave blank): ').strip() or ''
icon = input('Enter an icon URL (or leave blank): ').strip() or ''
targets = emails if emails.strip() and emails.strip() != '*' else 'all'
try:
await alert(message, b'AzuL-SERV', settings.INS_LINK_PASSWORD, url, icon, targets)
print("Operation successful!")
except Exception as e:
print("Operation failed:", e)
if __name__ == '__main__':
import sys
_, emails = sys.argv
asyncio.run(main(emails))