Weky Logo
Strictly Typed. Crash Proof. Maintenance First.
The spiritual successor to the original `weky`, rewritten for modern bots.
The original weky library is legendary, but it is no longer maintained and breaks on Discord.js v14 due to changes in the Interaction API.
| Feature | โ Old weky |
โ @m3rcena/weky |
|---|---|---|
| Discord.js Support | v12 / v13 | v14 (Latest) |
| Type Safety | ๐ก๏ธ 100% Strict TypeScript | |
| Interaction Handling | โ Crashes often | โ Auto-detects Slash/Message |
| Maintenance | ๐ Abandoned | ๐ Active Development |
- Discord.js v14+ Native: Built specifically to handle the new
InteractionandButtonsystems without crashing. - Hybrid Context: One function works for both Slash Commands (
/) and Legacy Messages (!). - Zero "Any" Types: Full intellisense support in VS Code.
- Plug & Play: No complex setup or databases required.
- Fully Customizable: Change button styles, embed colors, texts, and timeouts.
npm install @m3rcena/weky # or yarn add @m3rcena/weky # or pnpm add @m3rcena/weky
import { Client, GatewayIntentBits } from "discord.js"; import { WekyManager } from "@m3rcena/weky"; const client = new Client({ intents: [ GatewayIntentBits.Guilds, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent ], }); client.on("ready", (c) => { console.log(`โ ${c.user.tag} is online!`); // Initialize Weky with your client client.wekyManager = new WekyManager(c); }); client.login("YOUR_BOT_TOKEN");
Our new context system automatically detects if the command was sent via Slash Command or standard message.
import { CommandInteraction, Message } from "discord.js"; // Inside your command handler export async function run(interaction: CommandInteraction | Message) { await client.wekyManager.createCalculator({ context: interaction, embed: { title: "Calculator | M3rcena", color: "Blurple", timestamp: new Date(), }, disabledQuery: "Calculator is disabled!", invalidQuery: "The provided equation is invalid!", othersMessage: "Only <@{{author}}> can use the buttons!", }); }
| Game | Function | Status |
|---|---|---|
| 2048 | create2048 |
โ Stable |
| Calculator | createCalculator |
โ Stable |
| Fight | createFight |
โ Stable |
| Guess The Number | createGuessTheNumber |
โ Stable |
| Will You Press? | createWillYouPressTheButton |
โ Stable |
| Snake | createSnake |
โ Stable |
| Rock Paper Scissors | createRPS |
โ Stable |
Tip: Games are fully interactive using Discord Buttons.
Need advanced customization? Check our full docs for button styling, custom messages, and timeout handling.
Found a bug? Have a game request? Join the support server.
Discord BannerMade with โค๏ธ in Greece