使用 JavaScript能使本网站更好的工作。
首页
帮助
登录
ben
/
earwigbot
镜像自地址
https://github.com/earwig/earwigbot
关注
1
点赞
1
派生
0
代码
版本发布
4
动态
浏览代码
moving config information to config/
tags/v0.1
Ben Kurtovic
13 年前
父节点
dbafb29e4d
当前提交
b28ccdddfc
共有
4 个文件被更改
,包括
6 次插入
和
6 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
actions.py
+2
-2
bot.py
+0
-0
+3
-3
config/irc_config.py
+ 1
- 1
actions.py
查看文件
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
import string, re, subprocess
from config import *
from config
.irc_config
import *
s, send, say, action, notice, join = None, None, None, None, None, None
+ 2
- 2
bot.py
查看文件
@@ -3,8 +3,8 @@
## Imports
import socket, string, re
from actions import *
from config import *
from secure_config import *
from config
.irc_config
import *
from
config.
secure_config import *
def send(msg): # send a message 'msg' to the server
s.send(msg + "\r\n")
+ 0
- 0
查看文件
config.py → config/irc_config.py
查看文件
@@ -1,5 +1,8 @@
# -*- coding: utf-8 -*-
# EarwigBot Configuration File
# This file contains information that the bot uses to connect to IRC.
# our server's hostname
HOST = "irc.freenode.net"
@@ -18,8 +21,5 @@ REALNAME = "[[w:en:User:EarwigBot]]"
# channel to join on startup
CHANS = ["##earwigbot"]
# sleep this number of seconds in between API calls and messages sent to IRC
THROTTLE = 1
# hostnames of users who can update/restart the bot with !update
ADMINS = ["wikipedia/The-Earwig"]
撰写
预览
正在加载...
取消
保存