Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cy1159178778/wechat_bot
/ functions
Functions
892 in github.com/cy1159178778/wechat_bot
⨍
Functions
892
◇
Types & classes
220
↳
Endpoints
2
↓ 324 callers
Method
get
(self, pos: Pos)
wechat_bot/src/plugins/boardgame/game.py:204
↓ 168 callers
Function
send_text
(msg, receiver, aters="", name=None)
wechat_bot/common.py:151
↓ 100 callers
Method
paste
说明: 贴图 参数: :param img: 已打开的图片文件,可以为 BuildImage 或 Image :param pos: 贴图位置(左上角) :param a
wechat_bot/image_utils.py:297
↓ 90 callers
Method
open
(self)
wechat_bot/src/plugins/cchess/engine.py:17
↓ 61 callers
Function
send_image
(receiver, path)
wechat_bot/common.py:173
↓ 47 callers
Method
get
(self, index: int)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/recruit.py:92
↓ 46 callers
Method
text
(self, text: str, x: float, y: float, attr: Attributes = {})
wechat_bot/src/plugins/boardgame/svg.py:57
↓ 29 callers
Method
pop
撤销上一次移动
wechat_bot/src/plugins/cchess/board.py:409
↓ 25 callers
Method
load
(self)
wechat_bot/src/plugins/remake/life.py:50
↓ 24 callers
Method
resize
说明: 调整图像大小 参数: :param ratio: 比例
wechat_bot/image_utils.py:1150
↓ 23 callers
Method
crop
说明: 裁剪图片 参数: :param box: 左上角坐标,右下角坐标 (left, upper, right, lower)
wechat_bot/image_utils.py:576
↓ 23 callers
Function
get_random_file
(name)
wechat_bot/src/plugins/local_file/__init__.py:13
↓ 22 callers
Method
search
( self, meme_name: str, include_tags: bool = False, limit: Optional[int] = Non
wechat_bot/src/plugins/memes/manager.py:55
↓ 19 callers
Method
getsize
说明: 获取文字在该图片 font_size 下所需要的空间 参数: :param msg: 文字内容
wechat_bot/image_utils.py:370
↓ 18 callers
Method
get_star
(star_list: List[int], probability_list: List[float])
wechat_bot/src/plugins/draw_card/handles/base_handle.py:84
↓ 18 callers
Method
load_data
(self, filename: str = "")
wechat_bot/src/plugins/draw_card/handles/base_handle.py:201
↓ 18 callers
Method
pop
(self)
wechat_bot/src/plugins/boardgame/game.py:235
↓ 16 callers
Method
save
(self)
wechat_bot/src/plugins/boardgame/game.py:231
↓ 15 callers
Method
get
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:41
↓ 14 callers
Method
set
(self, index: int)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/recruit.py:95
↓ 13 callers
Method
_get_count
(self, key: int)
wechat_bot/src/plugins/draw_card/count_manager.py:44
↓ 13 callers
Method
bit
(self, pos: Pos)
wechat_bot/src/plugins/boardgame/game.py:198
↓ 12 callers
Function
cn2py
保存声调,防止出现类似方舟干员红与吽拼音相同声调不同导致红照片无法保存的问题
wechat_bot/src/plugins/draw_card/util.py:13
↓ 12 callers
Function
load_font
(fontname: str = "msyh.ttf", fontsize: int = 16)
wechat_bot/src/plugins/draw_card/util.py:34
↓ 12 callers
Function
send_file
(receiver, path)
wechat_bot/common.py:201
↓ 11 callers
Method
close
(self)
wechat_bot/src/plugins/cchess/engine.py:30
↓ 11 callers
Method
convert
说明: 修改图片类型 参数: :param type_: 类型
wechat_bot/image_utils.py:643
↓ 11 callers
Method
get
(cls, url: str)
wechat_bot/src/plugins/daily_report/data_source.py:26
↓ 10 callers
Method
draw
(self)
wechat_bot/src/plugins/chess/game.py:89
↓ 10 callers
Function
draw_property
(item: str, name: str, value: int)
wechat_bot/src/plugins/remake/drawer.py:69
↓ 10 callers
Method
get_piece_pos
获取指定类型的棋子,`piece_type`为空表示所有类型
wechat_bot/src/plugins/cchess/board.py:130
↓ 10 callers
Function
get_url_content
(url, key="")
wechat_bot/common.py:320
↓ 10 callers
Method
in_range
(self, pos: Pos)
wechat_bot/src/plugins/boardgame/game.py:201
↓ 10 callers
Function
run_async_task
(func)
wechat_bot/common.py:335
↓ 9 callers
Method
dpaste
( self, img: Image.Image, pos: Optional[Tuple[int, int]] = None, alpha: bool =
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:100
↓ 9 callers
Method
dump
(self)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/recruit.py:209
↓ 9 callers
Method
g
(self, attr: Attributes = {})
wechat_bot/src/plugins/boardgame/svg.py:61
↓ 9 callers
Function
get_font
(fontsize: int)
wechat_bot/src/plugins/remake/drawer.py:20
↓ 8 callers
Method
get_legal_actions
按照黑白棋的规则获取棋子的合法走法 :param color: 不同颜色的棋子,X-黑棋,O-白棋 :return: 生成合法的落子坐标,用list()方法可以获取所有的合法坐标
wechat_bot/src/plugins/boardgame/othello_ai.py:393
↓ 8 callers
Method
range
(self, lower: int, upper: int)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/recruit.py:101
↓ 8 callers
Method
save
(self)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:496
↓ 7 callers
Method
dtext
说明: 在图片上添加文字 参数: :param pos: 文字位置 :param text: 文字内容 :param fill: 文字颜色
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:80
↓ 7 callers
Method
text
说明: 在图片上添加文字 参数: :param pos: 文字位置(使用center_type中的center后会失效,使用by_width后x失效,使用by_height后y失效) :para
wechat_bot/image_utils.py:462
↓ 7 callers
Method
update
(self, pos: Pos)
wechat_bot/src/plugins/boardgame/go.py:42
↓ 6 callers
Method
attr
(self, attributes: Attributes)
wechat_bot/src/plugins/boardgame/svg.py:31
↓ 6 callers
Method
clear
(self, index: int)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/recruit.py:98
↓ 6 callers
Method
count
统计 color 一方棋子的数量。(O:白棋, X:黑棋, .:未落子状态) :param color: [O,X,.] 表示棋盘上不同的棋子 :return: 返回 color 棋子在棋盘上的总数
wechat_bot/src/plugins/boardgame/othello_ai.py:216
↓ 6 callers
Method
draw
(self)
wechat_bot/src/plugins/minesweeper/data_source.py:71
↓ 6 callers
Method
format_result
(self, index2card: List[Tuple[TC, int]], **kwargs)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:87
↓ 6 callers
Method
generate_img
生成统计图片 :param cards: 卡牌列表 :param num_per_line: 单行角色显示数量 :param max_per_line: 当card_list超过一定数值时,更改单行数量
wechat_bot/src/plugins/draw_card/handles/base_handle.py:140
↓ 6 callers
Method
pic2bytes
说明: BuildImage 转 bytes
wechat_bot/image_utils.py:634
↓ 5 callers
Method
_get_data
(self, url: str, params: dict)
wechat_bot/src/plugins/heweather/weather_data.py:64
↓ 5 callers
Method
board_num
棋盘坐标转化为数字坐标 :param action:棋盘坐标,比如A1 :return:数字坐标,比如 A1 --->(0,0)
wechat_bot/src/plugins/boardgame/othello_ai.py:430
↓ 5 callers
Method
child
(self, tag: str)
wechat_bot/src/plugins/boardgame/svg.py:25
↓ 5 callers
Method
close_engine
(self)
wechat_bot/src/plugins/cchess/game.py:65
↓ 5 callers
Method
draw
(self)
wechat_bot/src/plugins/boardgame/game.py:341
↓ 5 callers
Function
draw_progress_bar
(item: str, summary: PropSummary)
wechat_bot/src/plugins/remake/drawer.py:248
↓ 5 callers
Method
ellipse
说明: 绘制圆 参数: :param pos: 坐标范围 :param fill: 填充颜色 :param outline: 描线颜色 :para
wechat_bot/image_utils.py:419
↓ 5 callers
Method
get_max_guarantee
获取最大保底抽卡次数
wechat_bot/src/plugins/draw_card/count_manager.py:57
↓ 5 callers
Function
get_url_json
(url)
wechat_bot/common.py:294
↓ 5 callers
Method
is_on_board
判断坐标是否出界 :param x: row 行坐标 :param y: col 列坐标 :return: True or False
wechat_bot/src/plugins/boardgame/othello_ai.py:312
↓ 5 callers
Method
move
走一步棋
wechat_bot/src/plugins/boardgame/go_ai.py:108
↓ 5 callers
Method
move
(self, x, y, player)
wechat_bot/src/plugins/boardgame/game.py:45
↓ 5 callers
Function
query_sql
(db, sql)
wechat_bot/common.py:94
↓ 5 callers
Method
rectangle
说明: 画框 参数: :param xy: 坐标 :param fill: 填充颜色 :param outline: 轮廓颜色 :param wi
wechat_bot/image_utils.py:670
↓ 5 callers
Method
set
(self, pos: Pos, value: int)
wechat_bot/src/plugins/boardgame/game.py:212
↓ 5 callers
Method
valid
判断坐标是否在范围内
wechat_bot/src/plugins/cchess/move.py:63
↓ 4 callers
Method
_check_response
(self, response: Response)
wechat_bot/src/plugins/heweather/weather_data.py:98
↓ 4 callers
Method
all_tiles
(self)
wechat_bot/src/plugins/minesweeper/data_source.py:93
↓ 4 callers
Method
analysis_line
(self, line, record, num, pos)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:443
↓ 4 callers
Method
apaste
说明: 异步 贴图 参数: :param img: 已打开的图片文件,可以为 BuildImage 或 Image :param pos: 贴图位置(左上角) :para
wechat_bot/image_utils.py:275
↓ 4 callers
Method
apply
(self, effect: Dict[str, int])
wechat_bot/src/plugins/remake/property.py:213
↓ 4 callers
Function
cut
(box: Tuple[int, int, int, int])
wechat_bot/src/plugins/minesweeper/utils.py:28
↓ 4 callers
Function
draw_title
(text: str)
wechat_bot/src/plugins/remake/drawer.py:331
↓ 4 callers
Method
fen
返回当前局面的FEN字符串
wechat_bot/src/plugins/cchess/board.py:96
↓ 4 callers
Method
get_data
(self, key)
wechat_bot/db.py:30
↓ 4 callers
Method
is_king_face_to_face
判断将帅是否面对面
wechat_bot/src/plugins/cchess/board.py:311
↓ 4 callers
Method
is_valid
(self, x: int, y: int)
wechat_bot/src/plugins/minesweeper/data_source.py:208
↓ 4 callers
Function
match_list_regexp
(reg_list: List[str], txt: str)
wechat_bot/src/plugins/picstatus/util.py:13
↓ 4 callers
Method
null
(cls)
wechat_bot/src/plugins/boardgame/game.py:135
↓ 4 callers
Function
parse_condition
(cond: str)
wechat_bot/src/plugins/remake/utils.py:18
↓ 4 callers
Method
parse_coord
(coord: str)
wechat_bot/src/plugins/cchess/move.py:125
↓ 4 callers
Method
push
(self, pos: Pos)
wechat_bot/src/plugins/boardgame/game.py:224
↓ 4 callers
Method
rect
( self, x1: float, y1: float, x2: float, y2: float, attr: Attributes = {} )
wechat_bot/src/plugins/boardgame/svg.py:49
↓ 4 callers
Function
round_corner
_summary_ 新的开圆角思路 Args: img (_type_): 待开圆角的图 radii (_type_): 圆角半径 back_color:圆角画布背景色 Returns: _type_: _des
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:128
↓ 4 callers
Method
run
(self)
wechat_bot/src/plugins/remake/life.py:68
↓ 4 callers
Method
save
说明: 保存图片 参数: :param path: 路径
wechat_bot/image_utils.py:1159
↓ 4 callers
Method
send_line
(self, line: str)
wechat_bot/src/plugins/cchess/engine.py:34
↓ 4 callers
Method
set_piece
设置棋子
wechat_bot/src/plugins/cchess/board.py:151
↓ 4 callers
Function
set_timeout
(room_id, timeout=900)
wechat_bot/src/plugins/boardgame/__init__.py:37
↓ 4 callers
Function
set_timeout
(room_id, timeout=900)
wechat_bot/src/plugins/cchess/__init__.py:32
↓ 4 callers
Method
ucci
转为 UCCI 格式的坐标
wechat_bot/src/plugins/cchess/move.py:55
↓ 4 callers
Method
valid_coord
(coord: str)
wechat_bot/src/plugins/cchess/move.py:116
↓ 3 callers
Method
__init__
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:46
↓ 3 callers
Method
_check_value
说明: 检查值合法性 参数: :param y: 坐标值 :param y_index: y轴坐标值 :param x_index: x轴坐标值
wechat_bot/image_utils.py:1168
↓ 3 callers
Method
_move
落子并获取反转棋子的坐标 :param action: 落子的坐标 可以是 D3 也可以是(2,3) :param color: [O,X,.] 表示棋盘上不同的棋子 :return: 返回反转棋子的坐标列表,落子失败则返回False
wechat_bot/src/plugins/boardgame/othello_ai.py:262
↓ 3 callers
Method
auto
电脑计算下一步棋的最佳位置
wechat_bot/src/plugins/boardgame/go_ai.py:71
↓ 3 callers
Method
chinese
转为中文格式的移动
wechat_bot/src/plugins/cchess/move.py:128
↓ 3 callers
Method
circle
(self, cx: float, cy: float, r: float, attr: Attributes = {})
wechat_bot/src/plugins/boardgame/svg.py:45
↓ 3 callers
Method
close_engine
(self)
wechat_bot/src/plugins/chess/game.py:83
next →
1–100 of 892, ranked by callers