Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyteon committed Nov 11, 2024
1 parent d999df3 commit 945758a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ gleam add discord_gleam
import discord_gleam
import discord_gleam/event_handler
import discord_gleam/types/message
import discord_gleam/discord/intents
import gleam/list
import gleam/string
import logging
Expand All @@ -19,7 +20,7 @@ pub fn main() {
logging.configure()
logging.set_level(logging.Info)
let bot = discord_gleam.bot("YOUR TOKEN")
let bot = discord_gleam.bot("YOUR TOKEN", intents.Intents(message_content: True, guild_messages: True))
discord_gleam.run(bot, [event_handler])
}
Expand Down
1 change: 0 additions & 1 deletion test/example_bot.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import bravo/uset
import discord_gleam
import discord_gleam/discord/intents
import discord_gleam/event_handler
import discord_gleam/types/bot
import discord_gleam/types/message
import discord_gleam/types/slash_command
import gleam/list
Expand Down

0 comments on commit 945758a

Please sign in to comment.