aboutsummaryrefslogtreecommitdiff
path: root/src/modules/commands/general/mod.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-10-26 19:03:53 -0700
committerFuwn <[email protected]>2020-10-26 19:03:53 -0700
commit9742614a1dc4699c1f2c69d923d402237672335d (patch)
treea49f7d834372f37cef06b30a28ff1b40bdfaa079 /src/modules/commands/general/mod.rs
parentCreate README.md (diff)
downloaddep-core-next-9742614a1dc4699c1f2c69d923d402237672335d.tar.xz
dep-core-next-9742614a1dc4699c1f2c69d923d402237672335d.zip
repo: push main from local to remote
Diffstat (limited to 'src/modules/commands/general/mod.rs')
-rw-r--r--src/modules/commands/general/mod.rs122
1 files changed, 122 insertions, 0 deletions
diff --git a/src/modules/commands/general/mod.rs b/src/modules/commands/general/mod.rs
new file mode 100644
index 0000000..acff760
--- /dev/null
+++ b/src/modules/commands/general/mod.rs
@@ -0,0 +1,122 @@
+pub mod misc;
+pub mod nsfw;
+// pub mod roles;
+// pub mod tags;
+pub mod fun;
+pub mod utilities;
+pub mod animals;
+
+use self::misc::*;
+use self::nsfw::*;
+// use self::roles::*;
+// use self::tags::*;
+use self::fun::*;
+use self::utilities::*;
+use self::animals::*;
+use serenity::framework::standard::CreateGroup;
+
+pub fn init_animals() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ // .cmd("bunny", Bunny) // TODO: Add bunny
+ .cmd("cat", Cat)
+ .cmd("dog", Dog)
+ .cmd("duck", Duck)
+ .cmd("fox", Fox)
+ .cmd("owl", Owl)
+ .cmd("uglycat", UglyCat)
+}
+
+pub fn init_anime() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ .cmd("anime", Anime)
+ .cmd("manga", Manga)
+ // .cmd("waifu", Waifu)
+}
+
+pub fn init_fun() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ .cmd("clapify", Clapify)
+ .cmd("joke", DadJoke)
+ // .cmd("opinion", Opinion)
+ .cmd("rate", Rate)
+ .cmd("urbandictionary", UrbanDictionary)
+ .cmd("f", PayRespects)
+ .cmd("8ball", EightBall)
+ .cmd("uwufy", Uwufy)
+ .cmd("yomomma", YoMomma)
+}
+
+/* pub fn init_misc() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+} */
+
+pub fn init_minigames() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ // .cmd("coinflip", CoinFlip)
+ .cmd("dice", Dice)
+ .cmd("russianroulette", RussianRoulette)
+}
+
+pub fn init_nsfw() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ .check(|_,message,_,_| {
+ if let Ok(channel) = message.channel_id.to_channel() {
+ if channel.is_nsfw() {
+ true
+ } else {
+ check_error!(message.channel_id.say("Woah there, you can only use this command in NSFW marked channels !"));
+ false
+ }
+ } else {
+ check_error!(message.channel_id.say("Weird, I can't get the channel information, I can't tell if it's NSFW."));
+ false
+ }})
+ .cmd("e621", Furry)
+}
+
+/* pub fn init_roles() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ .guild_only(true)
+ .cmd("role", AddSelfRole)
+ .cmd("derole", RemoveSelfRole)
+ .cmd("roles", ListSelfRoles)
+}
+
+pub fn init_tags() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ .guild_only(true)
+ .prefix("tag")
+ .default_cmd(TagSingle)
+ .cmd("show", TagSingle)
+ .cmd("add", TagAdd)
+ .cmd("del", TagRemove)
+ .cmd("edit", TagEdit)
+ .cmd("list", TagList)
+} */
+
+pub fn init_utilities() -> CreateGroup {
+ CreateGroup::default()
+ .help_available(true)
+ .cmd("id", UserId)
+ .cmd("membercount", MemberCount)
+ .cmd("pfp", PFP)
+ .cmd("ping", Ping)
+ .cmd("prefix", Prefix)
+ .cmd("remind", Reminder)
+ .cmd("role", RoleInfo)
+ .cmd("server", ServerInfo)
+ // .cmd("stats", Stats)
+ // .cmd("tags", TagList)
+ .cmd("time", Time)
+ .cmd("user", UserInfo)
+ // .cmd("weather", Weather)
+ .cmd("wisp", Wisp)
+}