Stuff and things

Calum writes things of questionable importance here.
Jun 21
Permalink

My stupid IRC bot works!

  • <Calum> !js var stuff = { i: "can", run: "javascript" }; for( i in stuff ) { print( [ i, stuff[i], '' ].join( " " ) ) }
  • <cheesebot> i can run javascript
  • <Calum> !rb [ "!ybuR", "osla", "dnA" ].reverse.map do |str| str.reverse end.join( " " )
  • <cheesebot> And also Ruby!
  • <Calum> !groovy "I honestly don't know how to write a Groovy code sample but it works!"
  • <cheesebot> I honestly don't know how to write a Groovy code sample but it works!
  • <Calum> !scm (define (fib x) (if (< x 2) x (+ (fib (- x 1) ) (fib (- x 2) ) ) ) ) (fib 12)
  • <cheesebot> 144