better
This commit is contained in:
parent
2642f6111f
commit
4c660c7e77
|
@ -4,7 +4,7 @@ log_level = "debug" # optional, default: info
|
||||||
host = "karx.xyz"
|
host = "karx.xyz"
|
||||||
port = 6697
|
port = 6697
|
||||||
tls = true
|
tls = true
|
||||||
username = "uberbot"
|
username = "uberbot_knightly"
|
||||||
nickname = "amazingbot" # optional, default: same as username
|
nickname = "amazingbot" # optional, default: same as username
|
||||||
channels = ["#main", "#no-normies"]
|
channels = ["#main", "#no-normies"]
|
||||||
mode = "+B" # optional, default: none
|
mode = "+B" # optional, default: none
|
||||||
|
|
|
@ -20,7 +20,8 @@ impl Pkg {
|
||||||
impl Command for Pkg {
|
impl Command for Pkg {
|
||||||
async fn execute(&mut self, msg: Context<'_>) -> anyhow::Result<String> {
|
async fn execute(&mut self, msg: Context<'_>) -> anyhow::Result<String> {
|
||||||
let start = Pkg::new();
|
let start = Pkg::new();
|
||||||
let body = self.client
|
println!("{:?}",msg.content);
|
||||||
|
let body = start.client
|
||||||
.get(format!(
|
.get(format!(
|
||||||
"https://archlinux.org/packages/search/json/?name={:?}",
|
"https://archlinux.org/packages/search/json/?name={:?}",
|
||||||
msg.content
|
msg.content
|
||||||
|
|
Loading…
Reference in a new issue