Allow single commands in ScriptScheduler

Replace script= with action= like in AutoRespond
Older script=<text> will be handled as action=script <text>
This commit is contained in:
ORelio 2020-04-02 18:59:57 +02:00
parent c5b0f447c9
commit 7b049576a3
2 changed files with 25 additions and 22 deletions

View file

@ -5,6 +5,7 @@
# Structure of a task: [Task] Followed by triggers and other settings.
# The example below contains all the possible fields for a task
# Time is HH:mm format, several different hours can be provided
# Action command can be "script" or any other internal command
[Task]
triggerOnFirstLogin=false
@ -14,14 +15,14 @@ triggerOnInterval=false
timeValue=19:30
timeValue=08:10
timeInterval=0
script=event.txt
action=script event.txt
# Another minimal example: some properties may be omitted
# This is highly recommended for improving task readability
[Task]
triggerOnFirstLogin=true
script=startup.txt
action=script startup.txt
# Of course, the tasks file can contain as much tasks as you want.
# Another example triggered on logging in and every night at midnight:
@ -30,15 +31,15 @@ script=startup.txt
triggerOnLogin=true
triggerOnTime=true
timeValue=00:00
script=midnight.txt
action=log It's midnight!
# Example of task occuring every 30 seconds
# Could be used for making a custom antiAFK procedure
# Could be used for jumping as antiAFK method
[Task]
triggerOnInterval=true
timeInterval=30
script=advanced-anti-afk.txt
action=move up
# Enjoy!
# - ORelio