summaryrefslogtreecommitdiff
path: root/crates/bot
diff options
context:
space:
mode:
Diffstat (limited to 'crates/bot')
-rw-r--r--crates/bot/Cargo.toml26
-rw-r--r--crates/bot/src/main.rs10
2 files changed, 36 insertions, 0 deletions
diff --git a/crates/bot/Cargo.toml b/crates/bot/Cargo.toml
new file mode 100644
index 0000000..c56fc52
--- /dev/null
+++ b/crates/bot/Cargo.toml
@@ -0,0 +1,26 @@
+[package]
+name = "nixpkgs-tracker-bot"
+version = "0.2.0"
+edition = "2021"
+
+authors = ["seth <getchoo at tuta dot io>"]
+description = "A small Discord app that helps you track where nixpkgs PRs have reached"
+repository = "https://github.com/getchoo/nixpkgs-tracker-bot"
+
+[dependencies]
+bot-error = { workspace = true }
+bot-client = { workspace = true }
+dotenvy = "0.15.7"
+env_logger = "0.11.3"
+tokio = { workspace = true }
+
+[lints.rust]
+unsafe_code = "forbid"
+
+[lints.clippy]
+complexity = "warn"
+correctness = "deny"
+pedantic = "warn"
+perf = "warn"
+style = "warn"
+suspicious = "deny"
diff --git a/crates/bot/src/main.rs b/crates/bot/src/main.rs
new file mode 100644
index 0000000..390e79b
--- /dev/null
+++ b/crates/bot/src/main.rs
@@ -0,0 +1,10 @@
+#[tokio::main]
+async fn main() -> Result<(), bot_error::Error> {
+ dotenvy::dotenv().ok();
+ env_logger::try_init()?;
+
+ let mut client = bot_client::get().await?;
+ client.start().await?;
+
+ Ok(())
+}