Skip to content
View dismord's full-sized avatar

Block or report dismord

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
dismord/README.md

About

Dismord is a simple but awesome NodeJs build tool.

It can help you create a DiscordJs project quickly and faster.

Installation

With npm:

$ npm create dismord

With yarn:

$ yarn create dismord

With pnpm:

$ pnpm create dismord

Usage

Init

Install and answer the questions at the terminal.

Change the path to your project:

$ cd PROJECTPATH

Install the packages your project needs:

$ npm install

Enter bot ID and TOKEN in .env file:

ID=123456789012345678
TOKEN=IWILLNERVERSHOWYOUMYTOKENLOL

Run your bot:

$ npm run bot

Add Command

Create myname.js file in cmds folder.

Require slashCommandBuilder:

// 13.6.0
const { SlashCommandBuilder } = require('@discordjs/builders');

// 14.4.0
const { SlashCommandBuilder } = require('discord.js');

Add module.exports:

// 13.6.0
const { SlashCommandBuilder } = require('@discordjs/builders');

// 14.4.0
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
	
};

Create a new slashCommandBuilder, then set its name and description:

// 13.6.0
const { SlashCommandBuilder } = require('@discordjs/builders');

// 14.4.0
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
	data: new SlashCommandBuilder().setName('myname').setDescription('what is my name')
};

Add an interaction:

// 13.6.0
const { SlashCommandBuilder } = require('@discordjs/builders');

// 14.4.0
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
	data: new SlashCommandBuilder().setName('myname').setDescription('what is my name'),
	async execute(interaction) {
		
	}
};

Reply the user.tag of asker:

// 13.6.0
const { SlashCommandBuilder } = require('@discordjs/builders');

// 14.4.0
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
	data: new SlashCommandBuilder().setName('myname').setDescription('what is my name'),
	async execute(interaction) {
		interaction.reply({ content: interaction.user.tag });
	}
};

Delete Command

You can just delete myname.js file in cmds folder.

Pinned Loading

  1. dismord dismord Public

    Dismord is a simple but awesome NodeJs build tool

    JavaScript 4 1