Skip to content

Commit

Permalink
added twilio healthcheck command
Browse files Browse the repository at this point in the history
  • Loading branch information
biagiodistefano committed Apr 24, 2024
1 parent e18a278 commit f0c63ab
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/api/management/commands/twilio_healthcheck.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import typing as t
from argparse import ArgumentParser

from django.core.management.base import BaseCommand

from api import settings
from api.messages import send_whatsapp_message


class Command(BaseCommand):
help = "Twilio healthcheck command."

def add_arguments(self, parser: ArgumentParser) -> None:
pass

def handle(self, *args: t.Any, **options: t.Any) -> None:
send_whatsapp_message(settings.MY_PHONE_NUMBER, "healthcheck")

0 comments on commit f0c63ab

Please sign in to comment.