mirror of https://github.com/kry008/Bot-2.0.git
Support bot command
parent
cb1305db40
commit
464ff0106b
|
@ -1,121 +1,118 @@
|
||||||
const { EmbedBuilder } = require('discord.js');
|
|
||||||
function randomColor() {
|
|
||||||
return Math.floor(Math.random()*16777215).toString(16);
|
|
||||||
}
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
name: 'supportbot',
|
name: 'supportbot',
|
||||||
description: 'How to support bot development?',
|
description: 'How to support bot development?',
|
||||||
help: 'How to support bot development?',
|
help: 'How to support bot development?',
|
||||||
options: [],
|
options: [],
|
||||||
slash: false,
|
slash: true,
|
||||||
text: false,
|
text: true,
|
||||||
admin: false,
|
admin: false,
|
||||||
requireKick: false,
|
requireKick: false,
|
||||||
requireBan: false,
|
requireBan: false,
|
||||||
canBeUsedInDm: true,
|
canBeUsedInDm: true,
|
||||||
contexts: ['GUILD_TEXT', 'GUILD_VOICE', 'DM'],
|
contexts: ['GUILD_TEXT', 'GUILD_VOICE', 'DM'],
|
||||||
integration_types: [0,1],
|
integration_types: [0,1],
|
||||||
execute(message, args) {
|
execute: async (message, args) => {
|
||||||
const msg = {
|
message.channel.send({ embeds: [{
|
||||||
color: 0x0099ff,
|
color: 3447003,
|
||||||
title: 'Some title',
|
|
||||||
url: 'https://discord.js.org',
|
|
||||||
author: {
|
author: {
|
||||||
name: 'Some name',
|
name: "kry008",
|
||||||
icon_url: 'https://i.imgur.com/AfFp7pu.png',
|
icon_url: "https://raw.githubusercontent.com/kry008/kry008.xyz/main/images/logo.webp"
|
||||||
url: 'https://discord.js.org',
|
|
||||||
},
|
},
|
||||||
description: 'Some description here',
|
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: 'https://i.imgur.com/AfFp7pu.png',
|
url: "https://cdn.discordapp.com/avatars/883390927383724112/1fdd55ef73a631edfd680964a28ca280.webp"
|
||||||
},
|
},
|
||||||
fields: [
|
//image: {
|
||||||
{
|
// url: "http://i.imgur.com/yVpymuV.png"
|
||||||
name: 'Regular field title',
|
//},
|
||||||
value: 'Some value here',
|
title: "Multitool simple bot",
|
||||||
},
|
url: "https://kry008.xyz/bot",
|
||||||
{
|
description: "Bot made with passion.",
|
||||||
name: '\u200b',
|
fields: [{
|
||||||
value: '\u200b',
|
name: "To support my projects",
|
||||||
inline: false,
|
value: "",
|
||||||
},
|
inline: false
|
||||||
{
|
|
||||||
name: 'Inline field title',
|
|
||||||
value: 'Some value here',
|
|
||||||
inline: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Inline field title',
|
|
||||||
value: 'Some value here',
|
|
||||||
inline: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Inline field title',
|
|
||||||
value: 'Some value here',
|
|
||||||
inline: true,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
image: {
|
|
||||||
url: 'https://i.imgur.com/AfFp7pu.png',
|
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
{
|
||||||
|
name: "Patronite.pl",
|
||||||
|
value: "[**Patronite**](https://patronite.pl/kry008) - You can support me on Patronite.",
|
||||||
|
inline: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Ko-fi",
|
||||||
|
value: "[**Ko-fi**](https://ko-fi.com/kry008) - You can buy me a coffee (payment not implemented yet).",
|
||||||
|
inline: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "New ides for bot?",
|
||||||
|
value: "You can send me on bot [**website**](https://kry008.xyz/bot).",
|
||||||
|
inline: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "To see other projects",
|
||||||
|
value: "[**Private git**](https://git.kry008.xyz) or [Github](https://github.com/kry008)",
|
||||||
|
inline: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "\u200b",
|
||||||
|
value:"\u200b"
|
||||||
|
}],
|
||||||
|
timestamp: new Date(),
|
||||||
footer: {
|
footer: {
|
||||||
text: 'Some footer text here',
|
icon_url: "https://cdn.discordapp.com/avatars/883390927383724112/1fdd55ef73a631edfd680964a28ca280.webp",
|
||||||
icon_url: 'https://i.imgur.com/AfFp7pu.png',
|
text: "Mini bot says hello!"
|
||||||
},
|
}
|
||||||
};
|
}]});
|
||||||
message.reply({ embeds: msg });
|
|
||||||
},
|
},
|
||||||
executeSlash(interaction) {
|
executeSlash: async interaction => {
|
||||||
const msg = {
|
interaction.reply({ embeds: [{
|
||||||
color: 0x0099ff,
|
color: 3447003,
|
||||||
title: 'Some title',
|
|
||||||
url: 'https://discord.js.org',
|
|
||||||
author: {
|
author: {
|
||||||
name: 'Some name',
|
name: "kry008",
|
||||||
icon_url: 'https://i.imgur.com/AfFp7pu.png',
|
icon_url: "https://raw.githubusercontent.com/kry008/kry008.xyz/main/images/logo.webp"
|
||||||
url: 'https://discord.js.org',
|
},
|
||||||
},
|
thumbnail: {
|
||||||
description: 'Some description here',
|
url: "https://cdn.discordapp.com/avatars/883390927383724112/1fdd55ef73a631edfd680964a28ca280.webp"
|
||||||
thumbnail: {
|
},
|
||||||
url: 'https://i.imgur.com/AfFp7pu.png',
|
//image: {
|
||||||
},
|
// url: "http://i.imgur.com/yVpymuV.png"
|
||||||
fields: [
|
//},
|
||||||
{
|
title: "Multitool simple bot",
|
||||||
name: 'Regular field title',
|
url: "https://kry008.xyz/bot",
|
||||||
value: 'Some value here',
|
description: "Bot made with passion.",
|
||||||
},
|
fields: [{
|
||||||
{
|
name: "To support my projects",
|
||||||
name: '\u200b',
|
value: "",
|
||||||
value: '\u200b',
|
inline: false
|
||||||
inline: false,
|
},
|
||||||
},
|
{
|
||||||
{
|
name: "Patronite.pl",
|
||||||
name: 'Inline field title',
|
value: "[**Patronite**](https://patronite.pl/kry008) - You can support me on Patronite.",
|
||||||
value: 'Some value here',
|
inline: true
|
||||||
inline: true,
|
},
|
||||||
},
|
{
|
||||||
{
|
name: "Ko-fi",
|
||||||
name: 'Inline field title',
|
value: "[**Ko-fi**](https://ko-fi.com/kry008) - You can buy me a coffee (payment not implemented yet).",
|
||||||
value: 'Some value here',
|
inline: true
|
||||||
inline: true,
|
},
|
||||||
},
|
{
|
||||||
{
|
name: "New ides for bot?",
|
||||||
name: 'Inline field title',
|
value: "You can send me on bot [**website**](https://kry008.xyz/bot).",
|
||||||
value: 'Some value here',
|
inline: false
|
||||||
inline: true,
|
},
|
||||||
},
|
{
|
||||||
],
|
name: "To see other projects",
|
||||||
image: {
|
value: "[**Private git**](https://git.kry008.xyz) or [Github](https://github.com/kry008)",
|
||||||
url: 'https://i.imgur.com/AfFp7pu.png',
|
inline: false
|
||||||
},
|
},
|
||||||
timestamp: new Date().toISOString(),
|
{
|
||||||
footer: {
|
name: "\u200b",
|
||||||
text: 'Some footer text here',
|
value:"\u200b"
|
||||||
icon_url: 'https://i.imgur.com/AfFp7pu.png',
|
}],
|
||||||
},
|
timestamp: new Date(),
|
||||||
};
|
footer: {
|
||||||
interaction.reply({ embeds: msg });
|
icon_url: "https://cdn.discordapp.com/avatars/883390927383724112/1fdd55ef73a631edfd680964a28ca280.webp",
|
||||||
|
text: "Mini bot says hello!"
|
||||||
|
}
|
||||||
|
}]});
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Reference in New Issue