Skip to content
This repository
Newer
Older
100644 22 lines (19 sloc) 0.571 kb
2afc3fc6 »
2009-04-24 add file
1 #!/usr/bin/ruby -w
3331febf »
2009-07-04 代码升级到ruby1.9
2 # coding: utf-8
2afc3fc6 »
2009-04-24 add file
3
1e002003 »
2009-06-13 加入全局bot功能开关设置.
4 #irc 设置
2afc3fc6 »
2009-04-24 add file
5 $server = 'irc.freenode.net'
6 $port = 6667
dbba19cd »
2009-07-18 .
7 $nick = "kk-bot"
2afc3fc6 »
2009-04-24 add file
8 $pass = 'ikk-bot'
9 $channel = '#sevk'
1e002003 »
2009-06-13 加入全局bot功能开关设置.
10 $charset = 'UTF-8' # irc频道的字符设置
c1c3f41b » kk
2009-08-30 为ruby1.8添加一些ruby1.9的语法。以让代码兼容1.8和1.9
11 $user = "bot svn ver bot :svn Ver bot"
dbba19cd »
2009-07-18 .
12
13 #功能设置
14 $need_Check_code = true
1e002003 »
2009-06-13 加入全局bot功能开关设置.
15 $need_say_feed = false
18980321 »
2009-04-25 加入HTMLEntities库. \n 修复`t 翻译功能
16 $notitle = false
dbba19cd »
2009-07-18 .
17 $bot_on = true # bot 功能开关
18 $debug = false # 调试开关
2afc3fc6 »
2009-04-24 add file
19
c1c3f41b » kk
2009-08-30 为ruby1.8添加一些ruby1.9的语法。以让代码兼容1.8和1.9
20 #本地显示设置
1e002003 »
2009-06-13 加入全局bot功能开关设置.
21 $local_charset = 'UTF-8'# windows 平台可以设置为 'gb2312 或 gb18030'
dbba19cd »
2009-07-18 .
22 $local_charset = 'GB18030' if RUBY_PLATFORM =~ /win/i # 也可以自动判断是不是windows系统
23
Something went wrong with that request. Please try again.