This commit is contained in:
gallant 2022-08-06 18:26:44 -05:00
parent 2642f6111f
commit 4c660c7e77
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ log_level = "debug" # optional, default: info
host = "karx.xyz"
port = 6697
tls = true
username = "uberbot"
username = "uberbot_knightly"
nickname = "amazingbot" # optional, default: same as username
channels = ["#main", "#no-normies"]
mode = "+B" # optional, default: none

View File

@ -20,7 +20,8 @@ impl Pkg {
impl Command for Pkg {
async fn execute(&mut self, msg: Context<'_>) -> anyhow::Result<String> {
let start = Pkg::new();
let body = self.client
println!("{:?}",msg.content);
let body = start.client
.get(format!(
"https://archlinux.org/packages/search/json/?name={:?}",
msg.content