-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from Mightypotatoast/master
random things
- Loading branch information
Showing
7 changed files
with
136 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const { joinVoiceChannel } = require('@discordjs/voice'); | ||
const { MessageEmbed } = require('discord.js'); | ||
module.exports = { | ||
|
||
name: "coinflip", | ||
description: "Flip a coin", | ||
permission: "ADMINISTRATOR", | ||
active : true, | ||
|
||
async execute(message) { | ||
|
||
|
||
try{ | ||
let coin = Math.floor(Math.random() * 2) | ||
|
||
const coinEmbed = new MessageEmbed() | ||
.setColor('#E1A741') | ||
.setAuthor("Flip a coin", "https://www.pngall.com/wp-content/uploads/4/Dollar-Gold-Coin-PNG.png") | ||
.setDescription(`${message.user} flipped a coin and got a ${coin === 0 ? "Pile" : "Face"}`) | ||
.setTimestamp() | ||
|
||
message.reply({embeds: [coinEmbed]}) | ||
} catch (error) { | ||
console.log(error) | ||
message.reply({ embeds: [errorEmbed().setDescription(`${error}`)], ephemeral: true }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
const { joinVoiceChannel } = require('@discordjs/voice'); | ||
const { MessageEmbed } = require('discord.js'); | ||
module.exports = { | ||
|
||
name: "roll", | ||
description: "roll a dice", | ||
permission: "ADMINISTRATOR", | ||
active : true, | ||
|
||
options: [ | ||
{ | ||
name: "dice", | ||
description: `Max number of you dice`, | ||
type: "STRING", | ||
required: false, | ||
} | ||
], | ||
async execute(message) { | ||
|
||
try{ | ||
let dice = message.options.getString('dice') | ||
if (dice==null) dice = "100"; | ||
const roll = Math.floor(Math.random() * dice) + 1 | ||
const embed = new MessageEmbed() | ||
.setColor("#FF0000") | ||
.setAuthor("Roll your dice", "https://upload.wikimedia.org/wikipedia/commons/5/53/Six_sided_dice.png") | ||
.setDescription(`${message.user} rolled a ${roll} (0-${dice})`) | ||
|
||
message.reply({embeds: [embed]}) | ||
} catch (error) { | ||
console.log(error) | ||
message.reply({ embeds: [errorEmbed().setDescription(`${error}`)], ephemeral: true }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const { errorEmbed, musicEmbed} = require("../../util/Embeds") | ||
|
||
|
||
|
||
function codeblock(code) { | ||
return `\`\`\`${code}\`\`\``; | ||
} | ||
|
||
|
||
module.exports = { | ||
|
||
name: "shrex", | ||
description: "Display Shrex in chat", | ||
permission: "ADMINISTRATOR", | ||
active: true, | ||
|
||
async execute(message, client) { | ||
try{ | ||
message.reply(codeblock("⣿⣿⣿⣿⠋⢩⢹⣿⣿⣿⣿⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿\n⣿⣿⣿⡧⣦⠄⢧⡙⢿⣟⢁⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠟⢿\n⣿⣿⣿⣷⣶⣶⣦⡈⠂⠄⠸⠿⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠉⠰⢠⣼\n⣿⣿⣿⣿⣿⣿⣿⣿⠄⠄⠄⢒⣂⠄⠙⢿⣿⣿⡿⠛⢛⣻⣿⣿⡟⢁⣠⣴⣶⣶\n⣿⣿⣿⣿⣿⣿⣿⠇⢇⡄⣆⣤⣀⣦⡄⢈⣉⣛⣭⡀⠙⠭⡛⠿⣿⣻⣿⣿⣿⣿\n⣿⣿⣿⣿⣿⣿⣿⠄⠄⣿⣿⣿⣿⣿⢃⣿⣿⣿⣿⣿⣶⣷⡾⣼⣿⠈⠉⠄⠄⠈\n⣿⣿⣿⣿⣿⣿⡇⠄⠄⢿⣿⣿⣿⣥⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣄⠄⠄⠄⠄\n⣿⣿⣿⣿⡿⠋⠄⠄⠄⢸⣿⡿⠿⠄⠈⠛⢟⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠄⠄⠄\n⣿⣿⣿⠟⠁⠄⠄⠄⠄⠄⢠⣄⣀⡲⢦⣤⣼⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠄⠄\n⠛⠋⠄⠄⠄⠄⠄⠄⠄⠄⠈⢿⣟⠻⠿⣿⣿⣿⣷⣾⣿⣿⣿⣿⢿⣿⣿⡇⠄⠄\n⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠻⣷⣶⣾⣿⣿⣿⣿⣿⣿⠟⢡⣿⣿⣿⡟⠄⠄\n⣦⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⣉⣹⣿⣿⣿⣿⠟⠁⣰⣿⣿⣿⣿⡇⠄⠄\n⣿⣧⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⠉⠉⠙⠛⠉⠁⢀⣼⣿⣿⣿⣿⡟⠄⠄⠄")) | ||
} catch (e) { | ||
message.reply({ embeds: [errorEmbed().setDescription(`${e}`)], ephemeral: true }) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters