We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02d2fdd commit 5528078Copy full SHA for 5528078
1 file changed
src/main.rs
@@ -15,6 +15,7 @@
15
use crate::logger::LOGGER;
16
use colored::Colorize;
17
use config::Config;
18
+use reqwest::Client;
19
use std::env;
20
use std::fs::{create_dir_all, File};
21
use std::io::{Read, Write};
@@ -40,13 +41,11 @@ async fn main() {
40
41
LOGGER.executing("Starting bot...");
42
let teloxide_bot = Bot::new(token);
43
- let db = Arc::new(connect_to_db().await);
44
-
45
- db.init().await.expect("Database initialization failed");
+ let client = Client::new();
46
47
// start bot
48
LOGGER.success("Bot started successfully!");
49
- bot::start(teloxide_bot, Arc::clone(&db)).await;
+ bot::start(teloxide_bot, Arc::new(client)).await;
50
}
51
52
fn fetch_token() -> Result<String, Err<String>> {
0 commit comments