From charlesreid1

Twitter Bots

I have lots of Twitter bots. Each of the bots is described below.

Watergate Bot

Bot Name: This Is Watergate
Handle: @thisiswatergate
Description: This Is Watergate is a twitter bot that generates fake White House tapes dialogue. It works by learning how White House tapes sound, using a large corpus of White House tapes transcripts. It then uses a Queneau sentence generator from the Olipy library on GitHub to generate new fake White House tapes dialogue.

Apollo Space Junk Bots

https://twitter.com/charlesreid1/lists/space-junk-botflock/members

Bot Name: Apollo 11 Space Junk
Handle: @apollo11junk
Description: Apollo 11 Space Junk is a twitter bot that generates fake Apollo-Mission Control radio dialogue. It uses the flight logs (transcripts of radio dialogue) to train a language generator, then uses a Queneau sentence generator to generate new fake Apollo 11 radio dialogue.

See Apollo11Junk

Bot Name: Apollo 12 Space Junk
Handle: @apollo12junk
Description: Apollo 12 Space Junk is a sister bot to Apollo 11 Space Junk. It also uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue, but uses transcripts from the Apollo 12 mission.
Bot Name: Apollo 13 Space Junk
Handle: @apollo13junk
Description: Apollo 13 Space Junk uses the Apollo-Mission Control radio dialogues to generate new fake radio dialogue from the transcripts of the Apollo 13 mission.

Paradise Lost Bot Flock

Milton Paradise Lost Bot Flock: @milton_book1, @milton_book2, @milton_book3, @milton_book4, @milton_book5, @milton_book6, @milton_book7, @milton_book8, @milton_book9, @milton_book10, @milton_book11, @milton_book12

https://twitter.com/charlesreid1/lists/miltonbotflock/members

Bot Name: Paradise Lost Book 1
Handle: milton_book1
Description: Tweeting John Milton's Paradise Lost Book 1

Milton book1.jpg

Bot Name: Paradise Lost Book 2
Handle: milton_book2
Description: Tweeting John Milton's Paradise Lost Book 2

Milton book2.jpg

Bot Name: Paradise Lost Book 3
Handle: milton_book3
Description: Tweeting John Milton's Paradise Lost Book 3

Milton book3.jpg

Bot Name: Paradise Lost Book 4
Handle: milton_book4
Description: Tweeting John Milton's Paradise Lost Book 4

Milton book4.jpg

Bot Name: Paradise Lost Book 5
Handle: milton_book5
Description: Tweeting John Milton's Paradise Lost Book 5

Milton book5.jpg

Bot Name: Paradise Lost Book 6
Handle: milton_book6
Description: Tweeting John Milton's Paradise Lost Book 6

Milton book6.jpg

Bot Name: Paradise Lost Book 7
Handle: milton_book7
Description: Tweeting John Milton's Paradise Lost Book 7

Milton book7.jpg

Bot Name: Paradise Lost Book 8
Handle: milton_book8
Description: Tweeting John Milton's Paradise Lost Book 8

Milton book8.jpg

Bot Name: Paradise Lost Book 9
Handle: milton_book9
Description: Tweeting John Milton's Paradise Lost Book 9

Milton book9.jpg

Bot Name: Paradise Lost Book 10
Handle: milton_book10
Description: Tweeting John Milton's Paradise Lost Book 10

Milton book10.jpg

Bot Name: Paradise Lost Book 11
Handle: milton_book11
Description: Tweeting John Milton's Paradise Lost Book 11

Milton book11.jpg

Bot Name: Paradise Lost Book 12
Handle: milton_book12
Description: Tweeting John Milton's Paradise Lost Book 12

Milton book12.jpg

Ginsberg Bot Flock

https://twitter.com/charlesreid1/lists/ginsbergbotflock/members

Bot Name: America
Handle: gbf_america
Description:
Bot Name: Aunt Rose
Handle: gbf_auntrose
Description:
Bot Name: An Open Window on Chicago
Handle: gbf_chicago
Description:
Bot Name: Cosmopolitan Greetings
Handle: gbf_cosmo
Description:
Bot Name: D.C. Mobilization
Handle: gbf_dc
Description:
Bot Name: Death and Fame
Handle: gbf_deathfame
Description:
Bot Name: Death On All Fronts
Handle: gbf_deathfronts
Description:
Bot Name: Ecologue
Handle: gbf_ecologue
Description:
Bot Name: Elegy Che Guevara
Handle: gbf_elegy
Description:
Bot Name: Five A.M.
Handle: gbf_fiveam
Description:
Bot Name: In the depths of the Greyhound Terminal
Handle: gbf_greyhound
Description:
Bot Name: Hospital Window
Handle: gbf_hospital
Description:
Bot Name: Howl
Handle: gbf_howl
Description:
Bot Name: Kaddish
Handle: gbf_kaddish
Description:
Bot Name: The Lion For Real
Handle: gbf_lion
Description:
Bot Name: The Velocity of Money
Handle: gbf_money
Description:
Bot Name: Transcription of Organ Music
Handle: gbf_organ
Description:
Bot Name: Sunflower Sutra
Handle: gbf_sunflower
Description:
Bot Name: A Supermarket in California
Handle: gbf_supermarket
Description:

GBF List

gbf_america
gbf_auntrose
gbf_chicago
gbf_cosmo
gbf_dc
gbf_deathfame
gbf_deathfronts
gbf_ecologue
gbf_elegy
gbf_fiveam
gbf_greyhound
gbf_hospital
gbf_howl
gbf_kaddish
gbf_lion
gbf_money
gbf_organ
gbf_sunflower
gbf_supermarket

Bot Software

Bots/Software

MediaWiki Bots

charlesreid1.com Wiki Bot

Code for charlesreid1.com wiki bot: https://git.charlesreid1.com/wiki/pywikibot

See Pywikibot for details.

Wikipedia Bots

This is an interesting rabbit hole of things to learn more about and write more about. A funny metaphor for understanding the roles of bureaucracy and machines in bureaucracy.

Bot Control Panel

In order to start bots at startup, I created a startup script that will spin off instances of each bot into a separate screen. This script is then added to the list of startup scripts, so that if the machine dies, the bots will start again when the machine is restarted.

Here's how that works:

  • I called screen from the command line (actually from a script) in a way that starts a detached, headless screen in the background.
  • Each screen runs a bot flock (a group of related bots), and runs them forever until something goes terribly wrong.
  • I added this script to /etc/rc.local to make it run on boot.

Here's the script:

#!/bin/sh

# -d -m
# Start screen in "detached" mode.
# Create new session but do not attach to it.
# Useful for scripts.

# -S
# This option can give a name to the new screen.

# Apollo bot flock
/usr/bin/screen -d -m -S apollo /usr/bin/python /apollospacejunk/bot/ApolloBotFlock.py

# Ginsberg bot flock
/usr/bin/screen -d -m -S ginsberg /usr/bin/python /ginsberg/bot/GinsbergBotFlock.py

# Milton bot flock
/usr/bin/screen -d -m -S milton /usr/bin/python /milton/bot/MiltonBotFlock.py

Bot Ideas

See Bots/Ideas

Flags