const { Client } = require("guilded.js");
// import { Client } from "guilded.js";
const client = new Client({ token: "TOKEN_HERE" });
client.on("ready", () => {
console.log(`Bot is successfully logged in`);
});
client.on("messageCreated", (message) => {
if (message.content === "poggers") {
return message.reply("test indeed");
}
});
client.login();
guilded.js
is a library written in TypeScript usable in either TypeScript or JavaScript projects. It provides structures, abstraction, and utilities for interaction between your bot and the Guilded API.
Recommended that you use node v18+
yarn create guilded-app <project-name>
pnpm create guilded-app <project-name>
npm init guilded-app <project-name>
npm install guilded.js
yarn add guilded.js
pnpm add guilded.js
Looking for all the Client events? See here
Documentation is viewable here: https://guilded.js.org
A general purpose guide is available here: https://guilded-js.gitbook.io/api-docs/
Please see the main README.md for info on how to contribute to this package or the other @guildedjs
packages.
-
Discord.js
- Inspiration and caching strategy
Licensed under the MIT License