GIT.Harvie.CZ
/
mirrors
/
libpurple-core-answerscripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0636d44
)
Ported all scripts from PURPLE_ to ANSW_ prefix. Added examples to support STATUS...
author
Harvie
<tomas@mudrunka.cz>
Tue, 24 Aug 2010 00:54:13 +0000
(
02:54
+0200)
committer
Harvie
<tomas@mudrunka.cz>
Tue, 24 Aug 2010 00:54:13 +0000
(
02:54
+0200)
purple/answerscripts.d/autokiss.sh
patch
|
blob
|
blame
|
history
purple/answerscripts.d/debug.sh
patch
|
blob
|
blame
|
history
purple/answerscripts.d/espeak.sh
patch
|
blob
|
blame
|
history
purple/answerscripts.d/menu.pl
patch
|
blob
|
blame
|
history
purple/answerscripts.d/repeat.sh
patch
|
blob
|
blame
|
history
diff --git
a/purple/answerscripts.d/autokiss.sh
b/purple/answerscripts.d/autokiss.sh
index b054c5c4ea7478a360038b39bf1416c230ba784c..46dc7126e7b9e07aec3056195837da539f533b87 100755
(executable)
--- a/
purple/answerscripts.d/autokiss.sh
+++ b/
purple/answerscripts.d/autokiss.sh
@@
-1,3
+1,3
@@
#!/bin/sh
#AutoKiss :-* (just wanna be polite)
#!/bin/sh
#AutoKiss :-* (just wanna be polite)
-echo
"$PURPLE_MSG" | grep -o ':-\*'
;
+echo
$(echo "$ANSW_MSG" | grep -Eo ':-\*|\*IN LOVE\*|:-\{\}|\*KISSING\*')
;
diff --git
a/purple/answerscripts.d/debug.sh
b/purple/answerscripts.d/debug.sh
index 021c71399a4d21972fb2fe599f217a7d642b4aac..ad2ddb75affc83c162e508a5295fcfe52f617992 100755
(executable)
--- a/
purple/answerscripts.d/debug.sh
+++ b/
purple/answerscripts.d/debug.sh
@@
-1,3
+1,4
@@
#!/bin/sh
#Debug
#!/bin/sh
#Debug
-echo "<$PURPLE_FROM> $PURPLE_MSG" >&2;
+echo "<$ANSW_FROM> $ANSW_MSG" >&2;
+echo "($ANSW_STATUS: $ANSW_STATUS_MSG)" >&2;
diff --git
a/purple/answerscripts.d/espeak.sh
b/purple/answerscripts.d/espeak.sh
index c0dec782bbe42b0d95b9e97a88eeb811de0a35f6..0e785bf9cb4aeaa244e03b5f8dd4ee3756d80a80 100755
(executable)
--- a/
purple/answerscripts.d/espeak.sh
+++ b/
purple/answerscripts.d/espeak.sh
@@
-1,3
+1,3
@@
#!/bin/sh
#Say it loudly and proudly!
#!/bin/sh
#Say it loudly and proudly!
-test -x "$(which espeak)" && echo "$
PURPLE
_MSG" | espeak -v $(echo "$LANG" | head -c 2) &
+test -x "$(which espeak)" && echo "$
ANSW
_MSG" | espeak -v $(echo "$LANG" | head -c 2) &
diff --git
a/purple/answerscripts.d/menu.pl
b/purple/answerscripts.d/menu.pl
index 5c0c5932f12d17086f6f3e3c9b11113a94778fd8..d7afa4e14020d4d71d199095f45b09b3acc985ae 100755
(executable)
--- a/
purple/answerscripts.d/menu.pl
+++ b/
purple/answerscripts.d/menu.pl
@@
-4,10
+4,10
@@
use strict;
use warnings;
use Switch;
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 /^!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 /^!(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}; }
diff --git
a/purple/answerscripts.d/repeat.sh
b/purple/answerscripts.d/repeat.sh
index 0719cd8bb2539589e48a904246d8b55eb75c0043..ffd2076654c31ef4e3ee2cd6ed15f4497815d9e5 100755
(executable)
--- a/
purple/answerscripts.d/repeat.sh
+++ b/
purple/answerscripts.d/repeat.sh
@@
-1,3
+1,3
@@
#!/bin/sh
#Dumb libpurple core-answerscripts script. Hello world!
#!/bin/sh
#Dumb libpurple core-answerscripts script. Hello world!
-echo "REPEAT:$
PURPLE_FROM> $PURPLE
_MSG";
+echo "REPEAT:$
ANSW_FROM> $ANSW
_MSG";
This page took
0.162148 seconds
and
4
git commands to generate.