mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
Composed framework (#43)
Composed poise and serenity into a composed framework. This will help the migration towards slash-commands in the future.
This commit is contained in:
parent
f3c062f417
commit
a2f0684509
6 changed files with 201 additions and 2 deletions
|
@ -33,6 +33,9 @@ pub mod table_format;
|
|||
/// The global app data.
|
||||
pub type AppData = Arc<RwLock<TypeMap>>;
|
||||
|
||||
/// The global context type for app commands
|
||||
pub type CmdContext<'a, Env> = poise::Context<'a, Env, anyhow::Error>;
|
||||
|
||||
/// The HTTP client.
|
||||
pub struct HTTPClient;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue