> For the complete documentation index, see [llms.txt](https://m3rcena.gitbook.io/m3rcena-weky/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://m3rcena.gitbook.io/m3rcena-weky/readme.md).

# @m3rcena/weky

<div align="center"><img src="/files/x5BHDTvTTir3UwLMLthG" alt="" width="100"></div>

## Weky

A fun npm package to play games within Discord with buttons!

<br>

<img src="https://madewithlove.now.sh/gr?heart=true&#x26;template=for-the-badge" alt="Made with love in Greece" data-size="original"> ![Made with TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge\&logo=typescript\&logoColor=white)\
[![NPM version](https://img.shields.io/npm/v/%40m3rcena%2Fweky?maxAge=3600\&style=for-the-badge\&logo=npm\&logoColor=red) ](https://www.npmjs.com/package/@m3rcena/weky)[![NPM downloads](https://img.shields.io/npm/d18m/%40m3rcena%2Fweky?maxAge=3600\&style=for-the-badge\&logo=npm\&logoColor=red) ](https://www.npmjs.com/package/@m3rcena/weky)[![Get Started Now](https://img.shields.io/badge/Documation-%230288D1.svg?style=for-the-badge\&logo=gitbook\&logoColor=white)](https://m3rcena.gitbook.io/docs)\
[![npm install lavalink-client](https://nodei.co/npm/@m3rcena/weky.png?downloads=true\&stars=true)](https://www.npmjs.com/package/@m3rcena/weky)

\ <br>

## Install

Latest stable Version: **`v10.1.0`**

<details>

<summary>👉 via NPM</summary>

```bash
npm install --save @m3rcena/weky
```

</details>

## Documentation

Check out the [Documentation](https://m3rcena.gitbook.io/docs)

## Used in:

[![](https://discord.c99.nl/widget/theme-3/1068868597398650971.png)](https://discord.com/users/1068868597398650971/)

## Features

* 🧑 Beginner friendly
* 🎉 Easy to use
* 🔘 Discord Buttons
* 🤖 Supports Discord.js v14
* ✂ Fully Customizable
* and much more!

## Usage 📚

<details>

<summary>👉 CommonJS</summary>

```js
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');
```

</details>

<details>

<summary>👉 ESM (Module)</summary>

```ts
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");
```

</details>

## Result 📤

![](/files/3K4ZIM4bzgtG525eAnHP)

## Contributing 🤝

* Contributions, issues and feature requests are welcome!
* Feel free to check [issues page](https://github.com/M3rcena/m3rcena-weky/issues)

## Support ❔

## Developers 👨‍💻

[![](https://discord.c99.nl/widget/theme-3/682983233851228161.png)](https://discord.com/users/682983233851228161/)

## Contributors

[![](https://discord.c99.nl/widget/theme-3/498094279793704991.png)](https://discord.com/users/498094279793704991/)\
[![](https://discord.c99.nl/widget/theme-3/1139406664584409159.png)](https://discord.com/users/1139406664584409159/)\
[![](https://discord.c99.nl/widget/theme-3/1072592763427754034.png)](https://discord.com/users/1072592763427754034/)
