This commit is contained in:
CorwinDev 2023-01-23 18:35:26 +01:00
commit a3340740f6
7 changed files with 38 additions and 50 deletions

View file

@ -22,7 +22,7 @@
<h3 align="center">Discord-Bot</h3>
<p align="center">
Discord-bot is a Advanced Multipurpose bot containing more than 400+ Commands. It can do Moderation, Tickets, Radio, Games, Giveaways, Customisation, Economy, Leveling, Invites, Messages, Utilities, Suggestions, Server Stats etc.
Discord-bot is a updated version of <a href="https://github.com/DotwoodMedia/Dbot">Dbot</a>, a advanced Discord multipurpose botcontaining more than 400+ Commands.<br> It can do Moderation, Tickets, Radio, Games, Giveaways, Customisation, Economy, Leveling, Invites, Messages, Utilities, Suggestions, Server Stats etc.<br> Unfortunately the owners stopped at the peak and decided to put the source online of which I made an updated version.
<br />
<br />
<a href="https://github.com/corwindev/discord-bot/issues">Report Bug</a>
@ -30,6 +30,15 @@
<a href="https://github.com/corwindev/discord-bot/issues">Request Feature</a>
</p>
</p>
<!-- NOTICE -->
### <img src="https://cdn.discordapp.com/emojis/1055803759831294013.png" width="20px" height="20px"> 》Notice
> You may not claim this as your own! The original source was created by [Dotwood Media](https://github.com/DotwoodMedia) and [Graphix Development](https://github.com/GraphixDevelopment). The source is modified and being updated by my(CorwinDev)
> Discord-Bot is a Multipurpose Discord bot base in [Discord.js](https://github.com/Discordjs/discordjs)
If you liked this repository, feel free to leave a star ⭐ to motivate me!
<!-- ABOUT THE PROJECT -->
## <img src="https://cdn.discordapp.com/emojis/859424401186095114.png" width="20px" height="20px">》Description
@ -84,11 +93,6 @@ To start your bot
```js
node src/index.js
```
### <img src="https://cdn.discordapp.com/emojis/1055803759831294013.png" width="20px" height="20px"> 》Notice
> You may not claim this as your own!! **Copyright to Graphix Development and CorwinDev**
> Discord-Bot is a Multipurpose Discord bot base in [Discord.js](https://github.com/Discordjs/discordjs)
If you liked this repository, feel free to leave a star ⭐ to motivate me!
## <img src="https://cdn.discordapp.com/emojis/1036083490292244493.png" width="15px" height="15px">》Support Server
[![DiscordBanner](https://invidget.switchblade.xyz/jVeC7cFX5T)](https://discord.gg/jVeC7cFX5T)
@ -106,7 +110,6 @@ npm run add-dev YOUR_ID
<img src="https://cdn.discordapp.com/emojis/809085860632985630.png" width="15px" height="15px"> 》[Sponsor](https://github.com/sponsors/CorwinDev)
[version-shield]: https://img.shields.io/github/package-json/v/CorwinDev/Discord-Bot?style=for-the-badge
[version-url]: https://github.com/brblacky/WaveMusic
[contributors-shield]: https://img.shields.io/github/contributors/CorwinDev/Discord-Bot.svg?style=for-the-badge

View file

@ -53,7 +53,7 @@
"i": "^0.3.7",
"is-hexcolor": "^1.0.0",
"isgd": "^1.1.3",
"jsdom": "^20.0.3",
"jsdom": "^21.1.0",
"libsodium-wrappers": "^0.7.10",
"lyrics-finder": "^21.7.0",
"mathjs": "^11.5.0",

View file

@ -9,11 +9,11 @@ module.exports = async (client, interaction, args) => {
.then((res) => res.json()).catch({})
.then(async (json) => {
client.embed({
title: `🐱・Random Car`,
title: `🐱・Random Cat`,
image: json.link,
type: 'editreply'
}, interaction)
}).catch({})
}

View file

@ -9,26 +9,16 @@ const StarBoard = require("../../database/models/starboardChannels");
module.exports = async (client, interaction, args) => {
const choice = interaction.options.getString('setup');
const channel = interaction.options.getChannel('channel');
const choices = {
birthdays : Birthdays,
chatbot : Chatbot,
reviews : Review,
suggestions : Suggestion,
starboard : StarBoard
};
if (choice == "birthdays") {
client.createChannelSetup(Birthdays, channel, interaction)
}
if (choice == "chatbot") {
client.createChannelSetup(Chatbot, channel, interaction)
}
if (choice == "reviews") {
client.createChannelSetup(Review, channel, interaction)
}
if (choice == "suggestions") {
client.createChannelSetup(Suggestion, channel, interaction)
}
if (choice == "starboard") {
client.createChannelSetup(StarBoard, channel, interaction)
}
client.createChannelSetup(choices[choice], channel, interaction);
}

View file

@ -7,18 +7,14 @@ const levelLogs = require("../../database/models/levelChannels");
module.exports = async (client, interaction, args) => {
const choice = interaction.options.getString('setup');
const channel = interaction.options.getChannel('channel');
const choices = {
serverLogs : logs,
levelLogs : levelLogs,
boostLogs : boostLogs
};
if (choice == "serverLogs") {
client.createChannelSetup(logs, channel, interaction)
}
if (choice == "levelLogs") {
client.createChannelSetup(levelLogs, channel, interaction)
}
if (choice == "boostLogs") {
client.createChannelSetup(boostLogs, channel, interaction)
}
client.createChannelSetup(choices[choice], channel, interaction);
}

View file

@ -7,13 +7,12 @@ module.exports = async (client, interaction, args) => {
const choice = interaction.options.getString('setup');
const channel = interaction.options.getChannel('channel');
if (choice == "welcomechannel") {
client.createChannelSetup(welcomeChannel, channel, interaction)
}
const choices = {
welcomechannel : welcomeChannel,
leavechannel : leaveChannel
};
if (choice == "leavechannel") {
client.createChannelSetup(leaveChannel, channel, interaction)
}
client.createChannelSetup(choices[choice], channel, interaction);
}

View file

@ -311,7 +311,7 @@ module.exports = {
if (i.values == "color_embed") {
interaction.channel
.send({ content: "Please enter a color" })
.send({ content: "Please enter a color. e.g. #FF0000" })
.then((message) => {
const filterMessage = (m) =>
m.author.id === interaction.user.id && !m.author.bot;