https://github.com/dismord/dismord
Dismord is a simple but awesome NodeJs build tool
https://github.com/dismord/dismord
bot client dc discord discordbot discordclient discordjs js node
Last synced: 3 months ago
JSON representation
Dismord is a simple but awesome NodeJs build tool
- Host: GitHub
- URL: https://github.com/dismord/dismord
- Owner: dismord
- Created: 2022-10-01T11:41:18.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T01:15:45.000Z (over 3 years ago)
- Last Synced: 2025-11-23T23:12:45.648Z (7 months ago)
- Topics: bot, client, dc, discord, discordbot, discordclient, discordjs, js, node
- Language: JavaScript
- Homepage: https://dismord.js.org
- Size: 66.4 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About
```Dismord``` is a simple but awesome ```NodeJs``` build tool.
It can help you create a ```DiscordJs``` project quickly and faster.
## Installation
With ```npm```:
```powershell
$ npm create dismord
```
With ```yarn```:
```powershell
$ yarn create dismord
```
With ```pnpm```:
```powershell
$ pnpm create dismord
```
## Usage
### Init
Install and answer the questions at the terminal.
Change the path to your project:
```powershell
$ cd PROJECTPATH
```
Install the packages your project needs:
```powershell
$ npm install
```
Enter bot ```ID``` and ```TOKEN``` in ```.env``` file:
```env
ID=123456789012345678
TOKEN=IWILLNERVERSHOWYOUMYTOKENLOL
```
Run your bot:
```powershell
$ npm run bot
```
### Add Command
Create ```myname.js``` file in ```cmds``` folder.
Require ```slashCommandBuilder```:
```javascript
// 13.6.0
const { SlashCommandBuilder } = require('@discordjs/builders');
// 14.4.0
const { SlashCommandBuilder } = require('discord.js');
```
Add ```module.exports```:
```javascript
// 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```:
```javascript
// 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```:
```javascript
// 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:
```javascript
// 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.