Files
discord-bot/src/Bootstrap/Discord.php
Berg János 779f483972
All checks were successful
Build docker image / build_docker_image (push) Successful in 27s
# Testing intents.
2025-06-02 10:28:31 +02:00

31 lines
710 B
PHP

<?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(),
//'intents' => Intents::DIRECT_MESSAGES,
//'intents' => 2147486720,
'intents' => 53608447,
]);
require_once BOT_ROOT . '/Bootstrap/Events.php';
d()->on('init', static function (Discord $discord) {
debug('Bootstrapping Commands...');
require_once BOT_ROOT . '/Bootstrap/Commands.php';
});