Skip to content

Commit

Permalink
fix startup
Browse files Browse the repository at this point in the history
  • Loading branch information
AmaranthineCodices committed May 11, 2024
1 parent 219c6c4 commit 7493d19
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ fn main() -> Result<()> {
| Intents::GUILD_MESSAGE_REACTIONS
| Intents::MESSAGE_CONTENT;

let (shard, mut events) = Shard::builder(discord_token.clone(), intents).build();

tokio::runtime::Builder::new_multi_thread().enable_all().build().unwrap().block_on(async {

let (shard, mut events) = Shard::builder(discord_token.clone(), intents).build();
shard.start().await?;

let http = Arc::new(HttpClient::new(discord_token));
Expand Down

0 comments on commit 7493d19

Please sign in to comment.