# @purrkit/gateway ```ts import { Gateway } from "@purrkit/gateway"; const Intents = { GUILDS: 1 << 0, GUILD_MESSAGES: 1 << 9, MESSAGE_CONTENT: 1 << 15, }; const intents = Intents.GUILDS | Intents.GUILD_MESSAGES | Intents.MESSAGE_CONTENT; const gateway = Gateway({ token: "...", intents: intents, }); gateway.on("READY", (data) => { console.log(`logged in: ${data.user.username}`); // data: GatewayReadyDispatchData }); gateway.once("MESSAGE_CREATE", (message) => { console.log(`first message caught: ${message.content}`); // message: MessageResponse }); gateway.connect(); ```