From 83205cdb00a5326ba71846ba2e19530703d422fa Mon Sep 17 00:00:00 2001 From: swag Date: Thu, 21 Jul 2022 23:45:03 -0400 Subject: [PATCH] Added webhook URL dotfiles and module for the webhook requests --- .tom.url | 1 + cpanfile | 1 + example.tom.url | 1 + guestbook-ng.pl | 1 + 4 files changed, 4 insertions(+) create mode 100644 .tom.url create mode 100644 example.tom.url diff --git a/.tom.url b/.tom.url new file mode 100644 index 0000000..15df21b --- /dev/null +++ b/.tom.url @@ -0,0 +1 @@ +https://discord.com/api/webhooks/713532266986602617/JE-RZGCxIM-iVTxujoV-9lmlPlHGA5F_Rf8FcK6Hf6gF_PSDkDlqFQUT8rniNQQ6nfxz diff --git a/cpanfile b/cpanfile index eed466f..f63acb4 100644 --- a/cpanfile +++ b/cpanfile @@ -8,3 +8,4 @@ requires 'Mojolicious::Plugin::AssetPack'; requires 'Regexp::Common::URI'; requires 'CSS::Minifier::XS'; requires 'Number::Format'; +requires WebService::Discord::Webhook; diff --git a/example.tom.url b/example.tom.url new file mode 100644 index 0000000..0503619 --- /dev/null +++ b/example.tom.url @@ -0,0 +1 @@ +https://webhook.url.here/1337 diff --git a/guestbook-ng.pl b/guestbook-ng.pl index 3bf9f3c..4bc21f1 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -8,6 +8,7 @@ use Mojo::Pg; use List::Util qw{shuffle}; use Regexp::Common qw{URI}; use Number::Format qw{format_number}; +use WebService::Discord::Webhook; #use Data::Dumper; # Uncomment for debugging # Load the model