aboutsummaryrefslogtreecommitdiff
path: root/examples/modules
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modules')
-rw-r--r--examples/modules/bot.sloth7
-rw-r--r--examples/modules/mod.sloth15
2 files changed, 22 insertions, 0 deletions
diff --git a/examples/modules/bot.sloth b/examples/modules/bot.sloth
new file mode 100644
index 0000000..1355ddb
--- /dev/null
+++ b/examples/modules/bot.sloth
@@ -0,0 +1,7 @@
+use slowcord::DiscordBot;
+
+pub type Bot;
+
+impl DiscordBot for Bot {
+ # TODO:
+}
diff --git a/examples/modules/mod.sloth b/examples/modules/mod.sloth
new file mode 100644
index 0000000..75be7e1
--- /dev/null
+++ b/examples/modules/mod.sloth
@@ -0,0 +1,15 @@
+# Root module - Run this to start program
+
+pub use extern "logging";
+pub use extern "dotenv";
+pub use extern "slowcord";
+pub use extern "sqlite";
+
+use logging::LogLevel;
+use bot::Bot;
+
+logging::set_loglevel(LogLevel::WARN);
+
+val token = dotenv::get("TOKEN");
+val bot = Bot::new();
+bot.start(token);