Renamed scripts to obey rules (numbered filenames) that will be brought in next commit
[mirrors/libpurple-core-answerscripts.git] / purple / answerscripts.d / 10-menu.pl
CommitLineData
b44d7b66
H
1#!/usr/bin/env perl
2#Just for you to see that you can use almost any language :-)
3use strict;
4use warnings;
5use Switch;
6
c5863c50 7switch ($ENV{ANSW_MSG}) {
b44d7b66
H
8 case /^!help$/ { print "What did you expected? A help?! :-P"; }
9 case /^!ping$/ { print "PONG"; }
c5863c50 10 case /^!whoami$/ { print "You are: $ENV{ANSW_FROM}"; }
b44d7b66
H
11 case /^!(reboot|reset|restart|halt)$/ { print "Broadcast message: The system is going down for reboot NOW !!"; }
12 case /^!google/ { print "UTFG Yourself: http://google.com/"; }
13 case /^!uptime$/ { print qx{uptime}; }
14 case /^!date$/ { print qx{date}; }
4446826a 15 case /^!dmesg$/ { print qx{ dmesg | tail -n 5 | tr '\n' '^' } }
b44d7b66 16}
This page took 0.107358 seconds and 4 git commands to generate.