Compare commits
3 Commits
72caa70606
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8f38c526cc | |||
| a28bbb777c | |||
| bd7aefd9bd |
976
Cargo.lock
generated
976
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -8,7 +8,8 @@ use robbit::{build_modules, handle};
|
|||||||
async fn main() -> Result<(), Error>{
|
async fn main() -> Result<(), Error>{
|
||||||
let max_len = 1000;
|
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?;
|
let mut client = Client::from_config(config).await?;
|
||||||
client.identify()?;
|
client.identify()?;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ use std::collections::VecDeque;
|
|||||||
pub const PATTERN: &str = "^\\$repo\\s*$";
|
pub const PATTERN: &str = "^\\$repo\\s*$";
|
||||||
pub const NAME: &str = "repo";
|
pub const NAME: &str = "repo";
|
||||||
pub const USAGE: &str = "Usage: $repo\r\nThis gives the link to the robbit 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 {
|
pub fn link(_: regex::Captures, _: &Message, _: &VecDeque<Message>) -> String {
|
||||||
format!("{}\r\nPRs are always welcome!", REPO_LINK)
|
format!("{}\r\nPRs are always welcome!", REPO_LINK)
|
||||||
|
|||||||
Reference in New Issue
Block a user