Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Help! My code is more popular than me!

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.
Avatar for Phil Nash 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.

Avatar for Phil Nash

Phil Nash

September 12, 2014

More Decks by Phil Nash

Other Decks in Technology

Transcript

  1. 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 .
  2. 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 .