@m3rcena/weky
v10.1.0
Published
A fun npm package to play games within Discord with buttons!
Downloads
1,097
Readme
Install
Latest stable Version: v10.1.0
npm install --save @m3rcena/weky
Documentation
Check out the Documentation
Used in:
Features
🧑 Beginner friendly
🎉 Easy to use
🔘 Discord Buttons
🤖 Supports Discord.js v14
✂ Fully Customizable
and much more!
Usage 📚
const { Client, GatewayIntentBits } = require("discord.js");
const { WekyManager }= require("@m3rcena/weky");
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
]
});
client.on("ready", async (cl) => {
console.log("Bot is ready");
client.wekyManager = new WekyManager(cl); // Initialize Weky Manager
});
client.on("messageCreate", async (message) => {
if (message.author.bot) return;
if (message.content === "w!calculator") {
client.wekyManager.createCalculator({
interaction: message,
client: client,
embed: {
color: "Blurple",
title: "Calculator | M3rcena Development",
timestamp: new Date(),
}
})
};
});
client.login('Your bot Token');
import { Client, GatewayIntentBits } from "discord.js";
import { WekyManager } from "@m3rcena/weky";
export interface ExtendedClient extends Client {
wekyManager: WekyManager;
};
const client = new Client({
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMessages,
GatewayIntentBits.MessageContent,
]
}) as ExtendedClient;
client.on("ready", async (cl) => {
console.log("Bot is ready");
client.wekyManager = new WekyManager(cl); // Initialize Weky Manager
});
client.on("messageCreate", async (message) => {
if (message.author.bot) return;
if (message.content === "w!calculator") {
client.wekyManager.createCalculator({
interaction: message,
client: client,
embed: {
color: "Blurple",
title: "Calculator | M3rcena Development",
}
})
};
});
client.login("Your bot token");
Result 📤
Contributing 🤝
- Contributions, issues and feature requests are welcome!
- Feel free to check issues page
Support ❔
Developers 👨💻
Contributors