Autokiss now shuffles if possible
[mirrors/libpurple-core-answerscripts.git] / purple / answerscripts.d / menu.pl
index c2f48d62673797abb150886ce9b9ead3828bae96..d7afa4e14020d4d71d199095f45b09b3acc985ae 100755 (executable)
@@ -4,12 +4,13 @@ use strict;
 use warnings;
 use Switch;
 
-switch ($ENV{PURPLE_MSG}) {
+switch ($ENV{ANSW_MSG}) {
        case /^!help$/  { print "What did you expected? A help?! :-P"; }
        case /^!ping$/  { print "PONG"; }
-       case /^!whoami$/        { print "You are: $ENV{PURPLE_FROM}"; }
+       case /^!whoami$/        { print "You are: $ENV{ANSW_FROM}"; }
        case /^!(reboot|reset|restart|halt)$/   { print "Broadcast message: The system is going down for reboot NOW !!"; }
        case /^!google/ { print "UTFG Yourself: http://google.com/"; }
        case /^!uptime$/        { print qx{uptime}; }
        case /^!date$/  { print qx{date}; }
+       case /^!dmesg$/ { print qx{ dmesg | tail -n 5 | tr '\n' '^' } }
 }
This page took 0.110913 seconds and 4 git commands to generate.