v0.3
This commit is contained in:
parent
982dd7df48
commit
1a3a2900ba
3 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "moover_rust"
|
name = "moover_rust"
|
||||||
version = "0.2.0"
|
version = "0.3.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -29,7 +29,7 @@ impl EventHandler for Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn ready(&self, ctx: Context, ready: Ready) {
|
async fn ready(&self, ctx: Context, ready: Ready) {
|
||||||
println!("{} v0.2 is connected!", ready.user.name);
|
println!("{} v0.3 is connected!", ready.user.name);
|
||||||
|
|
||||||
#[cfg(feature="RELEASE")] {
|
#[cfg(feature="RELEASE")] {
|
||||||
use util::debug::hello;
|
use util::debug::hello;
|
||||||
|
|
|
@ -120,7 +120,6 @@ impl Tenor {
|
||||||
|
|
||||||
let q: String = form_urlencoded::byte_serialize(query.as_bytes()).collect();
|
let q: String = form_urlencoded::byte_serialize(query.as_bytes()).collect();
|
||||||
|
|
||||||
// TODO encode query for urls (replace special characters and stuff)
|
|
||||||
let base_url = "https://tenor.googleapis.com/v2/search?";
|
let base_url = "https://tenor.googleapis.com/v2/search?";
|
||||||
let api_key = dotenv_var("TENORV2").context("TENORV2 key not found in the .env")?;
|
let api_key = dotenv_var("TENORV2").context("TENORV2 key not found in the .env")?;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue