1.0.2 ⢠Published 5 years ago
djs-aki v1.0.2
Welcome to Djs-Aki š
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
- Github: @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.