2021-11-04 01:57:32 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const packs = require('../../assets/cah-cards-full.json');
|
2021-11-15 14:51:10 +00:00
|
|
|
const shuffle = require('../utils/shuffle');
|
2021-11-04 01:57:32 +00:00
|
|
|
|
|
|
|
function start() {
|
2021-11-15 14:51:10 +00:00
|
|
|
const blackCards = shuffle(packs.map((pack) => pack.black).flat());
|
|
|
|
const whiteCards = shuffle(packs.map((pack) => pack.white).flat());
|
2021-11-04 01:57:32 +00:00
|
|
|
|
|
|
|
console.log(blackCards, whiteCards);
|
|
|
|
}
|
|
|
|
|
|
|
|
function onCommand() {
|
|
|
|
start();
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
name: 'Cursed Cards',
|
|
|
|
onCommand,
|
|
|
|
};
|