MCPcopy Create free account

hub / github.com/cy1159178778/wechat_bot / functions

Functions892 in github.com/cy1159178778/wechat_bot

Method__init__
(self, state, color, parent=None, action=None)
wechat_bot/src/plugins/boardgame/othello_ai.py:7
Method__init__
玩家初始化 :param color: 下棋方,'X' - 黑棋,'O' - 白棋
wechat_bot/src/plugins/boardgame/othello_ai.py:38
Method__init__
初始化棋盘状态
wechat_bot/src/plugins/boardgame/othello_ai.py:178
Method__init__
(self, user_id: str, name: str)
wechat_bot/src/plugins/cchess/game.py:16
Method__init__
(self, level: int = 4)
wechat_bot/src/plugins/cchess/game.py:28
Method__init__
(self)
wechat_bot/src/plugins/cchess/game.py:43
Method__init__
(self, engine_path: Path)
wechat_bot/src/plugins/cchess/engine.py:14
Method__init__
(self, start_fen: str = INIT_FEN)
wechat_bot/src/plugins/cchess/board.py:43
Method__init__
(self, symbol: str)
wechat_bot/src/plugins/cchess/piece.py:34
Method__init__
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:51
Method__init__
(self, size: int = config.ps_default_collect_cache_size)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:64
Method__init__
(self, size: int = config.ps_default_collect_cache_size)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:145
Method__init__
(self, city_name: str, api_key: str, api_type: int = 0)
wechat_bot/src/plugins/heweather/weather_data.py:45
Method__ne__
(self, other)
wechat_bot/common.py:30
Method__str__
(self)
wechat_bot/src/plugins/chess/game.py:25
Method__str__
(self)
wechat_bot/src/plugins/remake/property.py:37
Method__str__
(self)
wechat_bot/src/plugins/remake/property.py:184
Method__str__
(self)
wechat_bot/src/plugins/remake/talent.py:31
Method__str__
(self)
wechat_bot/src/plugins/remake/life.py:22
Method__str__
(self)
wechat_bot/src/plugins/remake/life.py:35
Method__str__
(self)
wechat_bot/src/plugins/boardgame/game.py:37
Method__str__
(self)
wechat_bot/src/plugins/boardgame/game.py:138
Method__str__
(self)
wechat_bot/src/plugins/cchess/move.py:49
Method__str__
(self)
wechat_bot/src/plugins/cchess/move.py:73
Method__str__
(self)
wechat_bot/src/plugins/cchess/game.py:23
Method__str__
(self)
wechat_bot/src/plugins/cchess/board.py:66
Method__str__
(self)
wechat_bot/src/plugins/cchess/piece.py:48
Method_air
(self)
wechat_bot/src/plugins/heweather/weather_data.py:124
Method_calc
( self, past: Dict[str, sdiskio], now: Dict[str, sdiskio], time_passed: float,
wechat_bot/src/plugins/picstatus/collectors/disk.py:74
Method_calc
( self, past: Dict[str, snetio], now: Dict[str, snetio], time_passed: float,
wechat_bot/src/plugins/picstatus/collectors/network.py:41
Method_daily
(self)
wechat_bot/src/plugins/heweather/weather_data.py:115
Method_do_collect
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:157
Method_get
(self)
wechat_bot/src/plugins/picstatus/collectors/__init__.py:69
Method_get_obj
(self)
wechat_bot/src/plugins/picstatus/collectors/disk.py:100
Method_get_obj
(self)
wechat_bot/src/plugins/picstatus/collectors/network.py:67
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/pretty_handle.py:206
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/pcr_handle.py:79
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/guardian_handle.py:195
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/genshin_handle.py:249
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/fgo_handle.py:114
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/ba_handle.py:91
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/azur_handle.py:131
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/onmyoji_handle.py:112
Method_init_data
(self)
wechat_bot/src/plugins/draw_card/handles/prts_handle.py:193
Method_now
(self)
wechat_bot/src/plugins/heweather/weather_data.py:106
Method_warning
(self)
wechat_bot/src/plugins/heweather/weather_data.py:133
Methodacircle
说明: 异步 将 BuildImage 图片变为圆形
wechat_bot/image_utils.py:752
Methodacircle_corner
说明: 异步 矩形四角变圆 参数: :param radii: 半径 :param point_list: 需要变化的角
wechat_bot/image_utils.py:788
Methodacrop
说明: 异步 裁剪图片 参数: :param box: 左上角坐标,右下角坐标 (left, upper, right, lower)
wechat_bot/image_utils.py:567
Methodaellipse
说明: 异步 绘制圆 参数: :param pos: 坐标范围 :param fill: 填充颜色 :param outline: 描线颜色 :p
wechat_bot/image_utils.py:401
Methodafilter
说明: 异步 图片变化 参数: :param filter_: 变化效果 :param aud: 利率
wechat_bot/image_utils.py:874
Methodaline
说明: 异步 画线 参数: :param xy: 坐标 :param fill: 填充 :param width: 线宽
wechat_bot/image_utils.py:720
Functionalpha2white_pil
说明: 将图片透明背景转化为白色 参数: :param pic: 通过PIL打开的图片文件
wechat_bot/image_utils.py:102
Methodapoint
说明: 异步 绘制多个或单独的像素 参数: :param pos: 坐标 :param fill: 填错颜色
wechat_bot/image_utils.py:379
Methodapolygon
说明: 异步 画多边形 参数: :param xy: 坐标 :param fill: 颜色 :param outline: 线宽
wechat_bot/image_utils.py:688
Methodarectangle
说明: 异步 画框 参数: :param xy: 坐标 :param fill: 填充颜色 :param outline: 轮廓颜色 :param
wechat_bot/image_utils.py:652
Methodareplace_color_tran
说明: 异步 颜色替换 参数: :param src_color: 目标颜色,或者使用列表,设置阈值 :param replace_color: 替换颜色
wechat_bot/image_utils.py:910
Methodaresize
说明: 异步 压缩图片 参数: :param ratio: 压缩倍率 :param w: 压缩图片宽度至 w :param h: 压缩图片高度至 h
wechat_bot/image_utils.py:537
Methodarotate
说明: 异步 旋转图片 参数: :param angle: 角度 :param expand: 放大图片适应角度
wechat_bot/image_utils.py:836
Methodasave
说明: 异步 保存图片 参数: :param path: 图片路径
wechat_bot/image_utils.py:512
Methodatransparent
说明: 异步 图片透明化 参数: :param alpha_ratio: 透明化程度 :param n: 透明化大小内边距
wechat_bot/image_utils.py:597
Methodatranspose
说明: 异步 旋转图片(包括边框) 参数: :param angle: 角度
wechat_bot/image_utils.py:856
Functionauto_convert_unit
(value: float, **kw)
wechat_bot/src/plugins/picstatus/templates/pw_render.py:133
Methodbackpropagation
回溯 :param action: 落子点的坐标 :param flipped_pos: 反转棋子坐标列表 :param color: 棋子的属性,[X,0,.]三种情况 :return:
wechat_bot/src/plugins/boardgame/othello_ai.py:290
Functionbg_provider
(func: TBP)
wechat_bot/src/plugins/picstatus/bg_provider.py:33
Functionbots
()
wechat_bot/src/plugins/picstatus/collectors/bot.py:41
Functionbr
(text: str)
wechat_bot/src/plugins/picstatus/templates/pw_render.py:138
Functionbuild_sort_image
说明: 对group_image的图片进行组装 参数: :param image_group: 分组图片列表 :param h: max(宽,高),一般为group_image的返回值,有值时,图片必定为正方形 :pa
wechat_bot/image_utils.py:1723
Methodcalc_one
(name: str, past_it: sdiskio, now_it: sdiskio)
wechat_bot/src/plugins/picstatus/collectors/disk.py:80
Methodcalc_one
(name: str, past_it: snetio, now_it: snetio)
wechat_bot/src/plugins/picstatus/collectors/network.py:47
Functionchat
(user_id, text, image)
wechat_bot/src/plugins/chat/chat.py:126
Methodcheck_font_size
说明: 检查文本所需宽度是否大于图片宽度 参数: :param word: 文本内容
wechat_bot/image_utils.py:588
Methodclose_engine
(self)
wechat_bot/src/plugins/chess/game.py:52
Functioncollect_task
()
wechat_bot/src/plugins/picstatus/collectors/__init__.py:195
Functioncompare_image_with_hash
说明: 比较两张图片的hash值是否相同 参数: :param image_file1: 图片文件路径 :param image_file2: 图片文件路径 :param max_dif: 允许最大hash差值, 越小
wechat_bot/image_utils.py:42
Functioncompressed_image
说明: 压缩图片 参数: :param in_file: 被压缩的文件路径 :param out_file: 压缩后输出的文件路径 :param ratio: 压缩率,宽高 * 压缩率
wechat_bot/image_utils.py:77
Functioncpu_brand
()
wechat_bot/src/plugins/picstatus/collectors/cpu.py:18
Functioncpu_count
()
wechat_bot/src/plugins/picstatus/collectors/cpu.py:40
Functioncpu_count_logical
()
wechat_bot/src/plugins/picstatus/collectors/cpu.py:35
Functioncpu_freq
()
wechat_bot/src/plugins/picstatus/collectors/cpu.py:50
Functioncpu_percent
()
wechat_bot/src/plugins/picstatus/collectors/cpu.py:45
Methoddata_exists
(self)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:217
Functiondebug_plt
(img)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/drawer.py:35
Functiondeco
(cls: Type[TC])
wechat_bot/src/plugins/picstatus/collectors/__init__.py:91
Functiondecorator
(func)
wechat_bot/on.py:6
Functiondisk_usage
()
wechat_bot/src/plugins/picstatus/collectors/disk.py:37
Methoddisplay
打印棋盘 :param step_time: 每一步的耗时, 比如:{"X":1,"O":0},默认值是None :param total_time: 总耗时, 比如:{"X":1,"O":0},默认值是None :return:
wechat_bot/src/plugins/boardgame/othello_ai.py:197
Methoddownload_img
(self, url: str, name: str)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:264
Methoddraw
(self, count: int, pool_name: str, **kwargs)
wechat_bot/src/plugins/draw_card/handles/pretty_handle.py:130
Methoddraw
(self, count: int, pool_name: str, **kwargs)
wechat_bot/src/plugins/draw_card/handles/guardian_handle.py:136
Methoddraw
(self, count: int, user_id: int, pool_name: str = "", **kwargs)
wechat_bot/src/plugins/draw_card/handles/genshin_handle.py:212
Methoddraw
(self, count: int, **kwargs)
wechat_bot/src/plugins/draw_card/handles/base_handle.py:69
Methoddraw
(self, count: int, **kwargs)
wechat_bot/src/plugins/draw_card/handles/prts_handle.py:147
Methoddraw
(self, res: Guess, *, max_guess: int = 8)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/wordle.py:172
Functiondraw_center_text
绘制居中文字 :param draw_target: ImageDraw对象 :param text: 文字 :param left_width: 左边位置横坐标 :param right_width: 右边位置横坐标 :param height:
wechat_bot/src/plugins/draw_card/handles/Paimon_Gacha/draw.py:22
Methoddump_up_char
(self)
wechat_bot/src/plugins/draw_card/handles/azur_handle.py:150
Methodexport_query
(self, player_uid: int)
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/database.py:168
Functionfig2b64
说明: matplotlib图片转base64 参数: :param plt_: matplotlib生成的图片
wechat_bot/image_utils.py:134
Methodfilter_newchar
(info: List[str])
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/database.py:180
Methodfilter_star6char
(info: List[str])
wechat_bot/src/plugins/draw_card/handles/arknights_toolkit/record/database.py:177
← previousnext →601–700 of 892, ranked by callers