The HDSA Bot Family: Difference between revisions

From Hackers & Designers
No edit summary
No edit summary
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===[[Beuysbot|Beuysbot]]===
This article exemplifies some of the chat bots created during the [[Code, text and text-to-speech|Code, text and text-to-speech]] workshop with [[Constant Association for Art and Media|Constant Association for Art and Media]]


===[[Facebot|Facebot]]===
===Beuysbot===


===[[Fembot|Fembot]]===
The Beuysbot created by [[Selby Gildemacher|Selby]] is dedicated to Joseph Beuys famous quote: "Every human being is an artist" and is linked to a database that live counts human beings who die and who are born. Accodingly the bot reports "xy Menschen sind Künstler" or "xy Menschen waren Künstler"


Fembot addresses her chatmates as female. She does that in a subtle and sympathetic way by using a bot's name (nick) and following up with a compliment. To not be considered a spamming bot Fembot only reacts of another bot writes 2 words with 4 or more characters.  
[[File:Beuys-speaks.jpg|400px|Beuys speaks]]


This is the script that creates Fembot:
===Facebot===


Run this script as bot with following command:
The mouth bot made by Eurico is an animation that reacts to text appearing in the chatroom.
cat bot | python -u ircpipebot.py --server botnet.local --channel "#botnet" --nickname fembot | python -u fembot.py > bot
make sure you have the fifo-file bot (command to create: mkfifo bot) + ircpipebot.py in the same folder


import sys
[[File:mouth-closed.png|300px|Mouth closed]]


infinite loop that takes the last message of the chat
[[File:mouthopen-1.png|300px|Mouth half open]]
 
[[File:mouthopen-2.png|300px|Mouth open]]
 
===Fembot===
 
Fembot created by Anja addresses her chatmates as female. She does that in a subtle and sympathetic way by using a bot's name (nick) and following up with a compliment. To not be perceived as a spam bot Fembot only reacts of another bot writes 2 words with 4 or more characters.
 
This is the basic structure of the script that creates Fembot (check github repository or the wiki article for full script):
 
    infinite loop that takes the last message of the chat
   
   
     while True:
     take out blank line
    words_of_4 = []
    message = sys.stdin.readline()
    if message == '':
      break
 
take out blank line
    message = message.rstrip()
print message


transformation of the message
    transformation of the message
      
      
split the message in a list of words, break on spaces between words
    split the message in a list of words, break on spaces between words
    words = message.split(" ")
print words
      
      
find the nickname in the message and strip of the colon
    find the nickname in the message and strip of the colon
    nick = words[1]
 
     #print nick
     loop that checks each word in the list, words with 4 characters are saved in separate list
    nick = nick.rstrip(":")
 
print nick
     check length of new list, if more than 2 -> send message
   
        if len(words_of_4) >= 2:
loop that checks each word in the list, words with 4 characters are saved in separate list
            sentence = "interesting " + nick + " is a very wise woman."
    for word in words:
            print sentence
        if len(word) == 4:
 
            words_of_4.append(word)
===Haikubot===
      
 
check length of new list, if more than 2 -> send message
The Haikubot created by Juriaan looked for Haiku in the chatroom.
    if len(words_of_4) >= 2:
 
        sentence = "interesting " + nick + " is a very wise woman."
===Spybot===
        print sentence
 
Spybot created by James spied on private chats, showing that the IRC channel is not as safe as one might expect.
 
===Swapbot===
 
The Manifestos Bot/s or Swapbot created by Michaela uses Metaheaven Manifesto and Hackers Manifesto by McKenzie Wark as inputs. Each bot acts as an
independent agent replacing keywords such as 'hacker/s ' with 'designer/s', 'designing' = 'hacking' etc.
The aim of which is to blend them together questioning the notion of processes, approaches and roles that are often reversed.
 
 
 
Example:
 
<span style ="letter-spacing:0.5em;">
'''W  e        t  e  n  d        t o  <u>h a c k</u>  s o      t h a t      f o r m      a n d      c o n t e n t m a y      o b e y      d i f f e r e n t      r e g i m e s .''' </span>
<br>
 
<span style ="letter-spacing:-0.08em;">'''To the <u>designer</u> there is always a surplus of possibility expressed in what is actual, the surplus of the virtual.'''</span>


Check all bot scripts here: [https://github.com/hackersanddesigners/HDSA2015 github.com/hackersanddesigners/HDSA2015]


Michaela's wiki: 
 
[http://92.51.132.110/~mlakova/wiki/index.php/Bot_irc_python http://92.51.132.110/~mlakova/wiki/index.php/Bot_irc_python]


===[[Haikubot|Haikubot]]===
===Transcriptionbot===


===[[Spybot|Spybot]]===
The Transcriptionbot used Webkit's Speech2Text API to take spoken word input from Google's Chrome web-browser and post it via https (required for continued microphone input) to a Python webserver. The Python server then sent that text into the IRC chatroom.


===[[Swapbot|Swapbot]]===




'''More background about all bot scripts here:''' 


[[Category:HDSA2015]]
[https://github.com/hackersanddesigners/HDSA2015 github.com/hackersanddesigners/HDSA2015]
[[Category:Print]]
[[Category:DIY Manual]]
[[Category:Ready to be published]]

Latest revision as of 16:04, 15 December 2015

This article exemplifies some of the chat bots created during the Code, text and text-to-speech workshop with Constant Association for Art and Media

Beuysbot

The Beuysbot created by Selby is dedicated to Joseph Beuys famous quote: "Every human being is an artist" and is linked to a database that live counts human beings who die and who are born. Accodingly the bot reports "xy Menschen sind Künstler" or "xy Menschen waren Künstler"

Beuys speaks

Facebot

The mouth bot made by Eurico is an animation that reacts to text appearing in the chatroom.

Mouth closed

Mouth half open

Mouth open

Fembot

Fembot created by Anja addresses her chatmates as female. She does that in a subtle and sympathetic way by using a bot's name (nick) and following up with a compliment. To not be perceived as a spam bot Fembot only reacts of another bot writes 2 words with 4 or more characters.

This is the basic structure of the script that creates Fembot (check github repository or the wiki article for full script):

   infinite loop that takes the last message of the chat

   take out blank line
   transformation of the message
   
   split the message in a list of words, break on spaces between words
   
   find the nickname in the message and strip of the colon
 
   loop that checks each word in the list, words with 4 characters are saved in separate list
 
   check length of new list, if more than 2 -> send message
       if len(words_of_4) >= 2:
           sentence = "interesting " + nick + " is a very wise woman."
           print sentence

Haikubot

The Haikubot created by Juriaan looked for Haiku in the chatroom.

Spybot

Spybot created by James spied on private chats, showing that the IRC channel is not as safe as one might expect.

Swapbot

The Manifestos Bot/s or Swapbot created by Michaela uses Metaheaven Manifesto and Hackers Manifesto by McKenzie Wark as inputs. Each bot acts as an independent agent replacing keywords such as 'hacker/s ' with 'designer/s', 'designing' = 'hacking' etc. The aim of which is to blend them together questioning the notion of processes, approaches and roles that are often reversed.


Example:

W e t e n d t o h a c k s o t h a t f o r m a n d c o n t e n t m a y o b e y d i f f e r e n t r e g i m e s .

To the designer there is always a surplus of possibility expressed in what is actual, the surplus of the virtual.


Michaela's wiki:

http://92.51.132.110/~mlakova/wiki/index.php/Bot_irc_python

Transcriptionbot

The Transcriptionbot used Webkit's Speech2Text API to take spoken word input from Google's Chrome web-browser and post it via https (required for continued microphone input) to a Python webserver. The Python server then sent that text into the IRC chatroom.


More background about all bot scripts here:

github.com/hackersanddesigners/HDSA2015