master
gallant 4 months ago
parent 2642f6111f
commit 4c660c7e77
  1. 2
      sample_uberbot.toml
  2. 3
      src/commands/pkg.rs

@ -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

@ -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

Loading…
Cancel
Save