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
import * as Constants from './constants'; | |
const randomInArray = <T>(arr: readonly T[]): T => | |
arr[Math.floor(Math.random() * arr.length)]; | |
export interface Card { | |
suit: typeof Constants.SUITS[number]; | |
face: typeof Constants.FACES[number]; | |
baseValue: number; | |
}; |
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
/** | |
* The latest implementation of blackjack from Dank Memer discord bot. | |
* A bit modified and it's the most complicated shit I've seen yet. | |
* | |
* Credits: https://blackjack.dankmemer.lol | |
*/ | |
import type { CommandOptions, Args } from '@sapphire/framework'; | |
import type { Message } from 'discord.js'; | |
import { ApplyOptions } from '@sapphire/decorators'; |