use async_trait::async_trait;
pub mod prelude {
pub use super::Plugin;
pub use crate::event::{Event, MessageEvent, NbEvent};
pub use crate::event::{SelfId, UserId};
pub use crate::message::Message;
pub use async_trait::async_trait;
pub use toml;
}
#[async_trait]
pub trait Plugin: std::fmt::Debug {
fn run(&self, event_receiver: crate::EventReceiver, bot_getter: crate::BotGetter);
fn plugin_name(&self) -> &'static str;
#[allow(unused_variables)]
async fn load_config(&mut self, config: toml::Value);
}