mirror of
https://github.com/the-programmers-hangout/Hermes.git
synced 2026-09-07 23:45:26 +02:00
init
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Name
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value is the name of your application. This value is used when the
|
||||
| framework needs to place the application's name in a notification or
|
||||
| any other location as required by the application or its packages.
|
||||
|
|
||||
*/
|
||||
|
||||
'name' => env('APP_NAME', 'Laracord'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Version
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value determines the "version" your application is currently running
|
||||
| in. You may want to follow the "Semantic Versioning" - Given a version
|
||||
| number MAJOR.MINOR.PATCH when an update happens: https://semver.org.
|
||||
|
|
||||
*/
|
||||
|
||||
'version' => app('git.version'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Environment
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This value determines the "environment" your application is currently
|
||||
| running in. This may determine how you prefer to configure various
|
||||
| services the application utilizes. This can be overridden using
|
||||
| the global command line "--env" option when calling commands.
|
||||
|
|
||||
*/
|
||||
|
||||
'env' => env('APP_ENV', 'production'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Timezone
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the default timezone for your application, which
|
||||
| will be used by the PHP date and date-time functions. We have gone
|
||||
| ahead and set this to a sensible default for you out of the box.
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => env('APP_TIMEZONE', 'UTC'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Autoloaded Service Providers
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The service providers listed here will be automatically loaded on the
|
||||
| request to your application. Feel free to add your own services to
|
||||
| this array to grant expanded functionality to your applications.
|
||||
|
|
||||
*/
|
||||
|
||||
'providers' => [
|
||||
App\Providers\BotServiceProvider::class,
|
||||
],
|
||||
|
||||
];
|
||||
@@ -0,0 +1,184 @@
|
||||
<?php
|
||||
|
||||
use Discord\WebSockets\Intents;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Discord Bot Description
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the description of your Discord bot. This will be
|
||||
| used when the bot is mentioned in chat, or when you run the "servers"
|
||||
| command. Change this to anything you like.
|
||||
|
|
||||
*/
|
||||
|
||||
'description' => env('DISCORD_BOT_DESCRIPTION', 'The Laracord Discord Bot.'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Discord Token
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify your Discord bot token. You can find it under the
|
||||
| "Bot" section of your Discord application. Make sure to keep this
|
||||
| token private and never share it with anyone for security.
|
||||
|
|
||||
*/
|
||||
|
||||
'token' => env('DISCORD_TOKEN', ''),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Gateway Intents
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the gateway intents for your Discord bot. This
|
||||
| will tell Discord what events your bot should receive. Intents can be
|
||||
| enabled in the Discord developer application portal under:
|
||||
|
|
||||
| Settings > Bot > Privileged Gateway Intents
|
||||
|
|
||||
*/
|
||||
|
||||
'intents' => Intents::getDefaultIntents() | Intents::MESSAGE_CONTENT | Intents::GUILD_MEMBERS,
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Command Prefix
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the command prefix for the Discord bot. This
|
||||
| prefix will be used to distinguish commands from regular chat
|
||||
| messages. To use mentioning the bot as a prefix, use "@mention".
|
||||
| To use multiple prefixes, you may pass an array instead.
|
||||
|
|
||||
*/
|
||||
|
||||
'prefix' => env('DISCORD_COMMAND_PREFIX', '!'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Additional DiscordPHP Options
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify any additional options for the DiscordPHP client.
|
||||
| These options will be passed directly to the DiscordPHP client.
|
||||
|
|
||||
| For more information, see the DiscordPHP documentation:
|
||||
| ↪ <https://discord-php.github.io/DiscordPHP/#basics>
|
||||
|
|
||||
*/
|
||||
|
||||
'options' => [
|
||||
'loadAllMembers' => true,
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| HTTP Server
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| The Laracord HTTP server allows you to receive and respond to HTTP
|
||||
| requests from the bot at the specified address/port. This can be useful
|
||||
| for creating a RESTful API for your bot.
|
||||
|
|
||||
| The HTTP server is automatically started when a `routes.php` file is
|
||||
| present and contains valid routes. You can override this behavior by
|
||||
| setting this option to `false`.
|
||||
|
|
||||
*/
|
||||
|
||||
'http' => env('HTTP_SERVER', ':8080'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Timestamp Format
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify the timestamp format for the Discord bot. This
|
||||
| format will be used when formatting console output. You can set this
|
||||
| to `false` to disable timestamps.
|
||||
|
|
||||
*/
|
||||
|
||||
'timestamp' => 'h:i:s A',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Bot Admins
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may manually specify bot admins without using the User model.
|
||||
| These users will have access to all bot admin commands. User's must
|
||||
| be specified by their Discord user ID.
|
||||
|
|
||||
*/
|
||||
|
||||
'admins' => [
|
||||
//
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Additional Commands
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify any additional commands for the Discord bot. These
|
||||
| commands will be loaded in addition to the commands automatically loaded
|
||||
| in your project. By default, the Laracord-provided help command is
|
||||
| is registered here.
|
||||
|
|
||||
*/
|
||||
|
||||
'commands' => [
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Additional Context Menus
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify any additional context menus for the Discord bot.
|
||||
| These context menus will be loaded in addition to the context menus
|
||||
| automatically loaded in your project.
|
||||
|
|
||||
*/
|
||||
|
||||
'menus' => [
|
||||
//
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Additional Services
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify any additional services to run asynchronously
|
||||
| alongside the Discord bot. These services will be loaded in addition
|
||||
| to the services automatically loaded from your project.
|
||||
|
|
||||
*/
|
||||
|
||||
'services' => [
|
||||
//
|
||||
],
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Additional Events
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Here you may specify any additional events to listen for in your
|
||||
| Discord bot. These events will be registered in addition to the
|
||||
| events automatically registered from your project.
|
||||
|
|
||||
*/
|
||||
|
||||
'events' => [
|
||||
//
|
||||
],
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user