Temporarily disable modules that no longer work.
This commit is contained in:
parent
ae9945403f
commit
496ba89d94
13
Cargo.toml
13
Cargo.toml
@ -5,7 +5,8 @@ authors=["Adrian Malacoda <adrian.malacoda@monarch-pass.net>"]
|
||||
|
||||
[dependencies]
|
||||
hlua = "0.4.1"
|
||||
discord = { git = "https://github.com/tinaun/discord-rs", branch = "async_internals" }
|
||||
#discord = { git = "https://github.com/tinaun/discord-rs", branch = "async_internals" }
|
||||
#discord = "0.8.1"
|
||||
toml = "0.4.5"
|
||||
crossbeam = "0.3.2"
|
||||
rand = "0.4.2"
|
||||
@ -18,8 +19,8 @@ multimap = "0.4.0"
|
||||
notify = "4.0.0"
|
||||
irc = "0.13.5"
|
||||
thread_local = "0.3"
|
||||
pvn = { git = "https://gitlab.monarch-pass.net/malacoda/pvn.git" }
|
||||
echobox = { git = "https://gitlab.monarch-pass.net/malacoda/echobox.git" }
|
||||
stc = { git = "https://gitlab.monarch-pass.net/malacoda/stc.git" }
|
||||
i-can-has-cat = { git = "https://gitlab.monarch-pass.net/malacoda/i-can-has-cat.git" }
|
||||
wow-such-doge = { git = "https://gitlab.monarch-pass.net/malacoda/wow-such-doge.git" }
|
||||
pvn = { git = "https://forge.ds8.zone/beyond/pvn.git" }
|
||||
echobox = { git = "https://forge.ds8.zone/beyond/echobox.git" }
|
||||
stc = { git = "https://forge.ds8.zone/beyond/stc.git" }
|
||||
#i-can-has-cat = { git = "https://forge.ds8.zone/beyond/i-can-has-cat.git" }
|
||||
#wow-such-doge = { git = "https://forge.ds8.zone/beyond/wow-such-doge.git" }
|
||||
|
0
lua/dailies.lua
Normal file → Executable file
0
lua/dailies.lua
Normal file → Executable file
0
src/event/filter.rs
Normal file → Executable file
0
src/event/filter.rs
Normal file → Executable file
0
src/event/mod.rs
Normal file → Executable file
0
src/event/mod.rs
Normal file → Executable file
0
src/helpers/command.rs
Normal file → Executable file
0
src/helpers/command.rs
Normal file → Executable file
0
src/helpers/config.rs
Normal file → Executable file
0
src/helpers/config.rs
Normal file → Executable file
0
src/helpers/mod.rs
Normal file → Executable file
0
src/helpers/mod.rs
Normal file → Executable file
6
src/lib.rs
Normal file → Executable file
6
src/lib.rs
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
extern crate toml;
|
||||
extern crate crossbeam;
|
||||
extern crate discord;
|
||||
//extern crate discord;
|
||||
extern crate rand;
|
||||
extern crate pvn;
|
||||
extern crate echobox;
|
||||
@ -10,8 +10,8 @@ extern crate regex;
|
||||
extern crate multimap;
|
||||
extern crate irc;
|
||||
extern crate thread_local;
|
||||
extern crate i_can_has_cat;
|
||||
extern crate wow_such_doge;
|
||||
//extern crate i_can_has_cat;
|
||||
//extern crate wow_such_doge;
|
||||
|
||||
#[macro_use]
|
||||
extern crate hlua;
|
||||
|
0
src/main.rs
Normal file → Executable file
0
src/main.rs
Normal file → Executable file
10
src/modules/autolink.rs
Normal file → Executable file
10
src/modules/autolink.rs
Normal file → Executable file
@ -67,10 +67,8 @@ fn create_searcher (configuration: &Table) -> AggregateSearcher {
|
||||
}
|
||||
|
||||
fn print_mtg_card (card: &MtgCard, message: &Message) {
|
||||
if let Some(ref image_uris) = card.image_uris {
|
||||
if let Some(ref image_uri) = image_uris.get("normal") {
|
||||
message.reply(&format!("{}", image_uri));
|
||||
}
|
||||
if let Some(ref image_uri) = card.image_uris.get("normal") {
|
||||
message.reply(&format!("{}", image_uri));
|
||||
}
|
||||
|
||||
if let Some(ref cost) = card.mana_cost {
|
||||
@ -79,9 +77,7 @@ fn print_mtg_card (card: &MtgCard, message: &Message) {
|
||||
message.reply(&format!("**{}**", card.name));
|
||||
}
|
||||
|
||||
if let Some(ref typeline) = card.type_line {
|
||||
message.reply(&format!("**{}**", typeline));
|
||||
}
|
||||
message.reply(&format!("**{}**", card.type_line));
|
||||
|
||||
if let Some(ref rules) = card.oracle_text {
|
||||
message.reply(&format!("{}", rules));
|
||||
|
0
src/modules/cat.rs
Normal file → Executable file
0
src/modules/cat.rs
Normal file → Executable file
0
src/modules/discord.rs
Normal file → Executable file
0
src/modules/discord.rs
Normal file → Executable file
0
src/modules/dog.rs
Normal file → Executable file
0
src/modules/dog.rs
Normal file → Executable file
0
src/modules/echo.rs
Normal file → Executable file
0
src/modules/echo.rs
Normal file → Executable file
0
src/modules/echobox.rs
Normal file → Executable file
0
src/modules/echobox.rs
Normal file → Executable file
0
src/modules/irc.rs
Normal file → Executable file
0
src/modules/irc.rs
Normal file → Executable file
16
src/modules/loader.rs
Normal file → Executable file
16
src/modules/loader.rs
Normal file → Executable file
@ -5,18 +5,18 @@ use std::fmt;
|
||||
use toml::value::Table;
|
||||
|
||||
use modules::{Module, EventLoop};
|
||||
use modules::discord::DiscordModule;
|
||||
//use modules::discord::DiscordModule;
|
||||
use modules::lua::LuaModule;
|
||||
use modules::stdin::StdinModule;
|
||||
use modules::echo::EchoModule;
|
||||
use modules::random::RandomModule;
|
||||
use modules::pvn::PvnModule;
|
||||
//use modules::pvn::PvnModule;
|
||||
use modules::echobox::EchoboxModule;
|
||||
use modules::autolink::AutolinkModule;
|
||||
use modules::logger::LoggerModule;
|
||||
use modules::irc::IrcHandler;
|
||||
use modules::dog::DogModule;
|
||||
use modules::cat::CatModule;
|
||||
//use modules::dog::DogModule;
|
||||
//use modules::cat::CatModule;
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
@ -27,18 +27,18 @@ pub struct ModuleLoader {
|
||||
impl ModuleLoader {
|
||||
pub fn new () -> ModuleLoader {
|
||||
let mut types = BTreeMap::new();
|
||||
types.insert("discord", DiscordModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
//types.insert("discord", DiscordModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("lua", LuaModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("stdin", StdinModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("echo", EchoModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("random", RandomModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("pvn", PvnModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
//types.insert("pvn", PvnModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("echobox", EchoboxModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("autolink", AutolinkModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("logger", LoggerModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("irc", IrcHandler::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("cat", CatModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
types.insert("dog", DogModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
//types.insert("cat", CatModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
//types.insert("dog", DogModule::new as fn(&Table, &Table) -> Box<EventLoop>);
|
||||
ModuleLoader {
|
||||
types: types
|
||||
}
|
||||
|
0
src/modules/logger.rs
Normal file → Executable file
0
src/modules/logger.rs
Normal file → Executable file
0
src/modules/lua.rs
Normal file → Executable file
0
src/modules/lua.rs
Normal file → Executable file
8
src/modules/mod.rs
Normal file → Executable file
8
src/modules/mod.rs
Normal file → Executable file
@ -1,15 +1,15 @@
|
||||
pub mod lua;
|
||||
pub mod discord;
|
||||
//pub mod discord;
|
||||
pub mod stdin;
|
||||
pub mod echo;
|
||||
pub mod random;
|
||||
pub mod pvn;
|
||||
//pub mod pvn;
|
||||
pub mod echobox;
|
||||
pub mod autolink;
|
||||
pub mod logger;
|
||||
pub mod irc;
|
||||
pub mod cat;
|
||||
pub mod dog;
|
||||
//pub mod cat;
|
||||
//pub mod dog;
|
||||
|
||||
pub mod loader;
|
||||
|
||||
|
0
src/modules/pvn.rs
Normal file → Executable file
0
src/modules/pvn.rs
Normal file → Executable file
0
src/modules/random.rs
Normal file → Executable file
0
src/modules/random.rs
Normal file → Executable file
0
src/modules/stdin.rs
Normal file → Executable file
0
src/modules/stdin.rs
Normal file → Executable file
0
tenquestionmarks.toml
Normal file → Executable file
0
tenquestionmarks.toml
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user