imported>mutante mNo edit summary |
imported>mutante mNo edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
padma is an [[InfoBot]] [[IRC]] bot. |
|||
You can teach her things like: |
|||
Examples: |
|||
padma, x is y |
|||
=== Teaching === |
|||
If you want to add another definiton you can use |
|||
'''X is Y''' |
|||
You can teach her like this: |
|||
If you want her to tell somebody else about stuff you can go |
|||
padma, |
<@mutante> padma, vogel is german for bird |
||
<@padma> OK, mutante. |
|||
<@mutante> padma, the cool url is at http://fnord.org |
|||
<@padma> OK, mutante. |
|||
She listens to every "X is Y" sentence, also when her name is not mentioned, you just dont get an OK then. |
|||
to be extended ... |
|||
<@mutante> snorkel is funny |
|||
[[Category:IRC]] |
|||
=== Asking === |
|||
'''? / what is .. / who is .. / where is .. ''' |
|||
<@mutante> padma, what is vogel? |
|||
<@padma> it has been said that vogel is german for bird |
|||
<@mutante> where is the cool url? |
|||
<@padma> the cool url is at http://fnord.org |
|||
Also for asking you dont need to mention her name every time. |
|||
<@mutante> snorkel? |
|||
<@padma> snorkel is, like, funny |
|||
=== Deleting === |
|||
'''forget''' |
|||
<@mutante> forget george |
|||
<@padma> mutante: I forgot george |
|||
=== Adding to existing definition === |
|||
''' X is also Y''' |
|||
If a term alread has a definition and you want to add a second you need to use '''also'''. |
|||
<@mutante> george is hot |
|||
<@mutante> padma, george is a bot |
|||
<@padma> ...but george is hot... |
|||
<@mutante> george is also a bot |
|||
<@padma> okay, mutante. |
|||
<@mutante> george? |
|||
<@padma> hmmm... george is hot or a bot |
|||
=== display "raw" definition === |
|||
'''literal''' |
|||
<@mutante> padma, foo23 is Bla|Blubb|blam |
|||
<@padma> OK, mutante. |
|||
<@mutante> foo23? |
|||
<@padma> somebody said foo23 was Bla |
|||
<@mutante> padma, literal foo23 |
|||
<@padma> mutante: foo23 =is= Bla|Blubb|blam |
|||
=== reply / action === |
|||
'''<reply> / <action>''' |
|||
With "<reply>" padma answers directly without additional "someone said" etc.. comments. |
|||
<@mutante> padma, be nice is <reply>padma loves you. |
|||
<@padma> OK, mutante. |
|||
<@mutante> be nice? |
|||
<@padma> padma loves you. |
|||
With "<action>" she outputs as action text. |
|||
<@mutante> jump around is <action> jumps around |
|||
<@mutante> jump around? |
|||
* padma jumps around |
|||
=== variables === |
|||
====username==== |
|||
'''$who''' |
|||
<@mutante> wer bin ich is <reply> You are $who, $who. |
|||
<@mutante> wer bin ich? |
|||
<@padma> You are mutante, mutante. |
|||
====date==== |
|||
<@mutante> wieviel uhr is $date |
|||
<@mutante> wieviel uhr? |
|||
<@padma> wieviel uhr is Sun Jul 29 22:18:48 2007 |
|||
=== RSS feeds === |
|||
'''<nowiki><rss="http://somefeed.com/rss.xml"></nowiki>''' |
|||
You can include the output of [[RSS]] feeds in padmas replies. |
|||
<@mutante> cnn is <rss="http://rss.cnn.com/rss/cnn_world.rss"> |
|||
<@mutante> cnn? |
|||
<@padma> mutante: Japan PM 'suffers election blow'; Celebratory gunfire greets Iraq soccer victory; Taliban: Hostages will die Monday; Lightning kills five climbers; PM Brown visits 'strong' U.S. ally; Freed doctor leaves Australia; $20B arms sale to Saudis in works; Embattled Musharraf meets with Bhutto; Iraqis try to save ruling coalition; Stranded Gazans may get to return |
|||
You can use any feed adress and include it in any answer you teach padma. |
|||
=== Randomizing answers === |
|||
'''X is A|B|C''' |
|||
To put a little more fun in teaching you can give severeal answers which are used randomized. |
|||
<@mutante> a random number is 5|17|23|42 |
|||
<@mutante> a random number? |
|||
<@padma> a random number is probably 42 |
|||
<@mutante> a random number? |
|||
<@padma> a random number is 5 |
|||
<@mutante> boy george is hot|not|no comment |
|||
<@mutante> boy george? |
|||
<@padma> i guess george is not |
|||
<@mutante> boy george? |
|||
<@padma> george is hot |
|||
=== DNS / ping === |
|||
<@mutante> padma: dns yahoo.com |
|||
<@padma> mutante: yahoo.com is 216.109.112.135 |
|||
<@mutante> ping s23.org |
|||
<@padma> 10 packets transmitted, 10 received, 0% packet loss, time 9012ms, rtt min/avg/max/mdev = 0.053/0.072/0.089/0.015 ms |
|||
=== converting units === |
|||
<@mutante> padma: convert 1 gallon to litres |
|||
<@padma> 1 gallon is 3.78534 litres. |
|||
<@mutante> padma, convert 110 fahrenheit to celsius |
|||
<@padma> 110 Fahrenheit is 43.3333 Celsius. |
|||
<@mutante> padma, convert 23 femtoseconds to decades |
|||
<@padma> 23 femtoseconds is 7.28842e-23 decades. |
|||
<@mutante> padma, convert 17.5 lightyears to millimeters |
|||
<@padma> 17.5 lightyears is 1.65559e+20 millimeters. |
|||
TO BE EXTENDED .. |
|||
Also see: [[InfoBot]], [[Flooterbuck]] & [http://www.infobot.org/guide-0.43.x.html Infobot Guide]. |
|||
[[Category:Bots]] |
[[Category:Bots]] |
Latest revision as of 20:25, 29 July 2007
Examples:
Teaching[edit]
X is Y
You can teach her like this:
<@mutante> padma, vogel is german for bird <@padma> OK, mutante.
<@mutante> padma, the cool url is at http://fnord.org <@padma> OK, mutante.
She listens to every "X is Y" sentence, also when her name is not mentioned, you just dont get an OK then.
<@mutante> snorkel is funny
Asking[edit]
? / what is .. / who is .. / where is ..
<@mutante> padma, what is vogel? <@padma> it has been said that vogel is german for bird
<@mutante> where is the cool url? <@padma> the cool url is at http://fnord.org
Also for asking you dont need to mention her name every time.
<@mutante> snorkel? <@padma> snorkel is, like, funny
Deleting[edit]
forget
<@mutante> forget george <@padma> mutante: I forgot george
Adding to existing definition[edit]
X is also Y
If a term alread has a definition and you want to add a second you need to use also.
<@mutante> george is hot <@mutante> padma, george is a bot <@padma> ...but george is hot... <@mutante> george is also a bot <@padma> okay, mutante. <@mutante> george? <@padma> hmmm... george is hot or a bot
display "raw" definition[edit]
literal
<@mutante> padma, foo23 is Bla|Blubb|blam <@padma> OK, mutante. <@mutante> foo23? <@padma> somebody said foo23 was Bla <@mutante> padma, literal foo23 <@padma> mutante: foo23 =is= Bla|Blubb|blam
reply / action[edit]
<reply> / <action>
With "<reply>" padma answers directly without additional "someone said" etc.. comments.
<@mutante> padma, be nice is <reply>padma loves you. <@padma> OK, mutante. <@mutante> be nice? <@padma> padma loves you.
With "<action>" she outputs as action text.
<@mutante> jump around is <action> jumps around <@mutante> jump around? * padma jumps around
variables[edit]
username[edit]
$who
<@mutante> wer bin ich is <reply> You are $who, $who. <@mutante> wer bin ich? <@padma> You are mutante, mutante.
date[edit]
<@mutante> wieviel uhr is $date <@mutante> wieviel uhr? <@padma> wieviel uhr is Sun Jul 29 22:18:48 2007
RSS feeds[edit]
<rss="http://somefeed.com/rss.xml">
You can include the output of RSS feeds in padmas replies.
<@mutante> cnn is <rss="http://rss.cnn.com/rss/cnn_world.rss"> <@mutante> cnn? <@padma> mutante: Japan PM 'suffers election blow'; Celebratory gunfire greets Iraq soccer victory; Taliban: Hostages will die Monday; Lightning kills five climbers; PM Brown visits 'strong' U.S. ally; Freed doctor leaves Australia; $20B arms sale to Saudis in works; Embattled Musharraf meets with Bhutto; Iraqis try to save ruling coalition; Stranded Gazans may get to return
You can use any feed adress and include it in any answer you teach padma.
Randomizing answers[edit]
X is A|B|C
To put a little more fun in teaching you can give severeal answers which are used randomized.
<@mutante> a random number is 5|17|23|42 <@mutante> a random number? <@padma> a random number is probably 42 <@mutante> a random number? <@padma> a random number is 5
<@mutante> boy george is hot|not|no comment <@mutante> boy george? <@padma> i guess george is not <@mutante> boy george? <@padma> george is hot
DNS / ping[edit]
<@mutante> padma: dns yahoo.com <@padma> mutante: yahoo.com is 216.109.112.135
<@mutante> ping s23.org <@padma> 10 packets transmitted, 10 received, 0% packet loss, time 9012ms, rtt min/avg/max/mdev = 0.053/0.072/0.089/0.015 ms
converting units[edit]
<@mutante> padma: convert 1 gallon to litres <@padma> 1 gallon is 3.78534 litres.
<@mutante> padma, convert 110 fahrenheit to celsius <@padma> 110 Fahrenheit is 43.3333 Celsius.
<@mutante> padma, convert 23 femtoseconds to decades <@padma> 23 femtoseconds is 7.28842e-23 decades.
<@mutante> padma, convert 17.5 lightyears to millimeters <@padma> 17.5 lightyears is 1.65559e+20 millimeters.
TO BE EXTENDED ..
Also see: InfoBot, Flooterbuck & Infobot Guide.