! Published.
All checks were successful
Build the "latest" docker image / build_docker_image (push) Successful in 26s
Build docker image / build_docker_image (push) Successful in 28s

This commit is contained in:
2025-05-03 11:09:41 +02:00
commit 19dea8f983
82 changed files with 14408 additions and 0 deletions

27
src/Bootstrap/Discord.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
use Core\Env;
use Discord\Discord;
use Discord\WebSockets\Intents;
use Bot\DiscordBot;
use Services\ReminderService;
use function Core\debug;
use function Core\discord as d;
Env::get()->remainderService = new ReminderService();
Env::get()->bot = DiscordBot::getInstance();
Env::get()->discord = new Discord([
'token' => Env::get()->TOKEN,
'intents' => Intents::getAllIntents(),
]);
require_once BOT_ROOT . '/Bootstrap/Events.php';
d()->on('init', static function (Discord $discord) {
debug('Bootstrapping Commands...');
require_once BOT_ROOT . '/Bootstrap/Commands.php';
});