ShareShortcuts

Home Base

It is essentially the home menu for my series of spam-bots

clappycan
Dupliquer « Home Base »

Tu as créé quelque chose de nouveau à partir de ce raccourci ? Partage-le comme version dérivée : il devient un raccourci à toi, que tu gères, et les deux pages renvoient l’une vers l’autre pour que clappycan soit crédité.

  1. 1Obtenez le raccourci et modifiez-le dans l’app Raccourcis. Donnez-lui un nom bien à lui.
  2. 2Partage-le depuis l’app Raccourcis et copie le lien iCloud.
  3. 3Reviens ici, colle le lien et décris ce qui change, par exemple : « Ajout d’une étape qui utilise Apple Intelligence pour personnaliser le texte. »
Créer mon fork
Téléchargements
33K
Enregistré
0
Actions
70
Catégorie
Messaging
Version
1.7
Langue
EN

It is essentially the home menu for my series of spam-bots.

Nouveautés

Version 1.7

Previously stated bug fixed

Historique des versions
1.7 25 mai 2023

Previously stated bug fixed

1.6 25 mai 2023

Updater version fix

1.6 25 mai 2023

Bug fix for checking if all shortcuts are installed. This fix is temporary, as if not all of the shortcuts are present the program will stop. New fix coming soon.

1.5 18 mai 2023

Minor code changes

1.4 29 avr. 2023

Fixed bug with self-made updater not working.

1.3 29 avr. 2023

Updater is improved.

1.2 23 avr. 2023

This is the version that begins implementing an update system.

1.1 23 avr. 2023

Actual name change

1.1 23 avr. 2023

Name change

1.0 23 avr. 2023

First release

Ce qu’il fait

70 actions
  1. Comment
    For best results, got to the Settings App, scroll down a little and click Shortcuts > Advanced > Toggle Allow Sharing Large Amounts of Data
  2. Get My Shortcuts
  3. Split Text
  4. Set Variable
    Shortcuts
  5. Number
  6. Set Variable
    Check
  7. If
  8. Dictionary
  9. Run Shortcut
    Updater
  10. If
  11. Stop This Shortcut
  12. If
  13. Show Notification
    You do not have the updater installed
  14. Show Web Page
  15. Stop This Shortcut
  16. Repeat with Each
  17. Get Item from List
  18. If
  19. Calculate
  20. Set Variable
    Check
  21. If
  22. Calculate
  23. Set Variable
    Check
  24. If
  25. Calculate
  26. Set Variable
    Check
  27. If
  28. Calculate
  29. Set Variable
    Check
  30. If
  31. Set Variable
    Zeroes
  32. Format Number
  33. Count
  34. Calculate
  35. Repeat
  36. Combine Text
  37. Set Variable
    Zeroes
  38. Combine Text
  39. Set Variable
    Check
  40. Split Text
  41. Set Variable
    Check
  42. Get Item from List
  43. Get Item from List
  44. Get Item from List
  45. Get Item from List
  46. If
  47. Show Notification
    You do not have all of the necessary shortcuts installed.
  48. Show Web Page
  49. Stop This Shortcut
  50. If
  51. Show Notification
    You do not have all of the necessary shortcuts installed.
  52. Show Web Page
  53. Stop This Shortcut
  54. If
  55. Show Notification
    You do not have all of the necessary shortcuts installed.
  56. Show Web Page
  57. Stop This Shortcut
  58. If
  59. Show Notification
    You do not have all of the necessary shortcuts installed.
  60. Show Web Page
  61. Stop This Shortcut
  62. Choose from Menu
    Choose action
  63. Choose from Menu
    DS
  64. Run Shortcut
    Death Star
  65. Choose from Menu
    DS II
  66. Run Shortcut
    Death Star II
  67. Choose from Menu
    SK
  68. Run Shortcut
    Starkiller
  69. Choose from Menu
    SK II
  70. Run Shortcut
    Starkiller II

Afficher en tant que code
Bêta

Chaque action de ce raccourci écrite en Cherri, un langage de programmation pour Raccourcis. Idéal pour comprendre son fonctionnement.

#include 'actions/web'
#include 'actions/shortcuts'
#define color red
#define glyph network

// For best results, got to the Settings App, scroll down a little and click Shortcuts > Advanced > Toggle Allow Sharing Large Amounts of Data

const MyShortcuts = getShortcuts()
splitText(MyShortcuts)
@Shortcuts
@Check = 1111

if @Shortcuts contains "Updater" {
	const UpdateValues = {
		"Name": "Home Base",
		"Share Key": "2462",
		"Version": "1."
	}
	const ShortcutResult = run("Updater", UpdateValues)
	if ShortcutResult == "F" {
		stop()
	}
} else {
	showNotification("You do not have the updater installed")
	showWebpage("https://www.icloud.com/shortcuts/f93dcc6eda0e40788751cf8f7fe7d4cd")
	stop()
}

for _ in @Shortcuts {
	const ItemFromList = getListItem(@Shortcuts, @RepeatIndex)
	if ItemFromList == "Death Star" {
		@Check = @Check - 1000
	}
	if ItemFromList == "Death Star II" {
		@Check = @Check - 100
	}
	if ItemFromList == "Starkiller" {
		@Check = @Check - 10
	}
	if ItemFromList == "Starkiller II" {
		@Check = @Check - 1
	}
}

if @Check != 0 {
	@Zeroes = nil
	formatNumber(@Check, 0)
	const Count = count(@Check, "Characters")
	const CalculationResult = 4 - Count
	repeat _ for CalculationResult {
		joinText([map[Value:map[attachmentsByRange:map[{0, 1}:map[Type:Variable VariableName:Zeroes]] string:] WFSerializationType:WFTextTokenString] 0])
		@Zeroes
	}
	joinText([map[Value:map[attachmentsByRange:map[{0, 1}:map[Type:Variable VariableName:Zeroes]] string:] WFSerializationType:WFTextTokenString] map[Value:map[attachmentsByRange:map[{0, 1}:map[Type:Variable VariableName:Check]] string:] WFSerializationType:WFTextTokenString]], "Custom")
	@Check
	splitText(@Check, "")
	@Check
	const Item1 = getListItem(@Check, 1)
	const Item2 = getListItem(@Check, 2)
	const Item3 = getListItem(@Check, 3)
	const Item4 = getListItem(@Check, 4)
	if Item1 == "1" {
		showNotification("You do not have all of the necessary shortcuts installed.", V4)
		showWebpage("https://shareshortcuts.com/download/2505-death-star.html")
		stop()
	}
	if Item2 == 1 {
		showNotification("You do not have all of the necessary shortcuts installed.")
		showWebpage("https://shareshortcuts.com/download/2506-death-star-ii.html")
		stop()
	}
	if Item3 == 1 {
		showNotification("You do not have all of the necessary shortcuts installed.")
		showWebpage("https://shareshortcuts.com/download/2507-starkiller.html")
		stop()
	}
	if Item4 == 1 {
		showNotification("You do not have all of the necessary shortcuts installed.")
		showWebpage("https://shareshortcuts.com/download/2508-starkiller-ii.html")
		stop()
	}
}

menu "Choose action" {
item "DS":
	run("Death Star", nil)
item "DS II":
	run()
item "SK":
	run("Starkiller", nil)
item "SK II":
	run("Starkiller II", nil)
}
Ouvrir dans Cherri Playground Décompilé avec cherri 2.3.0 (GPL-2.0). Quelques corrections peuvent être nécessaires avant la compilation.

Notes et avis

Écrire un avis
–
sur 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Aucun avis pour le moment. Sois le premier à partager ton avis !

Publicité

Plus de clappycan

Tout afficher

Ça pourrait aussi te plaire

Tout afficher
Publicité