Got play to work

This commit is contained in:
Benjamin Sherriff
2023-10-07 23:26:12 -04:00
parent 690a327084
commit 0ec6264bfa
5 changed files with 10 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ async fn main() -> std::io::Result<()> {
.event_handler(handler)
.framework(StandardFramework::new()
.configure(|c| c.owners(owners)))
.register_songbird()
.register_songbird_with(Arc::clone(&songbird))
.await
.expect("Error creating client");
@@ -116,7 +116,6 @@ async fn main() -> std::io::Result<()> {
.allow_any_header()
.max_age(3600);
App::new()
// .app_data(web::Data::new(Arc::clone(&http)))
.app_data(web::Data::new(Arc::clone(&app_data)))
.configure(crate::db::messages::init_routes)
.configure(crate::db::spells::init_routes)