From e6b10ab44e57d8fb131d4cdc6079cecd3307ea11 Mon Sep 17 00:00:00 2001 From: miguel456 Date: Sun, 13 Mar 2022 16:25:46 +0000 Subject: [PATCH] feat: prepare discord channel --- .env.example | 4 ++++ config/app.php | 1 + config/services.php | 2 ++ 3 files changed, 7 insertions(+) diff --git a/.env.example b/.env.example index 42a7653..1836201 100755 --- a/.env.example +++ b/.env.example @@ -30,6 +30,10 @@ DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD= +# Bot token for the Discord notification integration. +# Create an application & bot here: https://discord.com/developers/applications +DISCORD_BOT_TOKEN= + RECAPTCHA_SITE_KEY= RECAPTCHA_PRIVATE_KEY= RECAPTCHA_VERIFY_URL="https://www.google.com/recaptcha/api/siteverify" diff --git a/config/app.php b/config/app.php index 86e1e75..9e7a632 100755 --- a/config/app.php +++ b/config/app.php @@ -261,6 +261,7 @@ return [ \App\Providers\OptionsProvider::class, App\Providers\DigitalStorageProvider::class, App\Providers\JSONProvider::class, + NotificationChannels\Discord\DiscordServiceProvider::class, ], diff --git a/config/services.php b/config/services.php index b897270..1f6ab63 100755 --- a/config/services.php +++ b/config/services.php @@ -38,6 +38,8 @@ return [ 'client_secret' => env('DISCORD_CLIENT_SECRET'), 'redirect' => env('DISCORD_REDIRECT_URI'), + 'token' => env('DISCORD_BOT_TOKEN'), + // optional 'allow_gif_avatars' => (bool)env('DISCORD_AVATAR_GIF', true), 'avatar_default_extension' => env('DISCORD_EXTENSION_DEFAULT', 'jpg'), // only pick from jpg, png, webp