Skip to content

Instantly share code, notes, and snippets.

View BrianWasTaken's full-sized avatar
👄
Probably Studying

Brian BrianWasTaken

👄
Probably Studying
View GitHub Profile
@BrianWasTaken
BrianWasTaken / cards.ts
Created July 22, 2022 12:51 — forked from melmsie/cards.ts
Dank Memer Blackjack Command Files
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;
};
/**
* 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';