Feature-rich extendable revolt.js framework
const client = new CosmosClient();
client.on("ready", () => {
console.log(Logged in as ${client.user.username}
);
});
client.on("message", (message) => { if(message.content === "?ping") message.reply({ content: "Pong!" }); })
client.login(LOGIN_DETAILS);
* Typescript
```ts
import { CosmosClient } from "@cosmos-xyz/cosmos";
const client = new CosmosClient();
client.on("ready", () => {
console.log(`Logged in as ${client.user!.username}`);
});
client.on("message", (message) => {
if(message.content === "?ping") message.reply({ content: "Pong!" });
})
client.login(LOGIN_DETAILS);
@cosmos-xyz/cosmos
npm i @cosmos-xyz/cosmos
revolt.js
npm i revolt.js
Generated using TypeDoc