All Projects → clqu → discord.js-v13-slash-bot

clqu / discord.js-v13-slash-bot

Licence: GPL-2.0 License
It is a discord (/) commands bot developed with Discord.js v13.

Programming Languages

javascript
184084 projects - #8 most used programming language
Batchfile
5799 projects
shell
77523 projects

Projects that are alternatives of or similar to discord.js-v13-slash-bot

op-mattermost
OpenProject and Mattermost integration
Stars: ✭ 19 (-24%)
Mutual labels:  slash-commands
dislash.py
A Python wrapper for discord slash-commands and buttons, designed to extend discord.py.
Stars: ✭ 172 (+588%)
Mutual labels:  slash-commands
REAPER-2.0
A multi-purpose discord bot made using Discord.js V13. Includes Logging, Welcomer, Slash Commands, Menu based Help Command and so much more!
Stars: ✭ 202 (+708%)
Mutual labels:  slash-commands
poise
Discord bot command framework for serenity, with advanced features like edit tracking and flexible argument parsing
Stars: ✭ 209 (+736%)
Mutual labels:  slash-commands
hikari
A Discord API wrapper for Python and asyncio built on good intentions.
Stars: ✭ 631 (+2424%)
Mutual labels:  slash-commands
DiscordBot-Template
A boilerplate / template for discord.js bots with 100% coverage of Discord API, command handler, error handler based on https://discordjs.guide/
Stars: ✭ 129 (+416%)
Mutual labels:  slash-commands
mammot
Discord bot Slash Command framework for TypeScript
Stars: ✭ 29 (+16%)
Mutual labels:  slash-commands
hikari-intro
An introduction to hikari, complete with different examples for different command handlers.
Stars: ✭ 17 (-32%)
Mutual labels:  slash-commands
slash-command
Simple slash command parsing.
Stars: ✭ 15 (-40%)
Mutual labels:  slash-commands
slash-level
✨ The first and only slash-command based Discord level bot ✨
Stars: ✭ 31 (+24%)
Mutual labels:  slash-commands
slshx
⚔️ Strongly-typed Discord commands on Cloudflare Workers
Stars: ✭ 163 (+552%)
Mutual labels:  slash-commands
zuly
🤖 | Hi, I'm zuly, a brazilian bot! Focused on animes!
Stars: ✭ 45 (+80%)
Mutual labels:  slash-commands
slack-ascii
ASCII Emoticons for Slack!
Stars: ✭ 15 (-40%)
Mutual labels:  slash-commands
Discord-Template-V13
An easy-to-use discord bot including database, slash commands and context menus !
Stars: ✭ 103 (+312%)
Mutual labels:  slash-commands
Discord-multipurpose-bot
A repository with JavaScript and Python versions of the same type of discord commands.
Stars: ✭ 27 (+8%)
Mutual labels:  slash-commands
discord-ext-slash
Support slash commands with an extension to Rapptz/discord.py
Stars: ✭ 18 (-28%)
Mutual labels:  slash-commands
Music-Slash-Bot
A music bot written in Discord.js and Distube using the slash command
Stars: ✭ 34 (+36%)
Mutual labels:  slash-commands
matterpoll-emoji
[DEPRECATED] Poll server for Mattermost
Stars: ✭ 38 (+52%)
Mutual labels:  slash-commands
discord.ts
🤖 Create your discord bot by using TypeScript and decorators!
Stars: ✭ 315 (+1160%)
Mutual labels:  slash-commands
slash-create
🗡️ Creator and handler for Discord's slash commands
Stars: ✭ 244 (+876%)
Mutual labels:  slash-commands

#Discord.js v13 Slash Bot
#Discord Server

🛠 Setup

  • Run the setup.bat file.
  • Wait until the process is finished.
  • Go to discord.dev page.
  • Create a bot.
  • Click on Bot on the left side.
  • Click Add Bot on the right.
  • Copy the bot's token.
  • Type the bot's token in the token field in config.json.
  • Finally open the run.bat file.

For Developers

Number Type
1 User
2 Role
3 Channel
4 String
5 Integer
6 Boolean
7 Mentionable

🔮 Example Command

module.exports = {
    name: "example",
    description: "qwe",
    options: [ // Types: 1, 2, 3, 4, 5, 6, 7
        { type: 1, name: 'user', description: 'Mention user.' },
        { type: 3, name: 'channel', description: 'Mention channel.' }
    ],
    run: async (client, interaction) => {
        /* 
            And I recommend using interaction.reply
            Because otherwise you will have to write a text to indicate who the message belongs to, 
            interaction.reply in slash commands will be best for you.
        */
        const channel = interaction.options.getChannel('channel');
        const user = interaction.options.getUser('user');
        /*
            interaction.options.get<optionType>('<optionName>');
        */
        if(channel) {
            await interaction.reply({ content: `${client.user.username} | ${channel.id}`, ephemeral: true  })
        }
        if(user) {
            await interaction.followUp({ content: `${client.user.username} | ${user.username}`, ephemeral: true  })
        }
        /*
            Why using followUp?
            > Because we can reply once in slash commands, but if we want 
            > to write more than one, we can provide multiple replies using followUp. 
            > But it is not a method that I highly recommend.
        */
    }
}

Star

  • Don't forget to star this repo for support :)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].