1.0.2 • Published 5 years ago

djs-aki v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Welcome to Djs-Aki šŸ‘‹

Version Documentation Maintenance License: MIT

Discord.js akinator game!

šŸ  Homepage

Install

npm i djs-aki

Usage

const { Client } = require("discord.js");
const client = new Client();

const { AkiGame } = require("djs-aki");

client.login("YOUR_TOKEN_HERE");

client.on("ready", () => console.log("Ready!"));

client.on("message", msg => {
    if (msg.content === "!aki") {
        new AkiGame(msg)
            .setLanguage("en") // available language at: https://github.com/jgoralcz/aki-api/blob/develop/src/lib/constants/Client.js#L4
            .setTime(60000 * 6)
            .on("end", game => console.log(`${game.message.author.tag} is ${game.win ? "winner" : "loser"}.`))
            .on("start", game => console.log(`${game.message.author.tag} started a game.`))
            .run(); 
    }
});

Author

šŸ‘¤ https://github.com/TheMaestro0

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 https://github.com/TheMaestro0.

This project is MIT licensed.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago