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.",
|
||||||
|
fields: [{
|
||||||
|
name: "To support my projects",
|
||||||
|
value: "",
|
||||||
|
inline: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '\u200b',
|
name: "Patronite.pl",
|
||||||
value: '\u200b',
|
value: "[**Patronite**](https://patronite.pl/kry008) - You can support me on Patronite.",
|
||||||
inline: false,
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Inline field title',
|
name: "Ko-fi",
|
||||||
value: 'Some value here',
|
value: "[**Ko-fi**](https://ko-fi.com/kry008) - You can buy me a coffee (payment not implemented yet).",
|
||||||
inline: true,
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Inline field title',
|
name: "New ides for bot?",
|
||||||
value: 'Some value here',
|
value: "You can send me on bot [**website**](https://kry008.xyz/bot).",
|
||||||
inline: true,
|
inline: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Inline field title',
|
name: "To see other projects",
|
||||||
value: 'Some value here',
|
value: "[**Private git**](https://git.kry008.xyz) or [Github](https://github.com/kry008)",
|
||||||
inline: true,
|
inline: false
|
||||||
},
|
},
|
||||||
],
|
{
|
||||||
image: {
|
name: "\u200b",
|
||||||
url: 'https://i.imgur.com/AfFp7pu.png',
|
value:"\u200b"
|
||||||
},
|
}],
|
||||||
timestamp: new Date().toISOString(),
|
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!"
|
||||||
|
}
|
||||||
|
}]});
|
||||||
},
|
},
|
||||||
};
|
executeSlash: async interaction => {
|
||||||
message.reply({ embeds: msg });
|
interaction.reply({ embeds: [{
|
||||||
},
|
color: 3447003,
|
||||||
executeSlash(interaction) {
|
|
||||||
const msg = {
|
|
||||||
color: 0x0099ff,
|
|
||||||
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.",
|
||||||
|
fields: [{
|
||||||
|
name: "To support my projects",
|
||||||
|
value: "",
|
||||||
|
inline: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '\u200b',
|
name: "Patronite.pl",
|
||||||
value: '\u200b',
|
value: "[**Patronite**](https://patronite.pl/kry008) - You can support me on Patronite.",
|
||||||
inline: false,
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Inline field title',
|
name: "Ko-fi",
|
||||||
value: 'Some value here',
|
value: "[**Ko-fi**](https://ko-fi.com/kry008) - You can buy me a coffee (payment not implemented yet).",
|
||||||
inline: true,
|
inline: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Inline field title',
|
name: "New ides for bot?",
|
||||||
value: 'Some value here',
|
value: "You can send me on bot [**website**](https://kry008.xyz/bot).",
|
||||||
inline: true,
|
inline: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Inline field title',
|
name: "To see other projects",
|
||||||
value: 'Some value here',
|
value: "[**Private git**](https://git.kry008.xyz) or [Github](https://github.com/kry008)",
|
||||||
inline: true,
|
inline: false
|
||||||
},
|
},
|
||||||
],
|
{
|
||||||
image: {
|
name: "\u200b",
|
||||||
url: 'https://i.imgur.com/AfFp7pu.png',
|
value:"\u200b"
|
||||||
},
|
}],
|
||||||
timestamp: new Date().toISOString(),
|
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!"
|
||||||
},
|
}
|
||||||
};
|
}]});
|
||||||
interaction.reply({ embeds: msg });
|
|
||||||
},
|
},
|
||||||
};
|
};
|
Loading…
Reference in New Issue