mirror of https://github.com/Nofated095/Q2TG.git
11 lines
417 B
TypeScript
11 lines
417 B
TypeScript
import random from '../utils/random';
|
|
|
|
export default {
|
|
picture: () => random.pick('🎆', '🌃', '🌇', '🎇', '🌌', '🌠', '🌅', '🌉', '🏞', '🌆', '🌄', '🖼', '🗾', '🎑', '🏙', '🌁'),
|
|
color(index: number) {
|
|
const arr = [...new Intl.Segmenter().segment('🔴🟠🟡🟢🔵🟣⚫️⚪️🟤')].map(x => x.segment);
|
|
index = index % arr.length;
|
|
return arr[index];
|
|
},
|
|
};
|