### Running an Aloha Discord Bot (Luau) Source: https://github.com/thegalaxydev/aloha/blob/main/README.md This code illustrates the basic setup for running an Aloha Discord bot. It initializes the bot with a token and optionally specifies intents, handling the WebSocket connection and other backend processes automatically. Users are cautioned not to share their bot token. ```Luau local Aloha = require("Aloha") local Enum = Aloha.Lib.Enum -- DO NOT SHARE YOUR BOT TOKEN WITH ANYONE! Aloha.Run("YOUR_BOT_TOKEN", Enum.INTENTS.DEFAULT) -- Run takes an optional second argument for intents. ``` -------------------------------- ### Handling Discord MESSAGE_CREATE Event with Aloha (Luau) Source: https://github.com/thegalaxydev/aloha/blob/main/README.md This snippet demonstrates how to listen for the 'MESSAGE_CREATE' event using Aloha's client. It shows how to access message content and reply to a message, with automatic parsing of Discord objects into Lua tables for easier access to properties like channel or guild. ```Luau local Aloha = require("Aloha") local Client = Aloha.Lib.Client Client.On("MESSAGE_CREATE", function(message) print(message.content) -- Messages are automatically parsed into a Lua table, and abstracted to make accessing the channel, guild, etc, easier! message:Reply("Hello!") end) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.