This Bot is a work in progress JavaScript version of our Python Bot Drippy. The Prefix is #
. Please remember NOT to import the node_modules
Folder and to REPLACE the token placeholder with your token. If you want to contribute to this project, just fork it. I'll take a look at it and implement good ideas into the project. Have fun with it! See the Drippy.JS Website.
For our commands, we use the callback
option rather than the execute
option. A command should ALWAYS look like this:
module.exports = {
name: String,
description: String,
options: [],
devOptions
callback: async (client, interaction) => {
// Code
},
};
Option | description |
---|---|
devOnly | When set to true , only registered developers can use this Command. More about registering here |
testOnly | When set to true , the Command can only be used on the test-Server. More about registering a test-Server here |
deleted | When set to true , the command gets removed from the active list without actually having to delete the source code |
When finished creating a command, just restart the bot. DO NOT CHANGE ANY CODE OTHER THAN CODE IN THE COMMAND FOLDER AND SELF-CREATED FOLDERS
Please remember that InteractionOptionTypes are no longer given through keywords but through numbers. Following is a list of the numbers and what they stand for:
1. SUB_COMMAND
2. SUB_COMMAND_GROUP
3. STRING
4. INTEGER
5. BOOLEAN
6. USER
7. CHANNEL
8. ROLE
9. MENTIONABLE
10. NUMBER
11. ATTACHMENT
As we installed mongoose as our Database, please contact ItIzYe to request a login. Models have to look like this:
const { Schema, model } = require('mongoose');
const PlaceholderConfigSchema = new Schema({
placeholder: {
type: String,
default: "Not important",
unique: true,
}
});
module.exports = model('PlaceholderConfigSchema', PlaceholderConfigSchema);
Default can also be an empty array []
. Also, the type can vary. You can update values separately via:
const newCustomId = new PlaceholderConfigSchema({
placeholder: new_status,
});
await PlaceholderConfigSchema.updateOne();
Please note that if you have command sections that include two or more commands (e.g. Bug: bug.js, bugconfig.js
which are concluded in src/commands/bugs
). This makes it easier for other devs to see through the structure of the bot.
To use Gifs, use "open image in new tab" then copy the link from the search bar.
Kick Command Ban Command Clear Command Info/Serverinfo Help Boost Automod Memberjoin/Guildjoin
Quiz Command
Channelset Command Help Command
Fix Errors in Quiz Command Complete Channelset Command Fix Help Command
Fix Errors in Clear Command Update Bug Command Create Suggestion Command
___ ___ ___ ___
| | | | \ \ / /
| | | | \ \ / /
| | | | \ \ / /
| | | | \ /
| | | | \ /
| | | | | |
| | | | | |
| | | | | |
|___| |___| |___|
© 2024 @IIY Development and Partners
Code can be used with
Credits