ShareShortcuts

Pick A Number

Features: Rolls a classic dice Or Picks a number between custom numbers

sameerhereiki
„Pick A Number“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit sameerhereiki die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
51K
Gesichert
1
Aktionen
27
Kategorie
Fun
Version
1.2
Sprache
EN

Features: Rolls a classic dice

Or Picks a number between custom numbers

Neue Funktionen

Version 1.2

Added updates notifs

Versionsverlauf
1.2 15. Apr 2021

Added updates notifs

1.1 15. Apr 2021

Fixed a bug where custom dice didn’t work

1.0 14. Apr 2021

First release

Was er macht

27 Aktionen
  1. Comment
    Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments
  2. Text
  3. Set Variable
    Localversion
  4. URL
    https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json
  5. Get Contents of URL
    …
  6. Set Variable
    Onlineversion
  7. Nothing
  8. If
  9. Show Alert
  10. Open URLs
  11. If
  12. Show Alert
  13. Show Alert
  14. Nothing
  15. Choose from Menu
  16. Choose from Menu
    Classic dice
  17. Random Number
  18. Show Result
  19. Choose from Menu
    Custom dice
  20. Ask for Input
    First number
  21. Set Variable
    Num1
  22. Nothing
  23. Ask for Input
    Second number
  24. Set Variable
    Num2
  25. Nothing
  26. Random Number
  27. Show Result

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/web'
#define color green
#define glyph braille

// Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments

const Text = "{\\"version\\":\\"1.2\\"}"
@Localversion = Text
url("https://shareshortcuts.com/jsonstore/1292/jeff-6077d508c2da9.json")
downloadURL()
@Onlineversion
nothing()

if Text != @Onlineversion {
	confirm("There is a new update available please download it")
	openURL("https://shareshortcuts.com/shortcuts/1292-pick-a-number.html")
} else {
	confirm("How to use:\nClassic dice: 1-6\nCustom dice: first num - second num")
	confirm("Thanks for downloading my shortcut if there is any bugs contact me on discord:demonslayer64#9649 or in the coments")
	nothing()
	menu nil {
	item "Classic dice":
		randomNumber(1, 6)
		show()
	item "Custom dice":
		prompt("First number", "Number")
		@Num1
		nothing()
		prompt("Second number", "Number")
		@Num2
		nothing()
		randomNumber(@Num1, @Num2)
		show()
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von sameerhereiki

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung