Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

first commit

  • Loading branch information...
commit 0d325c2e155e230fbbf58d96d29e8baa92f26d9b 0 parents
@jamiew authored
Showing with 102 additions and 0 deletions.
  1. +24 −0 LICENSE
  2. +33 −0 README
  3. +45 −0 fatbot.rb
24 LICENSE
@@ -0,0 +1,24 @@
+MIT License
+Copyright (c) 2009 Jamie Wilkinson
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
33 README
@@ -0,0 +1,33 @@
+ __ _ _ _
+ / _|__ _| |_ | |__ _| |__
+| _/ _` | _| | / _` | '_ \
+|_| \__,_|\__| |_\__,_|_.__/
+
+An IRC bot for the #fatlab channel
+: irc://irc.freenode.net/#fatlab
+: http://fffff.at
+
+
+!echo <your text here>
+Repeat something. See if bot works.
+
+!meme
+Spout an automeme from http://meme.boxofjunk.ws/api.html
+
+
+
+#TODO
+
+!seen <nick>
+When did they last join? Don't forget to check 'jamiew_' too
+
+
+
+
+------ AUTHORS -------
+Jamie Wilkinson <http://jamiedubs.com>
+
+
+
+
+
45 fatbot.rb
@@ -0,0 +1,45 @@
+#!/usr/bin/env ruby
+# this is jamiew's IRC bot for #fatlab
+# his name is DUBTRON 9000
+# http://jamiedubs.com
+
+require 'rubygems'
+require 'isaac'
+require 'open-uri'
+
+
+configure do |c|
+ c.nick = "dubtron"
+ c.realname = "jamiew's bot"
+ c.server = "irc.freenode.net"
+ c.port = 6667
+end
+
+
+# CONNECT
+on :connect do
+ join "#tumblrs", "#fatlab"
+end
+
+
+# log all text
+#on :channel, /.*/ do
+# open("#{channel}.log", "a") do |log|
+# log.puts "#{nick}: #{message}"
+# end
+# puts "#{channel}: #{nick}: #{message}"
+#end
+
+
+# echo things like "quote this: some text"
+on :channel, /^\!echo (.*)/ do
+ msg channel, "#{match[0]}"
+ # msg channel, "#{match[0]} by #{nick}"
+end
+
+# give me a meme
+on :channel, /^\!meme/ do
+ meme = open("http://meme.boxofjunk.ws/moar.txt?lines=1").read.chomp
+ msg channel, meme
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.