-
Notifications
You must be signed in to change notification settings - Fork 6
/
COMMANDS
1015 lines (617 loc) · 27.4 KB
/
COMMANDS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Title: Lyntin Commands
Author: Will Guaraldi
VERSION
=======
Tue, 02 Oct 2007 22:21:37 +0000
For more up-to-date information and documentation, please check the
web-site: http://Lyntin.sourceforge.net/
COMMANDS IN LYNTIN
==================
Lyntin uses Lyntin commands to allow you to manipulate the Lyntin
client and setup your session with aliases, variables, actions,
and such. Commands start with the command character--by default
this is "#". It can be changed with the "#config" command. The
command character can also do some other special things:
1. You can execute commands in another session by typing the
command character and then the sesion name then the command.
example:
#3k say hello - will say hello in session 3k
#a #info - will run the #info command in session a
2. You can switch to another session by typing the command
character and then the session name. examples:
#a - will switch to session a (if it exists)
#3k - will switch to session 3k (if it exists)
3. You can execute a command in all sessions by typing the
command character then all. examples:
#all say hello - will run "say hello" in all sessions
4. You can execute a command a number of times by typing the
command character then a number, then the command. examples:
#5 say hello - will run "say hello" 5 times
Commands are separated by the semicolon. Semicolons can be
escaped with the \ character. examples:
say hello;wave - will run "say hello" then "wave"
say hi! \;) - will run "say hi! ;)"
Command arguments can be enclosed with { }. This enables you to
specify arguments that have multiple words in them. exaples:
#alias a b - executes #alias with args "a" and "b"
#alias {a} {b} - executes #alias with args "a" and "b"
#alias {a} {say hi} - executes #alias with args "a" and "say hi"
#alias a say hi - executes #alias with args "a", "say",
and "hi" which will kick up an error
(since the #alias command doesn't accept
a third string argument)
{, } and \ can all be escaped with the \ character: \{, \}, and \.
COMMAND REFERENCE
=================
@ history tickon
action if ticksize
alias info tickwarnsize
antigag killall unaction
antisubstitute load unalias
atags log unantigag
bell loop unantisubstitute
chr math ungag
clear nop unhighlight
config raw unload
cr read unschedule
deed schedule unsubstitute
diagnostics session unswdir
disable showme unswexclude
enable substitute unvariable
end swdir variable
gag swexclude version
grep textin write
help tick zap
highlight tickoff
COMMANDS.@
#@ allows you to execute arbitrary Python code inside of Lyntin.
It will first look for a module named "lyntinuser" and execute
the code inside that module's __dict__ environment. If no
such module exists, it will execute the code inside
modules.advanced . At present it can only handle one-line
Python statements.
examples:
#@ print "hello"
#@ print "\n".join(exported.get_commands())
COMMANDS.ACTION
syntax: #action [<TRIGGER>] [<ACTION>] [<TAG>] [<COLOR:BOOLEAN=false>]
[<PRIORITY:INT=5>] [<ONETIME:BOOLEAN=false>]
[<QUIET:BOOLEAN=false>]
With no trigger, no action and no tag, prints all actions.
With no trigger and no action, prints all actions with given tag.
With a trigger and no action, prints actions that match the
trigger statement.
With a trigger and an action, creates an action.
When data from the mud matches the trigger clause, the response
will be executed. Trigger clauses can use anchors (^ and $)
to anchor the text to the beginning and end of the line
respectively.
Triggers can also contain Lyntin pattern-variables which start
with a % sign and have digits: %0, %1, %10... When Lyntin sees
a pattern-variable in an action trigger, it tries to match any
pattern against it, and saves any match it finds so you can
use it in the response. See below for examples.
Note: As a note, actions are matched via regular expressions.
%1 gets translated to (.+?) and %_1 gets translated to (\S+?).
The special variable "%a" means "the whole matched line".
We handle regular expressions with a special r[ ... ] syntax. If
you put an "i" or "I" after the ], then we'll ignorecase as well.
The onetime argument can be set to true to have the action remove
itself automatically after it is triggered.
examples:
#action {^You are hungry} {get bread bag;eat bread}
#action {%0 gives you %5} {say thanks for the %5, %0!}
#action {r[^%_1 tells\s+you %2$]} {say %1 just told me %2}
#action {r[sven dealt .+? to %1$]i} {say i just killed %1!}
see also: unaction, enable, disable, atags
COMMANDS.ALIAS
syntax: #alias [<ALIAS>] [<EXPANSION>] [<QUIET:BOOLEAN=false>]
With no arguments, prints all aliases.
With one argument, prints all aliases which match the arg.
With multiple arguments, creates an alias.
You can use pattern variables which look like % and a number. %0
will be all the arguments passed in.
Ranges can be used by using python colon-syntax, specifying a
half-open slice of the input items, so %0:3 is the alias name, first,
and second arguments of the input.
Negative numbers count back from the end of the list. So %-1 is the
last item in the list, %:-1 is everything but the last item in the
list.
examples:
#alias {k*} - prints out aliases that start with k
#alias {k} {kill %1} - builds a new alias
#alias {gg} {put %1: in chest} - builds a new alias
COMMANDS.ANTIGAG
syntax: #antigag [<ITEM>] [<QUIET:BOOLEAN=false>]
Allows you to create antigags.
For any line that contains an antigag, we won't do gags on it.
COMMANDS.ANTISUBSTITUTE
syntax: #antisubstitute [<ITEM>] [<QUIET:BOOLEAN=false>]
Allows you to create antisubstitutes.
For any line that contains an antisubstitute, we won't do substitutions
on it.
COMMANDS.ATAGS
Shows all the tags available
see also: action, unaction, enable, disable
COMMANDS.BELL
Kicks off the bell for a given session. Anything registered
with the bell_hook will get tickled.
COMMANDS.CHR
syntax: #chr [VAR] [ASCII:INT] [<QUIET:BOOLEAN=false>]
Allows you to assign arbitrary characters to variables. For example,
if you wanted to assign ASCII char 7 to variable ctrlG you could
do:
#chr {ctrlG} {7}
Since this creates a variable, you should remove the variable with
the unvariable command.
Note: This won't work if you don't have the variable module loaded.
COMMANDS.CLEAR
This command clears a session of all session data (except the actual
connection). This covers gags, subs, actions, aliases...
COMMANDS.CONFIG
syntax: #config [<NAME>] [<VALUE>] [<QUIET:BOOLEAN=false>]
Allows you to view and change configuration options that affect
how Lyntin functions. Configuration options can be session
oriented or global to all of Lyntin.
examples:
#config
displays global configuration and session configuration for the
current session
#a #config
displays global configuration and session configuration for the
session named 'a'
#config ansicolor
displays information about the mudecho configuration option
#config ansicolor on
sets the ansicolor configuration option to on
COMMANDS.CR
This sends a carriage return to the mud. This is useful in aliases
and actions that require a carriage return.
COMMANDS.DEED
syntax: #deed [<TEXT>] [<QUIET:BOOLEAN=false>]
Deeds serve as a kind of notebook - whatever you don't want
to forget, store it in a deed.
examples::
#deed -- prints all the deeds for
that session
#deed {$TIMESTAMP Joe healed me} -- adds a new deed to the list
#deed 10 -- prints the last 10 deeds
Before a deed is stored, variables are expanded--this allows you
to use system, global, and session variables in your deeds like
$TIMESTAMP which will mark when the deed was created.
COMMANDS.DIAGNOSTICS
syntax: #diagnostics [<LOGFILE>]
This is very useful for finding out all the information about Lyntin
while it's running. This will print out operating system information,
Python version, what threads are running (assuming they're registered
with the ThreadManager), hooks, functions connected to hooks, and
#info for every session. It's very helpful in debugging problems that
are non-obvious or are platform specific. It's also invaluable in
bug-reporting.
It can take a filename argument and will copy the #diagnostics output
to that file. This allows you easier method of submitting diagnostics
output along with bug reports.
Note: Windows users should either use two \'s or use / to separate
directory names.
COMMANDS.DISABLE
syntax: #disable [<TAG>] [<QUIET:BOOLEAN=false>]
Temporarily disables all the actions with given tag, so their triggers
won't trigger any actions (well, this desciption is a bit obscure,
but I've tried my best :)
see also: action, unaction, enable, atags
COMMANDS.ENABLE
syntax: #enable [<TAG>] [<QUIET:BOOLEAN=false>]
Enables actions with given tag.
By default, all the tags are enabled.
see also: action, unaction, disable, atags
COMMANDS.END
Closes all sessions and quits out of Lyntin.
Note: on most muds this will leave your character in a state of
linkdeath--it does not sell all your stuff, return you to town,
save your character, tell your friends goodbye, or anything of
that nature.
COMMANDS.GAG
syntax: #gag [<TEXT>] [<QUIET:BOOLEAN=false>]
With no arguments, prints out all gags.
With arguments, creates a gag.
Incoming lines from the mud which contain gagged text will
be removed and not shown on the ui.
Gags get converted to regular expressions. Feel free to use
regular expression matching syntax as you see fit.
As with all commands, braces get stripped off and each complete
argument creates a gag.
examples:
#gag {has missed you.} <-- will prevent any incoming line
with "has missed you" to be shown.
#gag missed <-- will gag lines with "missed" in them.
#gag {r[sven.*?dealt]i} <-- will gag anything that matches the
regexp "sven.*?dealt" and ignore
case.
COMMANDS.GREP
syntax: #grep [PATTERN] [<SIZE:INT=300>] [<CONTEXT:INT=0>]
Similar to the unix grep command, this allows you to extract
information from the session's data buffer using regular expressions.
It prints matching lines in their entirety.
examples:
#grep {says:} 1000
Greps the last 1000 lines of the databuffer for lines that have
"says:" in them.
COMMANDS.HELP
syntax: #help [<ITEM>]
With no arguments, shows all the help files available.
With an argument, shows that specific help file or lists the contents
of that category of help files.
examples:
#help - lists all help files in the root
#help help - shows help for the help command
#help commands.substitute - shows help for the substitute command
#help commands - shows help for the commands category
Items that have a number in parentheses after them are a category.
The number is how many help topics are below that category.
example:
> #help
lyntin: ::Lyntin Help::
lyntin:
lyntin: category: root
lyntin:
lyntin: commands(55) readme(13)
lyntin: textui
>
COMMANDS.HIGHLIGHT
syntax: #highlight [<STYLE>] [<TEXT>] [<QUIET:BOOLEAN=false>]
With no arguments, prints all highlights.
With one argument, prints all highlights which match the arg.
With multiple arguments, creates a highlight.
Highlights enable you to colorfully "tag" text that's of interest
to you with the given style.
Styles available are:
styles foreground colors background colors
bold black grey b black
blink red light red b red
reverse green light green b green
underline yellow light yellow b yellow
blue light blue b blue
magenta light magenta b magenta
cyan light cyan b cyan
white light white b white
Highlights handle * at the beginning and end of non-regular expression
texts. Highlights will handle regular expression texts as well. See
"#help regexp" for more details.
Note: blink, underline, and reverse may not be available in all ui's.
examples:
#highlight {green} {Sven arrives.}
#highlight {reverse,green} {Sven arrives.}
#highlight {blue} {r[^.*?says:]}
which is the same as:
#highlight {blue} {*says:}
COMMANDS.HISTORY
syntax: #history [<COUNT:INT=30>]
#history prints the current history buffer.
! will call an item in the history indexed by the number after
the !. You can also do replacements via the sub=repl syntax.
examples:
#history [count=30]
prints the last count entries in the history buffer
!
executes the last thing you did
!4
executes the fourth to last thing you did
!4 3k=gk
executes the fourth to last thing you did after replacing
3k with gk in it
COMMANDS.IF
syntax: #if [EXPR] [ACTION] [<ELSEACTION>]
Allows you to do some boolean logic based on Lyntin variables
or any Python expression. If this expression returns a non-false
value, then the action will be performed otherwise the elseaction
(if there is one) will be peformed.
examples:
#if {$myhpvar < 100} {#showme PANIC!}
#if {$myhpvar < 100 and $myspvar < 100} {#showme PANIC!}
#if {'$name' == 'Joe'} {#showme That joe is a jerk.}
When you're comparing variable values with other strings, make sure
to put them in quotes becuase variable expansion happens before
the if command is evaluated.
examples:
WRONG: #if {$name == Joe} {#showme Joe is a jerk.}
RIGHT: #if {'$name' == 'Joe'} {#showme Joe is a jerk.}
COMMANDS.INFO
Prints all the information about the active session:
actions, aliases, gags, highlights, variables, ticker, verbose,
speedwalking, and other various things.
COMMANDS.KILLALL
Clears all sessions of session oriented stuff: aliases,
substitutions, gags, variables, so on so forth.
COMMANDS.LOAD
syntax: #load [MODULENAME] [<RELOAD:BOOLEAN=true>]
Loads/reloads a module.
When reloading, it looks for an "unload" function and executes
it prior to reloading the module. After reloading/loading, it
looks for a "load" function and executes it.
Lyntin modules located in the modules package are safe to reload
in-game. Lyntin core modules (engine, helpmanager, event...) are
NOT safe to import in-game.
examples:
#load modules.action
#load exportuser
#load will look for the module on the sys.path. So if your module
is not on the sys.path, you should first add the directory using #@:
#@ import sys
#@ sys.path.append("/directory/where/my/module/exists")
Directories specified by the moduledir command-line argument are
added to the sys.path upon Lyntin startup.
COMMANDS.LOG
syntax: #log [<LOGFILE>] [<DATABUFFER:BOOLEAN=false>]
[<STRIPANSI:BOOLEAN=true>] [<USERPREFIX>]
Will start or stop logging to a given filename for that session.
Each session can have its own logfile.
If USERPREFIX is set, then every line from the user will be
prepended with this prefix and immediately written into log file.
If USERPREFIX is omitted, then the user input will be attached to
mud prompts before logging.
COMMANDS.LOOP
syntax: #loop [FROMTO] [COMM] [<RANGE:BOOLEAN=true>]
Executes a given command replacing %0 in the command with
the range of numbers specified in <from> and <to>.
example:
#loop {1,4} {reclaim %0.corpse}
will execute:
reclaim 1.corpse
reclaim 2.corpse
reclaim 3.corpse
reclaim 4.corpse
Additionally, it can iterate over a comma-separated string of items:
example:
#loop {joe,harry,fred,pete} {say hi, %0.} range=no
will execute:
say hi, joe.
say hi, harry.
say hi, fred.
say hi, pete.
A better way to execute a command a number of times without regard
to an index, would be:
#4 {reclaim corpse}
which will send "reclaim corpse" to the mud 5 times.
COMMANDS.MATH
syntax: #math [VAR] [OPERATION] [<QUIET:BOOLEAN=false>]
Implements the #math command which allows you to manipulate
variables above and beyond setting them.
examples:
#math {hps} {$hps + 5}
COMMANDS.NOP
syntax: #nop [<INPUT>]
nop stands for "no operation". So anything after a #nop
and before a ; (unless it's escaped) will be ignored.
This was quite possibly the easiest command to program ever.
COMMANDS.RAW
syntax: #raw [<INPUT>]
Sends input straight to the mud.
COMMANDS.READ
syntax: #read [FILENAME]
Reads in a file running each line as a Lyntin command. This is the
opposite of #write which allows you to save session settings and
restore them using #read.
You can also read in via the commandline when you start Lyntin:
lyntin --read 3k
And read can handle HTTP urls:
lyntin --read http://lyntin.sourceforge.net/lyntinrc
#read http://lyntin.sourceforge.net/lyntinrc
Note: the first non-whitespace char is used to set the Lyntin
command character. If you use non Lyntin commands in your file,
make sure the first one is a command char. If not, use #nop .
It will skip blank lines.
If you don't specify a directory, Lyntin will look for the file
in your datadir.
COMMANDS.SCHEDULE
syntax: #schedule [<TICK>] [<EVENT>] [<REPEAT:BOOLEAN=false>]
[<QUIET:BOOLEAN=false>]
With no arguments lets you view the scheduled events.
lyntin: Scheduled events:
lyntin: 1 [a] 200 {#showme Will is super duper!}
First column is the event id.
Second column is the session it's in.
Third column is the tick offset or time it's going to kick off at.
Fourth column is the command to execute.
With arguments it creates a scheduled event to kick off (and
possibly repeat) at TICK seconds from now at which point it will
execute EVENT which could be any valid user input.
examples:
#schedule {5} {#showme blah}
will kick off 5 ticks from now (a tick is approx one second) and
will execute "#showme blah".
#schedule {1m30s} {#showme blah}
will kick off in 1 minute and 30 seconds.
#schedule {10} {#showme blah} {true}
will kick off every 10 seconds.
COMMANDS.SESSION
syntax: #session [<SESSIONNAME>] [<HOST>] [<PORT:INT=-1>] [<FILENAME>]
This command creates a connection to a specific mud. When you create
a session, that session becomes the active Lyntin session.
To create a session to 3k.org named "3k":
#session 3k www.3k.org 5000
To create a session and initialize it with commands from a specific
file:
#session 3k www.3k.org 5000 /home/david/3k/3k.lyntin
Then to create another session to another mud:
#session eto gytje.pvv.unit.no 4000
Then if 3k was your active session, you could do things on the eto
session by prepending your command with "#eto ":
#eto say hello
or switch to the eto session by typing just "#eto".
COMMANDS.SHOWME
syntax: #showme [<INPUT>]
Will display {text} on your screen. Doesn't get sent to the mud--
just your screen.
examples:
#action {^%0 annihilates you!} {#showme {EJECT! EJECT! EJECT!}}
COMMANDS.SUBSTITUTE
syntax: #substitute [<ITEM>] [<SUBSTITUTION>] [<QUIET:BOOLEAN=false>]
With no arguments, prints all substitutes.
With one argument, prints all substitutes which match the argument.
Otherwise creates a substitution.
Braces are advised around both 'item' and 'substitution'.
COMMANDS.SWDIR
syntax: #swdir [<ALIAS>] [<DIR>] [<QUIET:BOOLEAN=false>]
This adds speedwalking aliases and tells you the current speedwalking dirs
already registered.
examples:
#swdir {n} {north}
#swdir {s} {south}
#swdir {e} {east}
#swdir {w} {west}
#swdir {NE} {northeast}
#swdir {l} {look}
...
This allows you to string characters together to speedwalk:
4e2sNE
which using the above swdirs gets expanded to
"east;east;east;east;south;south;northeast" and who wants to type all
that?
see also: swexclude
COMMANDS.SWEXCLUDE
syntax: #swexclude [EXCLUDE...] [<QUIET:BOOLEAN=false>]
Adds words that should be excluded from speedwalk expansion as well
as tells you which words are currently being excluded.
If you had swdirs "n", "e", "s", and "w", you might want to create
excludes for the words "sense", "news", "sew", ... Which are real
words that you most likely don't want to be expanded.
examples:
#swexclude {end}
#swexclude {news}
see also: swdir
COMMANDS.TEXTIN
syntax: #textin [FILE]
Takes the contents of the file and outputs it directly to the mud
without processing it (like #read does).
If you don't specify a directory, Lyntin will look for the file in
the datadir.
COMMANDS.TICK
Displays the number of seconds left before this session's
ticker ticks.
When a tick happens, it will look for a TICK!!! alias then a TICK
alias. Finding none, it will print TICK!!! to the ui.
When a tickwarning happens, it will look for a TICKWARN!!! alias
and then a TICKWARN alias. Finding none, it will print a tickwarning
message to the ui.
This allows you to perform an event every x number of seconds.
see also: tick, tickon, tickoff, ticksize, tickwarnsize
COMMANDS.TICKOFF
Turns off the ticker for this session.
see also: tick, tickon, tickoff, ticksize, tickwarnsize
COMMANDS.TICKON
Turns on the ticker for this session.
see also: tick, tickon, tickoff, ticksize, tickwarnsize
COMMANDS.TICKSIZE
syntax: #ticksize [<SIZE:TIMESPAN=0>]
Sets and displays the number of seconds between ticks for this
session.
examples:
#ticksize
#ticksize 6
#ticksize 1h2m30s
see also: tick, tickon, tickoff, ticksize, tickwarnsize
COMMANDS.TICKWARNSIZE
syntax: #tickwarnsize [<SIZE:TIMESPAN=0>]
Sets and displays the number of seconds you get warned before a
Tick actually happens.
examples:
#tickwarnsize
#tickwarnsize 6
#tickwarnsize 0
see also: tick, tickon, tickoff, ticksize, tickwarnsize
COMMANDS.UNACTION
syntax: #unaction [<STR>] [<TAG>] [<QUIET:BOOLEAN=false>]
Removes action(s) from the manager.
examples:
#unaction {missed you.}
#unaction missed*
#unaction tag={indoor}
see also: action, enable, disable, atags
COMMANDS.UNALIAS
syntax: #unalias [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove aliases.
COMMANDS.UNANTIGAG
syntax: #unantigag [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove antigags.
COMMANDS.UNANTISUBSTITUTE
syntax: #unantisubstitute [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove antisubstitutes.
COMMANDS.UNGAG
syntax: #ungag [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove gags.
COMMANDS.UNHIGHLIGHT
syntax: #unhighlight [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove highlights.
examples:
#highlight {hello}
#highlight {blah*}
COMMANDS.UNLOAD
syntax: #unload [MODULENAME]
Unloads a module from Lyntin by calling the module's "unload" function
and then removing references to it in the Python environment.
examples:
#unload wbgscheduler
#unload modules.alias
COMMANDS.UNSCHEDULE
syntax: #unschedule [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove a scheduled event by id. To remove all events
scheduled use *. To see a list of the events and ids for the current
session use the #sched command.
examples:
#unschedule *
#unschedule 44
COMMANDS.UNSUBSTITUTE
syntax: #unsubstitute [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove substitutes.
COMMANDS.UNSWDIR
syntax: #unswdir [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove swdirs.
COMMANDS.UNSWEXCLUDE
syntax: #unswexclude [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove swexcludes.
COMMANDS.UNVARIABLE
syntax: #unvariable [<STR>] [<QUIET:BOOLEAN=false>]
Allows you to remove variables.
COMMANDS.VARIABLE
syntax: #variable [<VAR>] [<EXPANSION>] [<QUIET:BOOLEAN=false>]
Creates a variable for that session of said name with said value.
Variables can then pretty much be used anywhere.
examples:
#variable {hps} {100}
#action {HP: %0/%1 } {#variable {hps} {%0}}
Variables can later be accessed via the variable character
(which defaults to $) and the variable name. In the case of the
above, the variable name would be $hps.
We also handle braced closures for denoting variables like ${hps}.
If you have a variable hps and a variable hpset, you can explicitly
specify which one using { }.
There are also system variables $HOME, $TIMESTAMP, $LOGTIMESTAMP,
and $DATADIR (must be upper-cased) and global variables. To set
a global variable which can be used in all sessions, it must
be preceded by a _.
examples:
#variable {_fun} {happy fun ball}
#showme $_fun
#showme $TIMESTAMP
#showme ${TIMESTAMP}
COMMANDS.VERSION
Displays the version number, contact information, and web-site for
Lyntin.
COMMANDS.WRITE
syntax: #write [FILE] [<QUIET:BOOLEAN=false>]
Writes all aliases, actions, gags, etc to the file specified.
You can then use the #read command to read this file in and
restore your session settings.
The quiet argument lets you specify whether you want command data
to be written to the file so that when you read it back in with #read,
the commands are executed quietly.
If you don't specify a directory, it will be written to your datadir.
Note: Windows users should either use two \'s or use / to separate
directory names.