Git Product home page Git Product logo

bothack's Introduction

BotHack

Instructions for the Graphical Web hack session on Twitter bots

Pick a name

First, you'll need a name for your bot. If you get stuck, here are some suggestions:

  • @SurrealFashionBot
  • @SpookyStoryBot
  • @Bot_js
  • @OverhypedTechBot
  • @FortunatelyUnfortunatelyBot
  • @StrangeWeatherBot
  • @SongLyricBot
  • @StudentFoodBot
  • @CreativeBaristaBot
  • @RejectedPatentBot
  • @BadDirectionsBot
  • @MarsRoverBot
  • @RomComBot
  • @BadCodeBot
  • @LocalLegendBot
  • @ExtremeBoardGameBot
  • @DaytimeTVBot
  • @ModernArtBot
  • @MedievalTravellerBot
  • @PacManBot

Create a Twitter account

Sign out of Twitter and create a new account for your bot with its name and handle.

You'll need to provide an email address, which might be tricky if you already have a Twitter account. You can either use a different address, or use one of the workarounds listed here.

Once you've signed up, make sure you follow @GraphicalBot! #shamelessplug

Set up your bot

For this tutorial, we'll be using a site called Cheap Bots Done Quick. Go to their homepage and sign in with the Twitter account you just made.

Make it say stuff!

When you first set up your bot, you'll be given some sample code. Try changing some of the elements and scrolling to the bottom of the page to see what it says.

For another example, here's part of the code from @GraphicalBot:

{
	"language": ["Python", "JavaScript", "CSS"],
	"activity": ["hacking", "coding with"],
	"silly imperative": ["bring plenty of snacks"],
	"sane imperative": ["use source control"],
	"imperative": ["#silly imperative#", "#sane imperative#"],
	"suggestion": ["writing some documentation", "narrowing your focus"],
	"action": ["#activity# #language#"],
	"tip": ["When I'm #action#, I always #imperative#", "If you're #action#, make sure you #imperative#", "If you're #action#, try #suggestion#"],
	"origin": ["#tip#."]
}

Try copying it in, and see the kind of statements it comes up with. Can you change the JSON to let it say:

  • When I'm coding with Python, I always practice mindfulness
  • When you're messing around with JavaScript, be sure to take a deep breath

Finally, there are more examples available at tracery. Go ahead and experiment!

bothack's People

Contributors

rprudden avatar

Watchers

James Cloos avatar Jacob Tomlinson avatar Niall Robinson avatar  avatar  avatar Alastair Gemmell avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.