From a653a6602fe5ae5eb4739755db7b34bc92ecdadf Mon Sep 17 00:00:00 2001 From: Cody Date: Sun, 29 Jan 2023 20:58:04 -0600 Subject: More stuffs --- examples/modules/bot.sloth | 7 +++++++ examples/modules/mod.sloth | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 examples/modules/bot.sloth create mode 100644 examples/modules/mod.sloth (limited to 'examples/modules') 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); -- cgit v1.2.3