Skip to content

Commit

Permalink
修复了识图功能的BUG
Browse files Browse the repository at this point in the history
修复了一个识图功能的BUG
完善了帮助文档
  • Loading branch information
Angel-Hair committed Jun 14, 2020
1 parent 24bc9c6 commit ba012db
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "d:\\python_venv\\xun\\Scripts\\python.exe"
}
2 changes: 1 addition & 1 deletion xunbot/plugins/ceic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

__plugin_name__ = '地震通报'
__plugin_usage__ = r"""
【被动技能】地震通报(误差±10min)
群技能】【被动技能】地震通报(误差±10min)
""".strip()


Expand Down
2 changes: 2 additions & 0 deletions xunbot/plugins/check/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
进行一次简单的自我检查
如果检查出问题会通知管理员的
*注意并不能检测所有问题,如果发现了问题,请及时反馈*
check [无参数]
自检 [无参数]
""".strip()
Expand Down
11 changes: 8 additions & 3 deletions xunbot/plugins/image/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,21 @@ def get_view(self, ascii2d) -> str:
neet_div = html_index.xpath('//div[@class="detail-link pull-xs-right hidden-sm-down gray-link"]')

if neet_div:
putline = []
a_url_foot = neet_div[0].xpath('./span/a/@href')
url2 = "https://ascii2d.net{}".format(a_url_foot[1])

color = self.get_search_data('', data=html_index)
bovw = self.get_search_data(url2)

if color and bovw:
if color:
putline1 = self.add_repass("色调检索", color)
putline2 = self.add_repass("特征检索", bovw)
repass = "\n".join([putline1, putline2])
putline.append(putline1)
if bovw:
putline2 = self.add_repass("色调检索", color)
putline.append(putline2)

repass = "\n".join(putline)

return repass

Expand Down
1 change: 1 addition & 0 deletions xunbot/plugins/reimu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
__plugin_name__ = '上车'
__plugin_usage__ = r"""
不定期神隐的功能
【上车功能暂时停止更新,但不停止支持,使用时可能会出现无反应或者报错】
*请各位使用后不要转发*
上车 [目的地]
Expand Down

0 comments on commit ba012db

Please sign in to comment.