Skip to content

Instantly share code, notes, and snippets.

@lewisnyman
Last active November 23, 2021 12:21
Show Gist options
  • Save lewisnyman/fdf6206725eec8db89f6592ddc959e35 to your computer and use it in GitHub Desktop.
Save lewisnyman/fdf6206725eec8db89f6592ddc959e35 to your computer and use it in GitHub Desktop.
Random lunch status textexpander snippet
const emoji = [
  "🍔",
  "🍕",
  "🌭",
  "🥪",
  "🥗",
  "🌯",
  "🍱",
  "🍝",
  "🍜"
];
const count = emoji.length;
const randomIndex = Math.floor(Math.random() * count);
const randomEmoji = emoji[randomIndex];
'/status ' + randomEmoji + ' Lunch';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment