const { Client, Events } = require("@nerimity/nerimity.js");
const client = new Client();
client.on(Events.Ready, () => {
console.log(`Connected as ${client.user?.username}!`);
});
client.on(Events.MessageCreate, async (message) => {
if (message.user.id === client.user.id) return;
if (message.content === "!ping") {
const t0 = Date.now();
const reply = await message.reply("Pong!");
reply.edit(reply.content + ` (${Date.now() - t0}ms)`);
}
});
client.login("paste token here");
-
Notifications
You must be signed in to change notification settings - Fork 1
Nerimity/nerimity.js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Interact with the Nerimity API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published