Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
discord.js-akinator
Advanced tools
A Discord.js v13 Module that allows you to Create an Akinator Command for Your Discord Bot within Seconds of Installation.
A Discord.js v13 Module that allows you to Create an Akinator Command for Your Discord Bot within Seconds of Installation.
🌎 100+ Languages Supported! | Lightning fast translation has been made possible by Google Translate and hard-coded mappings!
▶️ Buttons! | Don't want to type out responses to questions? This package gives you the option to use discord's buttons to easily click your answer of choice!
🎮 Multiple Game Types! | This package will allow you to choose whether Akinator will guess an Animal, Character or Object!
🙋 Child Mode! | Want to filter out NSFW questions? You can choose to enable Akinator's Child Mode to keep your games squeaky clean!
⚡️ Quick & Easy Setup | This package was built with the intentions of working out-of-the-box. Only one parameter is required at least!
Let's take a look at how you can install this package into your Discord Bot Project.
npm i discord.js-akinator --save
For versions 3.0.0 and Above, you'll also need discord.js v13. This can easily be installed with:
npm i discord.js@13 --save
For versions earlier than 3.0.0, you'll need discord.js v12. However it is recommended you update to patch bugs and security vulnerabilities, as well as get the newest features from this package!
npm i discord.js@12 --save
const { Client, Intents } = require("discord.js");
const akinator = require("discord.js-akinator");
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] });
client.on("ready", () => {
console.log("Bot is Online")
});
const PREFIX = "!";
//Example options
const language = "en"; //The Language of the Game
const childMode = false; //Whether to use Akinator's Child Mode
const gameType = "character"; //The Type of Akinator Game to Play. ("animal", "character" or "object")
const useButtons = true; //Whether to use Discord's Buttons
const embedColor = "#1F1E33"; //The Color of the Message Embeds
client.on("messageCreate", async message => {
if(message.content.startsWith(`${PREFIX}akinator`)) {
akinator(message, {
language: language, //Defaults to "en"
childMode: childMode, //Defaults to "false"
gameType: gameType, //Defaults to "character"
useButtons: useButtons, //Defaults to "false"
embedColor: embedColor //Defaults to "RANDOM"
});
}
});
client.login("Discord Bot Token")
ChaosArising (Josh_#9733) (Providing compatibility for Discord.js v13)
3061LRTAGSPKJMORMRT (Ashish#0540) (Error handling and writing much cleaner code)
👋 Need Help? Join Our Discord Server!
👾 Found a Bug, or Inaccurate Translations? Open an Issue, or Fork and Submit a Pull Request on our GitHub Repository!
FAQs
A Discord.js v14 module that allows you to create an Akinator command for your discord bot in a matter of seconds.
The npm package discord.js-akinator receives a total of 187 weekly downloads. As such, discord.js-akinator popularity was classified as not popular.
We found that discord.js-akinator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.