Skip to content

Commit

Permalink
Merge pull request #97 from Ice-Cirno/dev
Browse files Browse the repository at this point in the history
data update
  • Loading branch information
Ice9Coffee authored Jun 6, 2020
2 parents 835e9a8 + 158413b commit c38d9b5
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 131 deletions.
4 changes: 2 additions & 2 deletions config.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
IS_CQPRO = False # 是否使用Pro版酷Q功能

# 资源库文件夹 Nonebot访问本机资源
RESOURCE_DIR = './res/'
RESOURCE_DIR = r'./res/'

# 资源库 URL 用于docker中的酷Q读取宿主机资源,注意以'/'结尾
# 若留空则图片均采用base64编码发送,开销较大但部署方便
Expand All @@ -44,6 +44,6 @@
'pcrclanbattle',
'priconne',
# 'setu',
'translate',
# 'translate',
# 'twitter',
}
2 changes: 1 addition & 1 deletion hoshino/modules/botmanage/broadcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def broadcast(session:CommandSession):
gl = await session.bot.get_group_list(self_id=sid)
gl = [ g['group_id'] for g in gl ]
for g in gl:
await asyncio.sleep(0.1)
await asyncio.sleep(0.5)
try:
await session.bot.send_group_msg(self_id=sid, group_id=g, message=msg)
logger.info(f'群{g} 投递广播成功')
Expand Down
4 changes: 2 additions & 2 deletions hoshino/modules/pcrclanbattle/clanbattle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ async def _clanbattle_bus(bot:NoneBot, ctx):

# find cmd
plain_text = ctx['message'].extract_plain_text()
cmd, *args = plain_text.split()
cmd = util.normalize_str(cmd[1:])
cmd, *args = plain_text[1:].split()
cmd = util.normalize_str(cmd)
if cmd in _registry:
func, parser = _registry[cmd]
try:
Expand Down
Loading

0 comments on commit c38d9b5

Please sign in to comment.