MCPcopy Create free account
hub / github.com/GlobalTechInfo/MEGA-MD / getRandomEmoji

Function getRandomEmoji

plugins/smartmenu.js:31–33  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

29 utility: ['📂', '🔧', '⚙️', '🛠️']
30};
31function getRandomEmoji(arr) {
32 return arr[Math.floor(Math.random() * arr.length)];
33}
34function getCategoryEmoji(category) {
35 const emojis = categoryEmojis[category.toLowerCase()] || ['📂', '📁', '🗂️', '📋'];
36 return getRandomEmoji(emojis);

Callers 2

getCategoryEmojiFunction · 0.85
handlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected