Compare commits

...

3 Commits

Author SHA1 Message Date
8f38c526cc Make the config file path addressible via env var 2026-05-29 16:47:49 -04:00
a28bbb777c Cargo update 2026-05-29 10:23:21 -04:00
bd7aefd9bd Update robbit link 2026-05-27 01:13:44 -04:00
3 changed files with 476 additions and 505 deletions

976
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -8,7 +8,8 @@ use robbit::{build_modules, handle};
async fn main() -> Result<(), Error>{
let max_len = 1000;
let config = Config::load("config.toml")?;
let config_file = std::env::var("ROBBIT_CONFIG_PATH").unwrap_or("/etc/robbit/config.toml".to_string());
let config = Config::load(config_file)?;
let mut client = Client::from_config(config).await?;
client.identify()?;

View File

@@ -5,7 +5,7 @@ use std::collections::VecDeque;
pub const PATTERN: &str = "^\\$repo\\s*$";
pub const NAME: &str = "repo";
pub const USAGE: &str = "Usage: $repo\r\nThis gives the link to the robbit repo";
pub const REPO_LINK: &str = "https://github.com/ColinMcKechney/robbit.git";
pub const REPO_LINK: &str = "https://git.mckechney.us/l3gion/robbit.git";
pub fn link(_: regex::Captures, _: &Message, _: &VecDeque<Message>) -> String {
format!("{}\r\nPRs are always welcome!", REPO_LINK)