-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e18a278
commit f0c63ab
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |