Solace.js
Solace.js is an alternative to eris and discord.js, a nodejs wrapper for interfacing with discord. Note: Still under development
Install / Use
/learn @solacejs/Solace.jsREADME
Solace.js
Solace.js is an alternative to eris and discord.js, a nodejs wrapper for interfacing with discord. The goal of solace.js is to make discord bot development faster. The project structure is sort of similar to discord.js making it easy to move to. With solace.js you can get work done in a faster way.
Installation
npm install solace.js
yarn add solace.js
pnpm add solace.js
Usage
import { Client, Event, GatewayIntents, Registry, SolaceIntents } from "solace.js";
import ReadyEvent from "./events/ReadyEvent";
import MessageCreateEvent from "./events/MessageCreateEvent";
/**
* You can use intent groups such as SolaceIntents or just use an array of GatewayIntents
**/
const client = new Client({ token: "BOT_TOKEN", intents: SolaceIntents.GENERAL });
const events: Event[] = [];
Registry.registerEvents(client, new ReadyEvent());
Registry.registerEvents(client, new MessageCreateEvent());
client.login();
Ready Event example
import { Client, Event } from "solace.js";
export default class ReadyEvent extends Event {
constructor() {
super("ready", true);
}
public async execute(client: Client) {
console.log(client.user!.username, "is online!");
}
}
MessageCreate Event Example
import { Client, Event, Message } from "solace.js";
export default class MessageCreateEvent extends Event {
constructor() {
super("messageCreate", false);
}
public async execute(client: Client, message: Message) {
console.log(message.content);
}
}
Issues
If something doesn’t work, please file an issue.
Branches and contributions
As this project is intended to be open source and free for everyone to use, feel free to contribute improvements.
If something can be improved, just create a branch from main and make a Pull Request with the suggestions.
Contributors
Meet the talented individuals who have contributed to Solace.js:
<a href="https://github.com/solacejs/solace.js/graphs/contributors"> <img src="https://contrib.rocks/image?repo=solacejs/solace.js" /> </a>Related Skills
gh-issues
348.5kFetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]
imsg
348.5kiMessage/SMS CLI for listing chats, history, and sending messages via Messages.app.
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
oracle
348.5kBest practices for using the oracle CLI (prompt + file bundling, engines, sessions, and file attachment patterns).
