Skip to content

Instantly share code, notes, and snippets.

View misaka4e21's full-sized avatar

Misaka 0x4e21 misaka4e21

View GitHub Profile
@misaka4e21
misaka4e21 / bot.rb
Created April 9, 2012 15:22
一個用ruby+cinch寫的irc機器人——mew
#!/usr/bin/env ruby
#coding=utf-8
require 'cinch'
def get_reply(cmd,params,nick)
case cmd
when "tiaoxi"
if params=="" then
return "各位注意:此用户(#{nick})因传播黄色信息依法被消失(依据刑诉法73条)。请各位谅解。公安部国内安全保卫大队。"