Remove NetNeutralityBot placeholder.
This commit is contained in:
1 parent
ffb1095f23
commit
9f2e15a622
4 files changed
+5
-28
No files matched your search
@@ -106,7 +106,6 @@ me.bobert.netneutrality
|
|||||||
| `framework/command/` | `core/command/` |
|
| `framework/command/` | `core/command/` |
|
||||||
| `framework/context/` | `core/context/` |
|
| `framework/context/` | `core/context/` |
|
||||||
| `framework/task/` | `core/tasks/` |
|
| `framework/task/` | `core/tasks/` |
|
||||||
| `framework/NetNeutralityBot.java` | remove or merge into App |
|
|
||||||
| `platform/config/Settings.java` | `utils/Settings.java` |
|
| `platform/config/Settings.java` | `utils/Settings.java` |
|
||||||
| `platform/persistence/*` | `db/` (SessionManager, DatabaseMigration, JpaUtils, Repository) |
|
| `platform/persistence/*` | `db/` (SessionManager, DatabaseMigration, JpaUtils, Repository) |
|
||||||
| `platform/concurrency/*` | `core/thread/` |
|
| `platform/concurrency/*` | `core/thread/` |
|
||||||
@@ -171,7 +170,6 @@ The `framework/` package is renamed back to `core/` with its original subpackage
|
|||||||
- Move `framework/command/` → `core/command/` (all engine classes: Command, CommandProcessor, CommandRegistry, CommandManager, CommandCategory, CommandContainer, CommandExecutionResult, CommandOptionsBuilder, impl/, options/)
|
- Move `framework/command/` → `core/command/` (all engine classes: Command, CommandProcessor, CommandRegistry, CommandManager, CommandCategory, CommandContainer, CommandExecutionResult, CommandOptionsBuilder, impl/, options/)
|
||||||
- Move `framework/context/` → `core/context/` (Context, AbstractContext, CommandContext, TaskContext, InteractionContext, MessageContext, NoMessageContext, AsyncContext)
|
- Move `framework/context/` → `core/context/` (Context, AbstractContext, CommandContext, TaskContext, InteractionContext, MessageContext, NoMessageContext, AsyncContext)
|
||||||
- Move `framework/task/` → `core/tasks/` (Task, TaskManager interface + impl, StepTask, PersistableTask, BuiltInTask, ScheduledTask, TaskCleanup, persistence/, trait/, impl/, generic/)
|
- Move `framework/task/` → `core/tasks/` (Task, TaskManager interface + impl, StepTask, PersistableTask, BuiltInTask, ScheduledTask, TaskCleanup, persistence/, trait/, impl/, generic/)
|
||||||
- Move `framework/NetNeutralityBot.java` into `core/` or merge into App if it's just a shell
|
|
||||||
- Move `platform/logging/LogHandler.java` → `core/LogHandler.java`
|
- Move `platform/logging/LogHandler.java` → `core/LogHandler.java`
|
||||||
- Move `platform/concurrency/*` → `core/thread/` (ThreadManager/ExecutorProvider, ScheduledTaskManager, BaseThreadFactory)
|
- Move `platform/concurrency/*` → `core/thread/` (ThreadManager/ExecutorProvider, ScheduledTaskManager, BaseThreadFactory)
|
||||||
- Update all imports; verify build with `./mvnw compile`
|
- Update all imports; verify build with `./mvnw compile`
|
||||||
|
|||||||
@@ -140,14 +140,14 @@ block the others. Effectively this means:
|
|||||||
## Package map
|
## Package map
|
||||||
|
|
||||||
| Package | Contents |
|
| Package | Contents |
|
||||||
|---|---|
|
|---------------------------------------------------|---------------------------------------------------------------------------------------------------------|
|
||||||
| `me.bobert.netneutrality` | Entry point (`App`) |
|
| `me.bobert.netneutrality` | Entry point (`App`) |
|
||||||
| `…bootstrap` | `ApplicationContext`, `Lifecycle`, `BotState`, `ReflectionHelper` |
|
| `…bootstrap` | `ApplicationContext`, `Lifecycle`, `BotState`, `ReflectionHelper` |
|
||||||
| `…core.command` | Command engine (registry, processor, manager, options, impl bases) |
|
| `…core.command` | Command engine (registry, processor, manager, options, impl bases) |
|
||||||
| `…core.context` | Context interfaces, abstract bases (`CommandContext`, `TaskContext`, etc.) |
|
| `…core.context` | Context interfaces, abstract bases (`CommandContext`, `TaskContext`, etc.) |
|
||||||
| `…core.tasks` | Task engine (manager, subtypes, traits, persistence, generic buttons) |
|
| `…core.tasks` | Task engine (manager, subtypes, traits, persistence, generic buttons) |
|
||||||
| `…core.thread` | Executors & scheduling (`ThreadManager`, `ScheduledTaskManager`, `BaseThreadFactory`) |
|
| `…core.thread` | Executors & scheduling (`ThreadManager`, `ScheduledTaskManager`, `BaseThreadFactory`) |
|
||||||
| `…core` | `LogHandler`, `NetNeutralityBot` |
|
| `…core` | `LogHandler` |
|
||||||
| `…command.*` | Concrete command implementations (`admin`, `basic`, `bot`, `crypto`, `custom`, `git`, `music`, `react`) |
|
| `…command.*` | Concrete command implementations (`admin`, `basic`, `bot`, `crypto`, `custom`, `git`, `music`, `react`) |
|
||||||
| `…context.command` / `…context.tasks` | Concrete context implementations (slash, message, button, modal, emoji, etc.) |
|
| `…context.command` / `…context.tasks` | Concrete context implementations (slash, message, button, modal, emoji, etc.) |
|
||||||
| `…context` | `MusicChannelContext` |
|
| `…context` | `MusicChannelContext` |
|
||||||
|
|||||||
@@ -8,11 +8,10 @@ error tracking, the shared utility helpers, and the custom exception hierarchy.
|
|||||||
**Package:** `me.bobert.netneutrality` / `me.bobert.netneutrality.bootstrap`
|
**Package:** `me.bobert.netneutrality` / `me.bobert.netneutrality.bootstrap`
|
||||||
|
|
||||||
| Class | Role |
|
| Class | Role |
|
||||||
|---|---|
|
|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| `App` | The application: holds the process instance and the `JDA` handle, builds the `ApplicationContext`, runs `context.start()` / `context.stop()`, and is the JAR main class (`main()`). See [architecture.md](architecture.md). |
|
| `App` | The application: holds the process instance and the `JDA` handle, builds the `ApplicationContext`, runs `context.start()` / `context.stop()`, and is the JAR main class (`main()`). See [architecture.md](architecture.md). |
|
||||||
| `bootstrap.ApplicationContext` | Hand-rolled container: `register(T)`, `get(Class<T>)`, ordered `start()` / `stop()` for `Lifecycle` components. |
|
| `bootstrap.ApplicationContext` | Hand-rolled container: `register(T)`, `get(Class<T>)`, ordered `start()` / `stop()` for `Lifecycle` components. |
|
||||||
| `bootstrap.Lifecycle` | Optional component contract: `start() throws Exception`, default `stop()`, default `priority()`. |
|
| `bootstrap.Lifecycle` | Optional component contract: `start() throws Exception`, default `stop()`, default `priority()`. |
|
||||||
| `NetNeutralityBot` | Currently an **empty placeholder** class under `framework` (reserved name; no logic yet). |
|
|
||||||
| `core.BotState` | Work-in-progress global state helper: exposes a `SAFE` flag and `dump()`, which serializes per-guild/music state to `state.json`. Bound to `GuildServiceProvider` / `MusicService` during bootstrap. |
|
| `core.BotState` | Work-in-progress global state helper: exposes a `SAFE` flag and `dump()`, which serializes per-guild/music state to `state.json`. Bound to `GuildServiceProvider` / `MusicService` during bootstrap. |
|
||||||
|
|
||||||
The full startup and shutdown sequences are documented in
|
The full startup and shutdown sequences are documented in
|
||||||
@@ -37,7 +36,7 @@ resolve via `context.get(type)` is preferred; otherwise the no-arg constructor i
|
|||||||
**Interfaces used for injection** (implemented by the concrete managers registered above):
|
**Interfaces used for injection** (implemented by the concrete managers registered above):
|
||||||
|
|
||||||
| Interface | Typical implementor |
|
| Interface | Typical implementor |
|
||||||
|---|---|
|
|-----------------------------------------|---------------------------------------|
|
||||||
| `platform.config.SettingsProvider` | `utils.Settings` |
|
| `platform.config.SettingsProvider` | `utils.Settings` |
|
||||||
| `platform.persistence.SessionProvider` | `core.db.SessionManager` |
|
| `platform.persistence.SessionProvider` | `core.db.SessionManager` |
|
||||||
| `platform.concurrency.ExecutorProvider` | `core.thread.ThreadManager` |
|
| `platform.concurrency.ExecutorProvider` | `core.thread.ThreadManager` |
|
||||||
@@ -76,7 +75,7 @@ file and overlays **environment variables** on top (environment variables win).
|
|||||||
An example configuration file is `bot.properties.example`. Key configuration values:
|
An example configuration file is `bot.properties.example`. Key configuration values:
|
||||||
|
|
||||||
| Key | Purpose |
|
| Key | Purpose |
|
||||||
|---|---|
|
|------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------|
|
||||||
| `NETNEUTRALITY_BOT_ENV` | `dev` / `prod`; controls debug logging and the Sentry environment. |
|
| `NETNEUTRALITY_BOT_ENV` | `dev` / `prod`; controls debug logging and the Sentry environment. |
|
||||||
| `NETNEUTRALITY_BOT_TOKEN` | Discord bot token (**required**). |
|
| `NETNEUTRALITY_BOT_TOKEN` | Discord bot token (**required**). |
|
||||||
| `NETNEUTRALITY_BOT_PREFIX` | Message-command prefix (default `$`). |
|
| `NETNEUTRALITY_BOT_PREFIX` | Message-command prefix (default `$`). |
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
package me.bobert.netneutrality.core;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Copyright (c) anthorob
|
|
||||||
*
|
|
||||||
* https://discord.gg/qUa6zNFZsd
|
|
||||||
*/
|
|
||||||
|
|
||||||
import me.bobert.netneutrality.bootstrap.Lifecycle;
|
|
||||||
|
|
||||||
public class NetNeutralityBot implements Lifecycle {
|
|
||||||
@Override
|
|
||||||
public void start() throws Exception {
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int priority() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user