🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@fizuku/discord.json

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fizuku/discord.json

A discord.js module to create bots using JSON.

latest
npmnpm
Version
2.2.6
Version published
Maintainers
1
Created
Source

discord.json

A discord.js (v11.6.4) wrapper to let you code in JSON.

Getting Started

To use Discord.JSON, you can refer to the guides below. Discord.JSON uses Discord.JS v11.6.4 as of now.

Installing

Examples in installing discord.json and setting it up.

  • Creating index.json (or whatever name you want for the json file), it is the main JSON file.
{
  "config": {
      "disableEveryone": true, //recommended
      "prefix": "!",
      "token": "<your-token>"
  },
  "login": true, //Set it to true to log in the bot
  "message": {
      "options": {
          "allowBots": false, //recommended
          "allowDMs": false //recommended
      },
      "commands": {
            "ping" {
                "toEval": true, //If the 'send' option will be evaluated as a code
                "send": "'Pong! ' + ${bot.ping}"
            }
      }
  }
}
  • Creating start.js or any name you want for the js file (the main JS file)
const bot = require("@fizuku/discord.json");
  • And run the JSON file...
// You can opt logging the servers, users, etc.
bot.run("./index.json", { logging: true });

Deployment

npm install @fizuku/discord.json@2.0.1

Built With

  • Discord.JS - The main dependency

Authors

  • Fizx - Initial work - Fizuku

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Support

You can join our Discord server to seek help! FizxCreations. - the Discord server for all my creations!

Keywords

discord.json

FAQs

Package last updated on 26 Jul 2020

Did you know?

Socket

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.

Install

Related posts