Skip to content

Instantly share code, notes, and snippets.

@confluencepoint
Forked from lewisnyman/lunch.js
Created February 4, 2019 19:09
Show Gist options
  • Select an option

  • Save confluencepoint/53cde2b997ff8ab18838ea63c8c143e6 to your computer and use it in GitHub Desktop.

Select an option

Save confluencepoint/53cde2b997ff8ab18838ea63c8c143e6 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