Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mystic #6

Open
4n0nym0u58451 opened this issue Dec 27, 2024 · 0 comments
Open

Mystic #6

4n0nym0u58451 opened this issue Dec 27, 2024 · 0 comments

Comments

@4n0nym0u58451
Copy link

4n0nym0u58451 commented Dec 27, 2024

eaded83a8476e1247614aef281e3211f.jpg

from discord_webhook import DiscordWebhook

def send_messages(webhook_url, message, count):
for _ in range(count):
webhook = DiscordWebhook(url=webhook_url, content=message)
response = webhook.execute()
if response.status_code != 200:
print(f"Errore nell'invio del messaggio: {response.status_code}")
else:
print("Messaggio inviato con successo.")

def main():
while True:
print("MYSTIC")
print("1. Invia messaggi")
print("2. Esci")
choice = input("Scegli un'opzione: ")

    if choice == '1':
        webhook_url = input("Inserisci l'URL del webhook: ")
        message = input("Inserisci il messaggio da inviare: ")
        count = int(input("Quanti messaggi vuoi inviare? "))
        send_messages(webhook_url, message, count)
    elif choice == '2':
        print("Uscita dal tool.")
        break
    else:
        print("Opzione non valida. Riprova.")

if name == "main":
main()

@4n0nym0u58451 4n0nym0u58451 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2024
@4n0nym0u58451 4n0nym0u58451 reopened this Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant