Skip to content

waki285/Discord.js-Akinator-Package-Dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚠ This Package is Still in Development! (Find any bugs? Join Our Discord Server, link is at the bottom of this page!)

Discord.js Akinator

インストールして、数秒以内にはDiscord BotのAkinatorコマンドが作成できます。

UPDATE 2.1.0 - Now includes support for 10 new languages for questions, including French, German, Russian, Turkish and more! Update and use the new region parameter to try it out!

パッケージのインストール

このパッケージをDiscord Botにインストールする方法:

npm i discord.js-akinator-jp --save

サンプル

const discord = require("discord.js");
const akinator = require("discord.js-akinator");
const client = new Discord.Client();

const prefix = "!";

client.on("ready", () => {
    console.log("Discord Bot is active now")
});

client.on("message", async message => {
    if(message.content.startsWith(`${prefix}akinator`)) {
        akinator(message, client, "jp"); //日本語のアキネーター
    }
});

client.login("Discord Bot Token")

Special Thanks

  • Ashish#0540 (For error handling and writing much cleaner code. Thanks!)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%