diff options
| author | Cody <cody@codyq.dev> | 2023-01-29 20:58:04 -0600 |
|---|---|---|
| committer | Cody <cody@codyq.dev> | 2023-01-29 20:58:04 -0600 |
| commit | a653a6602fe5ae5eb4739755db7b34bc92ecdadf (patch) | |
| tree | 2d99c570ccd77767e1d5fcf9b098d45c79cbe6e4 /examples/modules | |
| parent | b856e5c7226e71e500be5eff7079c5d3b0e9e2f4 (diff) | |
| download | sloth-a653a6602fe5ae5eb4739755db7b34bc92ecdadf.tar.gz | |
More stuffs
Diffstat (limited to 'examples/modules')
| -rw-r--r-- | examples/modules/bot.sloth | 7 | ||||
| -rw-r--r-- | examples/modules/mod.sloth | 15 |
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); |
