- # Env variables PURPLE_MSG and PURPLE_FROM are passed to this script
- # Which means you should mind security (don't let attackers to execute their messages)
- # Each line of output is sent as reply to that message
- # You can try to rewrite this script in PERL or C for better performance
- # This script have .exe suffix as i hope it can be eventualy replaced by some binary on windows
+# - You can try to rewrite this script in PERL or C for better performance (or different platform) - let me know
+# - On M$ Windows answerscripts.exe from libpurple directory will be called instead of this script
+#
+# Maybe you will want to add more hooks for receiving messages, so i've made following script
+# - It just executes all +x files in answerscripts.d directory so you should do your magic there
+# - To disable some of those scripts simply use: chmod -x ./script
+# - There is some basic structure, which means that all scripts should start their names with two-digit number
+# - Files are executed in order specified by those numbers and some numbers have special meanings:
+# - AB?!_ scripts without numbers are NOT executed!
+# - 00 executed immediately, zero or single line output (parallel async processing)
+# - 01-48 executed immediately, multiline output (serial processing)
+# - 49 delay script (adds random delay to emulate human factor)
+# - 50 executed after delay, zero or single line output (parallel async processing)
+# - 51-79 executed after delay, multiline output (serial processing)
+# - 80-99 reserved for future