22 lines
404 B
Rust
Raw Normal View History

use plugins::Plugin;
use toml::Table;
pub struct DiscordPlugin {
}
impl DiscordPlugin {
pub fn new (configuration: &Table) -> Box<Plugin> {
match configuration.get("channel") {
Some(channel) => println!("Using channel: {}", channel),
None => println!("No channel specified")
}
Box::new(DiscordPlugin {})
}
}
impl Plugin for DiscordPlugin {
}