diff --git a/src/emojis.json b/src/emojis.json index 6dc64bc..cabf0fd 100644 --- a/src/emojis.json +++ b/src/emojis.json @@ -11,7 +11,8 @@ "release": "๐Ÿ”–", "cleanup": "๐Ÿงน", "license": "๐Ÿ“œ", - "deps": "๐Ÿ“ฆ" + "deps": "๐Ÿ“ฆ", + "readme": "๐Ÿ“•,๐Ÿ“—,๐Ÿ“˜,๐Ÿ“™" }, "release": "๐Ÿ”–", "cleanup": "๐Ÿงน", diff --git a/src/main.ts b/src/main.ts index 2bd0d03..7d8b807 100644 --- a/src/main.ts +++ b/src/main.ts @@ -89,6 +89,9 @@ export function eemojify(text: string, config: Config): string { if (!emoji) throw new Error(`Emoji for type "${type}" not found.`) + if (emoji.includes(',')) + emoji = emoji.trim().split(',')[Math.floor(Math.random() * emoji.split(',').length)] ?? emoji + return config.format .replace('{emoji}', emoji) .replace('{type}', type)