Giter Site home page Giter Site logo

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.

Dismord's Projects

dismord icon dismord

Dismord is a simple but awesome NodeJs build tool

website icon website

Dismord is a simple but awesome NodeJs build tool

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.