Added the 'poll' and 'code/repo' commands, as well as added single/multiplayer functionality to 'Minesweeper'

This commit is contained in:
ION606
2022-09-06 15:29:48 -04:00
parent af8f9f69ae
commit 27fecfffcb
8 changed files with 152 additions and 10 deletions
+32
View File
@@ -0,0 +1,32 @@
const { MessageEmbed, MessageActionRow, MessageButton, Interaction } = require('discord.js');
module.exports = {
name: 'code',
description: 'See where Selmer bot\'s code is stored! (you can also use _!repo_)',
execute(message, args, Discord, Client, bot) {
const embd = new MessageEmbed()
.setAuthor({ name: "Selmer Bot", url: bot.inviteLink, iconURL: bot.user.displayAvatarURL() })
.setThumbnail("https://github.com/ION606/selmer-bot-website/blob/main/assets/Selmer-icon.png?raw=true") // .setThumbnail('https://repository-images.githubusercontent.com/460670550/43932b23-d795-4334-838f-f33ee8f795c4')
.setDescription("Selmer Bot was created by ION606");
const row = new MessageActionRow()
.addComponents([
new MessageButton()
.setStyle("LINK")
.setURL("https://github.com/ION606/selmerBot")
.setLabel("Github Repo"),
new MessageButton()
.setStyle("LINK")
.setURL("https://www.selmerbot.com/")
.setLabel("Website"),
new MessageButton()
.setStyle("PRIMARY")
.setLabel("Tutorial")
.setCustomId("sbtutorial")
]);
message.reply({ embeds: [embd], components: [row] })
}
}