// Importing Blehh and ping
import { Blehh, ping } from "blehh";
// Defining blehh
const client = new Blehh({
intents: [
Intents.Guilds,
Intents.GuildMessages,
Intents.MessageContent
],
});
// When bot is ready, return this message on console
client.onReady("Bot is ready!");
// If user types “!ping” it calls ping function and returns ping
client.onMessage("!ping", async (message) => {
await message.reply(`${ping()}ms!`);
});
-
-
Notifications
You must be signed in to change notification settings - Fork 1
minesa-time/blehh
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Blehhh, the Discord.js framework
Topics
Resources
Stars
Watchers
Forks
Packages 0
No packages published