# @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/)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://m3rcena.gitbook.io/m3rcena-weky/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
