Save 37% off PRO during our Black Friday Sale! »

Help! My code is more popular than me!

8ec1383b240b5ba15ffb9743fceb3c0e?s=47 Phil Nash
September 12, 2014

Help! My code is more popular than me!

A lightning talk foray into how a few lines of code can have more conversation or gain more followers on Twitter.

You can find the Monkey Island bot source code at: https://github.com/philnash/guybot.

8ec1383b240b5ba15ffb9743fceb3c0e?s=128

Phil Nash

September 12, 2014
Tweet

Transcript

  1. HELP! MY CODE IS MORE POPULAR THAN ME!

  2. Phil Nash @philnash philnash@twilio.com

  3. I HAVE A PROBLEM

  4. MY CODE IS MORE POPULAR THAN ME

  5. None
  6. MY CODE HAS A BETTER SOCIAL LIFE THAN ME

  7. EXAMPLE

  8. None
  9. None
  10. None
  11. None
  12. The code r e q u i r e '

    t w e e t b o t ' b o t = T w e e t B o t . c o n f i g u r e d o | c o n f i g | c o n f i g . r e s p o n s e _ f r e q u e n c y = 1 0 0 c o n f i g . r e s p o n d _ t o _ p h r a s e " y o u f i g h t l i k e a d a i r y f a r m e r " d o | r e s p o n s e s | r e s p o n s e s < < " H o w a p p r o p r i a t e , y o u f i g h t l i k e a c o w . " e n d e n d c o n f i g . t w i t t e r _ a u t h = T w i t t e r A u t h : : A u t h K e y s b o t . t a l k 0 1 . 0 2 . 0 3 . 0 4 . 0 5 . 0 6 . 0 7 . 0 8 . 0 9 .
  13. Fork it! https://github.com/philnash/guybot

  14. ANOTHER EXAMPLE

  15. None
  16. None
  17. Some code r e q u i r e '

    . / f a c t b o t . r b ' c h u c k = F a c t b o t . n e w ( ' c h u c k ' , E N V [ ' O A U T H _ T O K E N ' ] , E N V [ ' O A U T H _ S E C R E T ' ] ) f a c t = c h u c k . g e t _ f a c t c h u c k . t w e e t ( f a c t ) 0 1 . 0 2 . 0 3 . 0 4 .
  18. None
  19. None
  20. None
  21. None
  22. WRITE CODE

  23. HAVE FUN

  24. BEWARE

  25. Thanks! @philnash philnash@twilio.com