Added repo module

This commit is contained in:
2024-03-27 22:02:10 -07:00
parent 42adfaac0f
commit bee5ba16e9
3 changed files with 17 additions and 4 deletions

12
src/modules/repo.rs Normal file
View File

@@ -0,0 +1,12 @@
use irc::proto::Message;
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 fn link(_: regex::Captures, _: &Message, _: &VecDeque<Message>) -> String {
format!("{}\r\nPRs are always welcome!", REPO_LINK)
}