mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 17:13:31 -04:00
13 lines
371 B
JavaScript
13 lines
371 B
JavaScript
import "dotenv/config";
|
|
|
|
import { Client } from "./lib/esm/index.js";
|
|
|
|
const client = new Client({ debug: true });
|
|
|
|
client.on("ready", () => console.info(`Logged in as ${client.user.username}!`));
|
|
client.on("disconnected", () => console.info("Disconnected."));
|
|
|
|
client.on("messageCreate", (message) => console.info(message.content));
|
|
|
|
client.loginBot(process.env.TOKEN);
|