diff --git a/plugins/gold_redbag/data_source.py b/plugins/gold_redbag/data_source.py index 22eda229..5e91e90b 100755 --- a/plugins/gold_redbag/data_source.py +++ b/plugins/gold_redbag/data_source.py @@ -61,7 +61,8 @@ async def generate_open_redbag_pic(user_id: int, send_user_nickname: str, amount async def _generate_open_redbag_pic(user_id: int, send_user_nickname: str, amount: int, text: str): send_user_nickname += '的红包' amount = str(amount) - head = BuildImage(1000, 980, font_size=30, background=f'{IMAGE_PATH}/prts/redbag_12.png') + random_redbag = random.choice(os.listdir(f"{IMAGE_PATH}/prts/redbag_1")) + head = BuildImage(1000, 980, font_size=30, background=f'{IMAGE_PATH}/prts/redbag_1/{random_redbag}') size = BuildImage(0, 0, font_size=50).getsize(send_user_nickname) # QQ头像 ava_bk = BuildImage(100 + size[0], 66, is_alpha=True, font_size=50) diff --git a/resources/image/prts/redbag_1/redbag_00.png b/resources/image/prts/redbag_1/redbag_00.png new file mode 100644 index 00000000..566d3f5c Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_00.png differ diff --git a/resources/image/prts/redbag_1/redbag_01.png b/resources/image/prts/redbag_1/redbag_01.png new file mode 100644 index 00000000..a3cb502e Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_01.png differ diff --git a/resources/image/prts/redbag_1/redbag_02.png b/resources/image/prts/redbag_1/redbag_02.png new file mode 100644 index 00000000..fff393f1 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_02.png differ diff --git a/resources/image/prts/redbag_1/redbag_03.png b/resources/image/prts/redbag_1/redbag_03.png new file mode 100644 index 00000000..e22f7c54 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_03.png differ diff --git a/resources/image/prts/redbag_1/redbag_04.png b/resources/image/prts/redbag_1/redbag_04.png new file mode 100644 index 00000000..b403c777 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_04.png differ diff --git a/resources/image/prts/redbag_1/redbag_05.png b/resources/image/prts/redbag_1/redbag_05.png new file mode 100644 index 00000000..37637de8 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_05.png differ diff --git a/resources/image/prts/redbag_1/redbag_06.png b/resources/image/prts/redbag_1/redbag_06.png new file mode 100644 index 00000000..68dee3bc Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_06.png differ diff --git a/resources/image/prts/redbag_1/redbag_07.png b/resources/image/prts/redbag_1/redbag_07.png new file mode 100644 index 00000000..a9673d98 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_07.png differ diff --git a/resources/image/prts/redbag_1/redbag_08.png b/resources/image/prts/redbag_1/redbag_08.png new file mode 100644 index 00000000..fc0cbbd8 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_08.png differ diff --git a/resources/image/prts/redbag_1/redbag_09.png b/resources/image/prts/redbag_1/redbag_09.png new file mode 100644 index 00000000..9ba6a3f2 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_09.png differ diff --git a/resources/image/prts/redbag_1/redbag_10.png b/resources/image/prts/redbag_1/redbag_10.png new file mode 100644 index 00000000..c323e647 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_10.png differ diff --git a/resources/image/prts/redbag_1/redbag_11.png b/resources/image/prts/redbag_1/redbag_11.png new file mode 100644 index 00000000..b70bdb68 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_11.png differ diff --git a/resources/image/prts/redbag_1/redbag_12.png b/resources/image/prts/redbag_1/redbag_12.png new file mode 100644 index 00000000..450ff2ed Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_12.png differ diff --git a/resources/image/prts/redbag_1/redbag_13.png b/resources/image/prts/redbag_1/redbag_13.png new file mode 100644 index 00000000..0e6a0ef5 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_13.png differ diff --git a/resources/image/prts/redbag_1/redbag_14.png b/resources/image/prts/redbag_1/redbag_14.png new file mode 100644 index 00000000..fc3c6229 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_14.png differ diff --git a/resources/image/prts/redbag_1/redbag_15.png b/resources/image/prts/redbag_1/redbag_15.png new file mode 100644 index 00000000..bf408a46 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_15.png differ diff --git a/resources/image/prts/redbag_1/redbag_16.png b/resources/image/prts/redbag_1/redbag_16.png new file mode 100644 index 00000000..45cd574e Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_16.png differ diff --git a/resources/image/prts/redbag_1/redbag_17.png b/resources/image/prts/redbag_1/redbag_17.png new file mode 100644 index 00000000..0aa3593f Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_17.png differ diff --git a/resources/image/prts/redbag_1/redbag_18.png b/resources/image/prts/redbag_1/redbag_18.png new file mode 100644 index 00000000..cf5c42a2 Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_18.png differ diff --git a/resources/image/prts/redbag_1/redbag_19.png b/resources/image/prts/redbag_1/redbag_19.png new file mode 100644 index 00000000..3e9d1f4f Binary files /dev/null and b/resources/image/prts/redbag_1/redbag_19.png differ diff --git a/resources/image/prts/redbag_12.png b/resources/image/prts/redbag_1/redbag_20.png similarity index 100% rename from resources/image/prts/redbag_12.png rename to resources/image/prts/redbag_1/redbag_20.png diff --git a/resources/image/prts/redbag_2/abeiduo_00.png b/resources/image/prts/redbag_2/abeiduo_00.png new file mode 100644 index 00000000..eb2bfe10 Binary files /dev/null and b/resources/image/prts/redbag_2/abeiduo_00.png differ diff --git a/resources/image/prts/redbag_2/ganyu_00.png b/resources/image/prts/redbag_2/ganyu_00.png new file mode 100644 index 00000000..e123591d Binary files /dev/null and b/resources/image/prts/redbag_2/ganyu_00.png differ diff --git a/resources/image/prts/redbag_2/ganyu_01.png b/resources/image/prts/redbag_2/ganyu_01.png new file mode 100644 index 00000000..83b2ac56 Binary files /dev/null and b/resources/image/prts/redbag_2/ganyu_01.png differ diff --git a/resources/image/prts/redbag_2/gongzi_00.png b/resources/image/prts/redbag_2/gongzi_00.png new file mode 100644 index 00000000..7cba450d Binary files /dev/null and b/resources/image/prts/redbag_2/gongzi_00.png differ diff --git a/resources/image/prts/redbag_2/hutao_00.png b/resources/image/prts/redbag_2/hutao_00.png new file mode 100644 index 00000000..42954273 Binary files /dev/null and b/resources/image/prts/redbag_2/hutao_00.png differ diff --git a/resources/image/prts/redbag_2/keli_00.png b/resources/image/prts/redbag_2/keli_00.png new file mode 100644 index 00000000..661b1a5a Binary files /dev/null and b/resources/image/prts/redbag_2/keli_00.png differ diff --git a/resources/image/prts/redbag_2/keqing_00.png b/resources/image/prts/redbag_2/keqing_00.png new file mode 100644 index 00000000..aa674d44 Binary files /dev/null and b/resources/image/prts/redbag_2/keqing_00.png differ diff --git a/resources/image/prts/redbag_2/keqing_01.png b/resources/image/prts/redbag_2/keqing_01.png new file mode 100644 index 00000000..1a3874c5 Binary files /dev/null and b/resources/image/prts/redbag_2/keqing_01.png differ diff --git a/resources/image/prts/redbag_2/lvxingzhe_00.png b/resources/image/prts/redbag_2/lvxingzhe_00.png new file mode 100644 index 00000000..371f3802 Binary files /dev/null and b/resources/image/prts/redbag_2/lvxingzhe_00.png differ diff --git a/resources/image/prts/redbag_2/lvxingzhe_01.png b/resources/image/prts/redbag_2/lvxingzhe_01.png new file mode 100644 index 00000000..42f430ba Binary files /dev/null and b/resources/image/prts/redbag_2/lvxingzhe_01.png differ diff --git a/resources/image/prts/redbag_2/nuoaier_00.png b/resources/image/prts/redbag_2/nuoaier_00.png new file mode 100644 index 00000000..7a93dda1 Binary files /dev/null and b/resources/image/prts/redbag_2/nuoaier_00.png differ diff --git a/resources/image/prts/redbag_2/qiqi_00.png b/resources/image/prts/redbag_2/qiqi_00.png new file mode 100644 index 00000000..30a2ccf2 Binary files /dev/null and b/resources/image/prts/redbag_2/qiqi_00.png differ diff --git a/resources/image/prts/redbag_2/shenli_00.png b/resources/image/prts/redbag_2/shenli_00.png new file mode 100644 index 00000000..f0a7cca5 Binary files /dev/null and b/resources/image/prts/redbag_2/shenli_00.png differ diff --git a/resources/image/prts/redbag_2/wanye_00.png b/resources/image/prts/redbag_2/wanye_00.png new file mode 100644 index 00000000..bf61f9b0 Binary files /dev/null and b/resources/image/prts/redbag_2/wanye_00.png differ diff --git a/resources/image/prts/redbag_2/wendi_00.png b/resources/image/prts/redbag_2/wendi_00.png new file mode 100644 index 00000000..6a8120c7 Binary files /dev/null and b/resources/image/prts/redbag_2/wendi_00.png differ diff --git a/resources/image/prts/redbag_2/xiao_00.png b/resources/image/prts/redbag_2/xiao_00.png new file mode 100644 index 00000000..e3d1fc1c Binary files /dev/null and b/resources/image/prts/redbag_2/xiao_00.png differ diff --git a/resources/image/prts/redbag_2/xiao_01.png b/resources/image/prts/redbag_2/xiao_01.png new file mode 100644 index 00000000..fce2cdce Binary files /dev/null and b/resources/image/prts/redbag_2/xiao_01.png differ diff --git a/resources/image/prts/redbag_2/xiaogong_00.png b/resources/image/prts/redbag_2/xiaogong_00.png new file mode 100644 index 00000000..1469e7dd Binary files /dev/null and b/resources/image/prts/redbag_2/xiaogong_00.png differ diff --git a/resources/image/prts/redbag_2/xingqiu_00.png b/resources/image/prts/redbag_2/xingqiu_00.png new file mode 100644 index 00000000..d9e7b127 Binary files /dev/null and b/resources/image/prts/redbag_2/xingqiu_00.png differ diff --git a/resources/image/prts/redbag_2/zhongli_00.png b/resources/image/prts/redbag_2/zhongli_00.png new file mode 100644 index 00000000..b1385b3a Binary files /dev/null and b/resources/image/prts/redbag_2/zhongli_00.png differ diff --git a/resources/image/prts/redbag_2/zhongli_01.png b/resources/image/prts/redbag_2/zhongli_01.png new file mode 100644 index 00000000..1cba9e30 Binary files /dev/null and b/resources/image/prts/redbag_2/zhongli_01.png differ