mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-19 09:05:59 -04:00
13 lines
363 B
JavaScript
13 lines
363 B
JavaScript
require("dotenv").config();
|
|
|
|
const { Client } = require(".");
|
|
|
|
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);
|