Skip to content

Commit

Permalink
Update gateway to accept message from channel
Browse files Browse the repository at this point in the history
  • Loading branch information
kasugamirai committed Aug 23, 2024
1 parent 981399c commit 2063a12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/bin/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ async fn main() {
load_environment_variables();

// Set the intents for the bot
let intents = GatewayIntents::GUILD_MESSAGES | GatewayIntents::DIRECT_MESSAGES;

let intents = GatewayIntents::GUILD_MESSAGES
| GatewayIntents::MESSAGE_CONTENT
| GatewayIntents::DIRECT_MESSAGES;
let handler_result = Handler::new(&get_env(
"OPENAI_API_KEY",
"Expected a OPEN AI key in the environment",
Expand Down
2 changes: 1 addition & 1 deletion src/discord/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async fn update_message_interval(
.edit_message(
&http,
processing_message.id,
EditMessage::new().content(&content),
EditMessage::new().content(content),
)
.await
{
Expand Down

0 comments on commit 2063a12

Please sign in to comment.