better
This commit is contained in:
parent
2642f6111f
commit
4c660c7e77
|
@ -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…
Reference in New Issue