Skip to content

minesa-time/blehh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blehhh

Blehh

blehh, the discord framework.


Setup

// 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!`);
});