Login About Gallery
WordleBot
Accepts
Text
COMMENT
‎Reformat results for a completed Wordle game to include scores for partial and perfect guesses on each line. The shortcut can ouput results as reformatted emoji or as a single image saved to the Photos app.
TEXT
‎Shortcut Input
VARIABLES
‎Set variable ‎Wordle Blurb ‎to ‎Text
COMMENT
‎If you want to use different emoji for Wordle results or different word meanings for each emoji, you can edit the action below.
DICTIONARY
VARIABLES
‎Set variable ‎Emoji Meanings ‎to ‎Dictionary
COMMENT
‎Match the first line of text in Wordle's default shared results
TEXT
‎Match ‎^Wordle\s(\d+)\s(\d)\/(\d) ‎in ‎Wordle Blurb
Case Sensitive
VARIABLES
‎Set variable ‎First Wordle Line ‎to ‎Matches
TEXT
‎Get ‎Group At Index ‎1 ‎in ‎Matches
VARIABLES
‎Set variable ‎Wordle Number ‎to ‎Text
TEXT
‎Get ‎Group At Index ‎2 ‎in ‎Matches
VARIABLES
‎Set variable ‎Attempts ‎to ‎Text
COMMENT
‎This is the line where the game was completed
TEXT
‎Get ‎Group At Index ‎3 ‎in ‎Matches
VARIABLES
‎Set variable ‎Turns ‎to ‎Text
TEXT
‎Match ‎(?s)^Wordle\s(\d+)\s(\d)\/(\d)(.+) ‎in ‎Wordle Blurb
Case Sensitive
TEXT
‎Get ‎Group At Index ‎4 ‎in ‎Matches
TEXT
‎Split ‎Text ‎by ‎New Lines
SCRIPTING
‎Repeat with each item in ‎Split Text
SCRIPTING
‎If ‎Repeat Item ‎has any value
VARIABLES
‎Add ‎Repeat Item ‎to ‎Emoji
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Emoji ‎with ‎New Lines
VARIABLES
‎Set variable ‎Emoji ‎to ‎Combined Text
TEXT
‎Split ‎Emoji ‎by ‎New Lines
COMMENT
‎iterate on single lines
SCRIPTING
‎Repeat with each item in ‎Emoji as Individual Lines
SCRIPTING
‎Get ‎All Keys ‎in ‎Emoji Meanings
COMMENT
‎Match each of the emoji for each line, and count the results for each emoji
SCRIPTING
‎Repeat with each item in ‎Emoji
TEXT
‎Match ‎Repeat Item 2 ‎in ‎Repeat Item
Case Sensitive
SCRIPTING
‎If ‎Matches ‎has any value
SCRIPTING
‎Count ‎Items ‎in ‎Matches
SCRIPTING
‎Get ‎Value ‎for ‎Repeat Item 2 ‎in ‎Emoji Meanings
TEXT
‎Dictionary Value ‎Count
VARIABLES
‎Add ‎Text ‎to ‎Line Results
SCRIPTING
‎End If
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Line Results ‎with ‎Custom ‎,
TEXT
‎Line ‎Repeat Index ‎ - ‎Combined Text
VARIABLES
‎Add ‎Text ‎to ‎Results without Emoji
TEXT
‎Repeat Item ‎ ( ‎Combined Text ‎)
VARIABLES
‎Add ‎Text ‎to ‎Parsed Line Results
NOTHING
‎Nothing
VARIABLES
‎Set variable ‎Line Results ‎to ‎Input
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Parsed Line Results ‎with ‎New Lines
COMMENT
‎The shortcut is hardcoded to replace '5 perfect' with 'Wordle done on Line X'. If you don't use the word 'perfect', you'll have to replace it manually in the action below for the text replacement to work.
DOCUMENTS
‎Replace ‎5 perfect ‎with ‎Wordle done on Line ‎Attempts ‎in ‎Combined Text
Case Sensitive
Regular Expression
TEXT
‎First Wordle Line ‎Updated Text
VARIABLES
‎Set variable ‎Final Results ‎to ‎Final Results
SCRIPTING
‎Choose from Menu
SCRIPTING
‎🟩 Copy as Emoji
SHARING
‎Copy ‎Final Results ‎to clipboard
Local Only
Expire At
‎Today at 3 pm
SCRIPTING
‎Show alert ‎Wordle Results Copied
Title
‎Wordle Results Copied
Show Cancel Button
SCRIPTING
‎🌄 Save as Image
TEXT
‎Split ‎Emoji ‎by ‎New Lines
COMMENT
‎Repeat with each line, then repeat for each character
SCRIPTING
‎Repeat with each item in ‎Split Text
TEXT
‎Split ‎Repeat Item ‎by ‎Every Character
SCRIPTING
‎Repeat with each item in ‎Split Text
COMMENT
‎Original technique by gluebyte: https://reddit.com/r/shortcuts/comments/muobc5/emoji_to_image_conversion/
URL
‎data:text/html;charset=utf-8,<body style="display:grid; place-content:center;padding-left:9;font-size:44; background-color:#ffffff;"> ‎Repeat Item 2 ‎</body> 
MEDIA
‎Crop ‎URL
Position
‎Bottom Right
Width
‎160
Height
‎160
SCRIPTING
‎End Repeat
MEDIA
‎Combine ‎Repeat Results ‎Horizontally
Spacing
‎0
VARIABLES
‎Add ‎Combined Image ‎to ‎Line as Image
SCRIPTING
‎End Repeat
MEDIA
‎Combine ‎Line as Image ‎Vertically
Spacing
‎0
PHOTOS
‎Save ‎Combined Image ‎to ‎Recents
TEXT
‎Combine ‎Results without Emoji ‎with ‎New Lines
TEXT
‎First Wordle Line ‎Combined Text
SHARING
‎Copy ‎Text ‎to clipboard
Local Only
Expire At
‎Today at 3 pm
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
SCRIPTING
‎End Menu

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 4 years ago

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0