ShareShortcuts

Home Base

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

clappycan
Создать форк «Home Base»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы clappycan получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
33K
Сохранено
0
Действия
70
Категория
Messaging
Версия
1.7
Язык
EN

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

Что нового

Версия 1.7

Previously stated bug fixed

История версий
1.7 25 мая 2023 г.

Previously stated bug fixed

1.6 25 мая 2023 г.

Updater version fix

1.6 25 мая 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 мая 2023 г.

Minor code changes

1.4 29 апр 2023 г.

Fixed bug with self-made updater not working.

1.3 29 апр 2023 г.

Updater is improved.

1.2 23 апр 2023 г.

This is the version that begins implementing an update system.

1.1 23 апр 2023 г.

Actual name change

1.1 23 апр 2023 г.

Name change

1.0 23 апр 2023 г.

First release

Что делает

Действий: 70
  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

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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)
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от clappycan

См. все

Вам также может понравиться

См. все
Реклама