aboutsummaryrefslogtreecommitdiff
path: root/examples/modules/mod.sloth
diff options
context:
space:
mode:
Diffstat (limited to 'examples/modules/mod.sloth')
-rw-r--r--examples/modules/mod.sloth15
1 files changed, 15 insertions, 0 deletions
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);