2.2.6 • Published 5 years ago

@fizuku/discord.json v2.2.6

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

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

Authors

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!

2.2.6

5 years ago

2.2.1

5 years ago

2.2.5

5 years ago

2.2.0

5 years ago

2.0.1

5 years ago