MCPcopy Create free account

hub / github.com/cy1159178778/wechat_bot / functions

Functions892 in github.com/cy1159178778/wechat_bot

↓ 2 callersMethodline
( self, x1: float, y1: float, x2: float, y2: float, attr: Attributes = {} )
wechat_bot/src/plugins/boardgame/svg.py:39
↓ 2 callersFunctionload_collectors
()
wechat_bot/src/plugins/picstatus/collectors/__init__.py:178
↓ 2 callersMethodmark_four_index
标记用户该次次数为四星
wechat_bot/src/plugins/draw_card/count_manager.py:117
↓ 2 callersMethodnull
无移动
wechat_bot/src/plugins/cchess/move.py:77
↓ 2 callersMethodnum_board
数字坐标转化为棋盘坐标 :param action:数字坐标 ,比如(0,0) :return:棋盘坐标,比如 (0,0)---> A1
wechat_bot/src/plugins/boardgame/othello_ai.py:442
↓ 2 callersMethodopen
(self, x: int, y: int)
wechat_bot/src/plugins/minesweeper/data_source.py:159
↓ 2 callersMethodouter
(self)
wechat_bot/src/plugins/boardgame/svg.py:64
↓ 2 callersFunctionparse_env_file
(env_file: Union[str, Path])
wechat_bot/src/plugins/picstatus/collectors/misc.py:30
↓ 2 callersMethodread_lines
(self, endword: str)
wechat_bot/src/plugins/cchess/engine.py:46
↓ 2 callersFunctionrender_current_template
()
wechat_bot/src/plugins/picstatus/templates/__init__.py:66
↓ 2 callersMethodreset
(self)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:194
↓ 2 callersFunctionresolve_file_url
( path: str, additional_locations: Optional[Dict[str, Path]] = None, )
wechat_bot/src/plugins/picstatus/templates/pw_render.py:46
↓ 2 callersMethodsave_history
保存历史局面
wechat_bot/src/plugins/cchess/board.py:345
↓ 2 callersFunctionsave_tmp_fig
_summary_ 将图片临时保存到内存中 Args: fig (_type_): _description_ Returns: _type_: _description_
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:110
↓ 2 callersMethodsearch
(self, turn, depth=3)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:676
↓ 2 callersFunctionsend_emotion
(receiver, path)
wechat_bot/common.py:187
↓ 2 callersMethodset_data
(self, key, value)
wechat_bot/db.py:24
↓ 2 callersMethodset_is_up
设置下次是否必定up
wechat_bot/src/plugins/draw_card/count_manager.py:87
↓ 2 callersFunctionset_timeout
(group_id: str, timeout: int)
wechat_bot/src/plugins/color_see_see/__init__.py:92
↓ 2 callersMethodset_title
说明: 设置标题 参数: :param title: 标题 :param color: 字体颜色
wechat_bot/image_utils.py:1111
↓ 2 callersMethodshow
说明: 展示图像
wechat_bot/image_utils.py:1136
↓ 2 callersFunctionstop_game
(room_id)
wechat_bot/src/plugins/chess/__init__.py:17
↓ 2 callersFunctionstop_game
(room_id)
wechat_bot/src/plugins/boardgame/__init__.py:23
↓ 2 callersFunctionstop_game
(room_id)
wechat_bot/src/plugins/cchess/__init__.py:18
↓ 2 callersFunctiontemplate_to_pic
使用jinja2模板引擎通过html生成图片 Args: template_path (str): 模板路径 template_name (str): 模板名 templates (dict): 模板内参数 如: {"name": "abc"
wechat_bot/browser.py:108
↓ 2 callersMethodtext_distribution
(self, query_type: str = "star")
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:463
↓ 2 callersFunctiontext_to_image
( texts: List[str], fontsize: int = 10, fill: str = "black", spacing: int = 4, max_width:
wechat_bot/src/plugins/remake/drawer.py:41
↓ 2 callersMethodtizi
提子,返回提子的数量
wechat_bot/src/plugins/boardgame/go_ai.py:129
↓ 2 callersMethodtotal_property
(self)
wechat_bot/src/plugins/remake/life.py:90
↓ 2 callersMethodtranspose
说明: 旋转图片(包括边框) 参数: :param angle: 角度
wechat_bot/image_utils.py:865
↓ 2 callersMethodtry_move
尝试移动
wechat_bot/src/plugins/cchess/board.py:378
↓ 2 callersMethoducb
(self, node, uct_scalar=0.0)
wechat_bot/src/plugins/boardgame/othello_ai.py:88
↓ 2 callersFunctionweapon_probability
(rank, count)
wechat_bot/src/plugins/draw_card/handles/Paimon_Gacha/data_source.py:29
↓ 1 callersFunctionAI_toWin
(chessboard, )
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:4
↓ 1 callersMethodCalcScore
(self, board, y=3, x=3)
wechat_bot/src/plugins/boardgame/go_ai.py:16
↓ 1 callersMethodMCTS_search
(self, root, maxt=100)
wechat_bot/src/plugins/boardgame/othello_ai.py:145
↓ 1 callersFunctionP_toWin
(chessboard)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:78
↓ 1 callersMethod__analysis_horizon
(self, board, i, j)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:374
↓ 1 callersMethod__analysis_left
(self, board, i, j)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:400
↓ 1 callersMethod__analysis_right
(self, board, i, j)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:421
↓ 1 callersMethod__analysis_vertical
(self, board, i, j)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:387
↓ 1 callersMethod__evaluate
(self, board, turn)
wechat_bot/src/plugins/boardgame/gomoku_ai2.py:229
↓ 1 callersMethod__init__
( self, record_info: dict, user_id: str, img_param: tuple, file_path:
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:303
↓ 1 callersMethod__init__
(self, tag: str)
wechat_bot/src/plugins/boardgame/svg.py:18
↓ 1 callersMethod__load
(self)
wechat_bot/src/plugins/memes/manager.py:82
↓ 1 callersMethod__refresh_names
(self)
wechat_bot/src/plugins/memes/manager.py:87
↓ 1 callersMethod__refresh_tags
(self)
wechat_bot/src/plugins/memes/manager.py:101
↓ 1 callersMethod__url__
(self)
wechat_bot/src/plugins/heweather/weather_data.py:20
↓ 1 callersMethod_calc
(self, past: T, now: T, time_passed: float)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:151
↓ 1 callersMethod_data_validate
(self)
wechat_bot/src/plugins/heweather/weather_data.py:85
↓ 1 callersMethod_do_collect
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:73
↓ 1 callersMethod_gen_line_graph
说明: 生成折线图 参数: :param y: 坐标点 :param display_num: 显示该点的值
wechat_bot/image_utils.py:1193
↓ 1 callersMethod_get_city_id
(self, api_type: str = "lookup")
wechat_bot/src/plugins/heweather/weather_data.py:69
↓ 1 callersMethod_get_obj
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:154
↓ 1 callersMethod_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:223
↓ 1 callersMethod_init_graph
说明: 初始化图像,生成xy轴 参数: :param x_name: x轴名称 :param y_name: y轴名称 :param x_index: x轴坐标值
wechat_bot/image_utils.py:1320
↓ 1 callersMethod_update_info
(self)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:232
↓ 1 callersMethodadd_child
(self, new_state, action, color)
wechat_bot/src/plugins/boardgame/othello_ai.py:18
↓ 1 callersFunctionadd_date
(daily: List[Daily])
wechat_bot/src/plugins/heweather/render_pic.py:34
↓ 1 callersFunctionadd_mosaic
(bytes_img)
wechat_bot/src/plugins/ai_draw/check_img.py:37
↓ 1 callersMethodadd_score
(self, user_id: str, user_name: str)
wechat_bot/src/plugins/color_see_see/data_source.py:63
↓ 1 callersFunctionadd_tag_color
(air: Air)
wechat_bot/src/plugins/heweather/render_pic.py:59
↓ 1 callersMethodadd_talent
(self, talent: Talent)
wechat_bot/src/plugins/remake/talent.py:99
↓ 1 callersMethodalive
(self)
wechat_bot/src/plugins/remake/life.py:55
↓ 1 callersMethodapply_property
(self, effect: Dict[str, int])
wechat_bot/src/plugins/remake/life.py:87
↓ 1 callersFunctionasync_trans
(text, to)
wechat_bot/src/plugins/translate/aliyun_translate.py:60
↓ 1 callersMethodback_propagate
(self, node, blackw, whitew)
wechat_bot/src/plugins/boardgame/othello_ai.py:55
↓ 1 callersMethodbestmove
根据当前状态获取下一步最佳着法 * `position`: 设置棋盘局面的字符串,形式为 `position fen <FEN> moves <MOVES>` * `time`: 限定搜索时间,单位为毫秒 * `depth`: 限定搜索深度
wechat_bot/src/plugins/cchess/engine.py:62
↓ 1 callersMethodboard_fen
返回当前棋盘布局的FEN字符串
wechat_bot/src/plugins/cchess/board.py:101
↓ 1 callersMethodcheck
是否保底
wechat_bot/src/plugins/draw_card/count_manager.py:137
↓ 1 callersMethodcheck_condition
(self, prop: Property)
wechat_bot/src/plugins/remake/talent.py:37
↓ 1 callersMethodcheck_condition
(self, prop: Property)
wechat_bot/src/plugins/remake/event.py:45
↓ 1 callersMethodcheck_count
检查用户该次抽卡次数累计是否超过最大限制次数
wechat_bot/src/plugins/draw_card/count_manager.py:123
↓ 1 callersFunctioncheck_img
:return: {"conclusion":"合规","log_id":17050803270883834,"isHitMd5":false,"conclusionType":1} {"conclusion":"不合规","log_id":1705080655089497
wechat_bot/src/plugins/ai_draw/check_img.py:10
↓ 1 callersMethodcircle
说明: 使图像变圆
wechat_bot/image_utils.py:759
↓ 1 callersFunctioncircled_number
(num: int)
wechat_bot/src/plugins/draw_card/util.py:40
↓ 1 callersMethodclient
(self)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:235
↓ 1 callersMethodcollect
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:75
↓ 1 callersFunctioncollect_all
()
wechat_bot/src/plugins/picstatus/collectors/__init__.py:170
↓ 1 callersFunctioncollector
(name: str)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:90
↓ 1 callersMethodcount
(self)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/recruit.py:105
↓ 1 callersMethodcount_around
(self, x: int, y: int)
wechat_bot/src/plugins/minesweeper/data_source.py:215
↓ 1 callersMethodcreate_image
将抽卡结果转为图片 :param user: 抽卡用户 :param result: 本次抽卡结果 :param count: 抽卡数量 :param relief: 是否需要浮雕效果 :return
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/gacha/main.py:125
↓ 1 callersFunctioncreate_matchers
()
wechat_bot/src/plugins/memes/__init__.py:245
↓ 1 callersFunctioncreate_matchers
()
wechat_bot/src/plugins/draw_card/__init__.py:165
↓ 1 callersMethodcreate_view
创建查询视图
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/database.py:131
↓ 1 callersMethoddata
(self, inner_text: str)
wechat_bot/src/plugins/boardgame/svg.py:35
↓ 1 callersMethoddraw
(self, count: int, **kwargs)
wechat_bot/src/plugins/draw_card/handles/azur_handle.py:95
↓ 1 callersFunctiondraw_age
(age: int)
wechat_bot/src/plugins/remake/drawer.py:116
↓ 1 callersMethoddraw_all
绘制所有
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:339
↓ 1 callersMethoddraw_background
(self)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:358
↓ 1 callersFunctiondraw_board
(board: "Board", sameside: bool = True)
wechat_bot/src/plugins/cchess/drawer.py:12
↓ 1 callersMethoddraw_chars
(self)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:210
↓ 1 callersMethoddraw_counts
(self, bg: IMG)
wechat_bot/src/plugins/minesweeper/data_source.py:98
↓ 1 callersMethoddraw_face
(self, bg: IMG)
wechat_bot/src/plugins/minesweeper/data_source.py:81
↓ 1 callersFunctiondraw_gacha_img
(user_id: int, num: int)
wechat_bot/src/plugins/draw_card/handles/Paimon_Gacha/draw.py:97
↓ 1 callersFunctiondraw_handler
(game, draw_regex)
wechat_bot/src/plugins/draw_card/__init__.py:111
↓ 1 callersMethoddraw_histo
_summary_ 绘制直方图 Args: query_type (str, optional): _description_. Defaults to 'pool'.
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:388
↓ 1 callersFunctiondraw_init_properties
(prop: PerAgeProperty)
wechat_bot/src/plugins/remake/drawer.py:62
↓ 1 callersMethoddraw_label
(self, bg: IMG)
wechat_bot/src/plugins/minesweeper/data_source.py:141
← previousnext →201–300 of 892, ranked by callers