nonebot-plugin-l4d2-server 0.6.6__tar.gz → 1.0.0a1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/PKG-INFO +47 -64
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/README.md +42 -45
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/__init__.py +45 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/__main__.py +90 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/config.py +30 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/header/logo.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html +68 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/back.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/template/group_ip.html +258 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html +1 -2
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html +269 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html +54 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/font/loli.ttf +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//344/273/213/347/273/215.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//344/273/273/345/212/241.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//344/277/241/346/201/257.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/205/254/345/221/212.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/210/200/345/211/221.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/210/207/346/215/242.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/210/240/351/231/244.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/210/267/346/226/260.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/215/241/347/273/204.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/223/252/351/207/214.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/234/260/345/233/276.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/257/274/345/205/245.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/257/274/345/207/272.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//345/275/261.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/213/274/345/233/276.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/216/242/347/264/242.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/216/250/351/200/201.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/224/266/351/233/206.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/224/273/347/225/245.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/233/264/346/226/260.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/235/220/346/226/231.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/237/245/350/257/242.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/240/241/351/252/214.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/257/217/346/234/210.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/267/261/346/270/212.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/267/273/345/212/240.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//346/270/205/351/231/244.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//347/212/266/346/200/201.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//347/255/276/345/210/260.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//347/273/221/345/256/232.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//350/241/250.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//350/241/250/346/203/205.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//350/247/222/350/211/262.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//350/256/260/345/275/225.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//351/205/215/347/275/256.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/icon//351/207/215/345/220/257.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/img/l4d2.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/img/linux.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/img/vac.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/img/white.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/Help.json +65 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/__init__.py +57 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/draw.py +206 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//344/273/213/347/273/215.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//344/273/273/345/212/241.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//344/277/241/346/201/257.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/205/254/345/221/212.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/210/200/345/211/221.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/210/207/346/215/242.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/210/240/351/231/244.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/210/267/346/226/260.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/215/241/347/273/204.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/223/252/351/207/214.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/234/260/345/233/276.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/257/274/345/205/245.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/257/274/345/207/272.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//345/275/261.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/213/274/345/233/276.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/216/242/347/264/242.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/216/250/351/200/201.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/224/266/351/233/206.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/224/273/347/225/245.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/233/264/346/226/260.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/235/220/346/226/231.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/237/245/350/257/242.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/240/241/351/252/214.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/257/217/346/234/210.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/267/261/346/270/212.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/267/273/345/212/240.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//346/270/205/351/231/244.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//347/212/266/346/200/201.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//347/255/276/345/210/260.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//347/273/221/345/256/232.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//350/241/250.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//350/241/250/346/203/205.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//350/247/222/350/211/262.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//350/256/260/345/275/225.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//351/205/215/347/275/256.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/icon//351/207/215/345/220/257.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/texture2d/badge.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/texture2d/banner.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/texture2d/bg.jpg +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/texture2d/button.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_help/texture2d/icon.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/__init__.py +16 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/convert.py +175 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image}/download.py +6 -30
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image/__init__.py → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/html_img.py +54 -45
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/image_tools.py +468 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/anne/back.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img}/head/head.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img}/header/logo.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img}/header/player1.jpg +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Bocchi_The_Rock.html +312 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Bocchi_The_Rock.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/HYPixel11pxU-2.ttf +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Pixel.html +350 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Pixel.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Rainbow.html +321 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Rainbow.png +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/Tutumianhuatang-Bold-2.ttf +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/bilibili.svg +1 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/fingerprint.svg +15 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/github.svg +1 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/l.svg +9 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/m.svg +1 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/normal.html +257 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/vue.css +531 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template/w.svg +1 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/template//345/276/256/350/275/257/351/233/205/351/273/221.ttf +0 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/model.py +15 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image}/vtfs.py +2 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_request/__init__.py +84 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_request/draw_msg.py +88 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/utils/api/api.py +4 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/utils/api/models.py +29 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/utils/api/request.py +119 -0
- nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/utils/database/models.py +29 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/utils}/utils.py +52 -55
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/pyproject.toml +4 -18
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/__init__.py +0 -128
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html +0 -231
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/img/white.png +0 -0
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_anne/__init__.py +0 -95
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_anne/analysis.py +0 -54
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py +0 -79
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_anne/server.py +0 -47
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_anne/startand.py +0 -17
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_anne/utils.py +0 -294
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_data/__init__.py +0 -105
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_data/config.py +0 -18
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_data/database.py +0 -0
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_data/players.py +0 -100
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_data/serverip.py +0 -40
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_file/__init__.py +0 -222
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_file/ayromote.py +0 -64
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_file/input_json.py +0 -77
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_file/remote.py +0 -86
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_file/utils.py +0 -104
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py +0 -18
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image/images.py +0 -92
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image/one.py +0 -44
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py +0 -32
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_image/steam.py +0 -63
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_push/__init__.py +0 -225
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_queries/__init__.py +0 -326
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_queries/himi.py +0 -113
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_queries/local_ip.py +0 -41
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py +0 -370
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_queries/send_msg.py +0 -131
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_queries/utils.py +0 -212
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_server/__init__.py +0 -118
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_server/index.py +0 -0
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_server/rcon.py +0 -53
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_server/workshop.py +0 -82
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_update/__init__.py +0 -137
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_update/draw_update_log.py +0 -45
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_update/restart.py +0 -69
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_update/update.py +0 -53
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/classcal.py +0 -53
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/command.py +0 -23
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/config.py +0 -201
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/message.py +0 -59
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/rule.py +0 -35
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/seach.py +0 -43
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_utils/txt_to_img.py +0 -32
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_web/web.py +0 -277
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_web/webUI.py +0 -506
- nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/l4d2_web/webUI_s.py +0 -94
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/LICENSE +0 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/m.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/vue.css +0 -0
- {nonebot_plugin_l4d2_server-0.6.6 → nonebot_plugin_l4d2_server-1.0.0a1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/w.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image/template → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/anne}/anne.html +0 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image/template → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/anne}/group_ip.html +0 -0
- {nonebot_plugin_l4d2_server-0.6.6/nonebot_plugin_l4d2_server/data/L4D2/image/template → nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/l4_image/img/anne}/ip.html +0 -0
@@ -1,8 +1,8 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nonebot-plugin-l4d2-server
|
3
|
-
Version: 0.
|
3
|
+
Version: 1.0.0a1
|
4
4
|
Summary: L4D2 server related operations plugin for NoneBot2
|
5
|
-
Keywords: steam
|
5
|
+
Keywords: steam,game,l4d2,nonebot2,plugin
|
6
6
|
Home-page: https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
7
7
|
Author-Email: Agnes_Digital <Z735803792@163.com>
|
8
8
|
License: GPLv3
|
@@ -16,29 +16,15 @@ Classifier: Operating System :: OS Independent
|
|
16
16
|
Project-URL: Homepage, https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
17
17
|
Requires-Python: <4.0,>=3.9
|
18
18
|
Requires-Dist: nonebot2>=2.0.0
|
19
|
-
Requires-Dist: nonebot-plugin-htmlrender
|
20
|
-
Requires-Dist:
|
21
|
-
Requires-Dist: nonebot-plugin-
|
22
|
-
Requires-Dist: nonebot-adapter-onebot>=2.2.3
|
23
|
-
Requires-Dist: nonebot-plugin-send-anything-anywhere>=0.2.7
|
24
|
-
Requires-Dist: asyncio>=3.4.3
|
19
|
+
Requires-Dist: nonebot-plugin-htmlrender>=0.3.0
|
20
|
+
Requires-Dist: nonebot-adapter-onebot>=2.4.4
|
21
|
+
Requires-Dist: nonebot-plugin-alconna>=0.50.0
|
25
22
|
Requires-Dist: aiohttp>=3.8.4
|
26
23
|
Requires-Dist: jinja2>=3.0.0
|
27
24
|
Requires-Dist: srctools>=2.3.9
|
28
25
|
Requires-Dist: bs4==0.0.1
|
29
26
|
Requires-Dist: httpx>=0.22.0
|
30
|
-
Requires-Dist: rcon==2.1.0
|
31
|
-
Requires-Dist: pillow<10.0.0
|
32
|
-
Requires-Dist: pyunpack>=0.3.0
|
33
|
-
Requires-Dist: ruamel.yaml==0.17.21
|
34
|
-
Requires-Dist: rarfile>=4.0
|
35
|
-
Requires-Dist: patool>=1.12
|
36
27
|
Requires-Dist: python-a2s>=1.3.0
|
37
|
-
Requires-Dist: amis-python>=1.0.6
|
38
|
-
Requires-Dist: pandas>=1.5.2
|
39
|
-
Requires-Dist: python-jose>=3.3.0
|
40
|
-
Requires-Dist: gitpython>=3.1.27
|
41
|
-
Requires-Dist: attrs>=23.1.0
|
42
28
|
Description-Content-Type: text/markdown
|
43
29
|
|
44
30
|
<!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 MD046 MD051 -->
|
@@ -50,7 +36,7 @@ Description-Content-Type: text/markdown
|
|
50
36
|
|
51
37
|
<div align="center">
|
52
38
|
|
53
|
-
# nonebot_plugin_l4d2_server 0.
|
39
|
+
# nonebot_plugin_l4d2_server 1.0.0a1
|
54
40
|
|
55
41
|
_✨Nonebot & Left 4 Dead 2 server操作✨_
|
56
42
|
<div align = "center">
|
@@ -74,37 +60,29 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
|
|
74
60
|
<img src="https://img.shields.io/pypi/dm/nonebot_plugin_l4d2_server" alt="pypi download">
|
75
61
|
</a>
|
76
62
|
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
|
77
|
-
<img src="https://img.shields.io/badge/nonebot-2.0.0
|
63
|
+
<img src="https://img.shields.io/badge/nonebot-2.0.0+-red.svg" alt="NoneBot">
|
78
64
|
|
79
65
|
</div>
|
80
66
|
|
81
|
-
##
|
67
|
+
## 顶置公告(如果以前用0.x.x版本暂时别更新)
|
82
68
|
|
83
|
-
-
|
69
|
+
- **版本** 1.x.x进行了破坏式更新,目前处于测试阶段,使用旧插件的不要更新
|
84
70
|
|
85
|
-
|
71
|
+
## 更改部分
|
86
72
|
|
87
|
-
-
|
88
|
-
|
89
|
-
-
|
73
|
+
- 取消了网页控制台(没有卵用)
|
74
|
+
- 取消了自动重启(与其他插件功能重复)
|
75
|
+
- 取消了git拉取更新(nb规范用pypi)
|
76
|
+
- 增加pil和浏览器渲染做选择(可以选择pil以节省性能性能)
|
77
|
+
- 删除无用部分(依赖太多难以维护)
|
90
78
|
|
91
79
|
## 安装
|
92
80
|
|
93
81
|
以下提到的方法 任选**其一** 即可
|
94
82
|
|
95
|
-
<details open>
|
96
|
-
<summary>[个人推荐] 使用 nb-cli 安装</summary>
|
97
|
-
在 nonebot2 项目插件文件夹中,输入以下指令克隆项目,并安装相关依赖(如果有虚拟环境,pip安装依赖需要进虚拟环境再安装,或者参考下方包管理器安装方法)
|
98
|
-
|
99
|
-
```bash
|
100
|
-
https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
101
|
-
pip install --no-install nonebot_plugin_l4d2_server
|
102
|
-
```
|
103
|
-
|
104
|
-
</details>
|
105
83
|
|
106
84
|
<details open>
|
107
|
-
<summary>[
|
85
|
+
<summary>[推荐] 使用 nb-cli 安装</summary>
|
108
86
|
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
|
109
87
|
|
110
88
|
```bash
|
@@ -153,24 +131,35 @@ conda install nonebot-plugin-l4d2-server
|
|
153
131
|
|
154
132
|
## 主要功能
|
155
133
|
|
156
|
-
-
|
157
|
-
- 批量查询指定ip服务器状态和玩家
|
158
|
-
-
|
159
|
-
- web控制台
|
160
|
-
- [求生电信服anne](https://github.com/fantasylidong/CompetitiveWithAnne)[查询~](https://sb.trygek.com/l4d_stats/ranking/index.php)
|
134
|
+
- [ ] 求生服务器-本地多路径操作(传地图等)
|
135
|
+
- [ ] 批量查询指定ip服务器状态和玩家
|
136
|
+
- [ ] [求生电信服anne](https://github.com/fantasylidong/CompetitiveWithAnne)[查询~](https://sb.trygek.com/l4d_stats/ranking/index.php)
|
161
137
|
|
162
138
|
## [数据结构](./docs/standand.md)
|
163
139
|
|
164
|
-
##
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
140
|
+
## env设置
|
141
|
+
|
142
|
+
"""bash
|
143
|
+
l4_anne: bool = False
|
144
|
+
"""是否启用anne电信服相关功能"""
|
145
|
+
l4_enable: bool = True
|
146
|
+
"""是否全局启用求生功能"""
|
147
|
+
l4_image: bool = False
|
148
|
+
"""是否启用图片"""
|
149
|
+
l4_connect: bool = True
|
150
|
+
"""是否在查服命令后加入connect ip"""
|
151
|
+
l4_path: str = "data/L4D2"
|
152
|
+
"""插件数据路径"""
|
153
|
+
l4_players: int = 4
|
154
|
+
"""查询总图的时候展示的用户数量"""
|
155
|
+
l4_style: str = "default"
|
156
|
+
"""图片风格,可选包括以下,默认简洁
|
157
|
+
- 暗风格
|
158
|
+
- 孤独摇滚
|
159
|
+
- 电玩像素
|
160
|
+
- 缤纷彩虹
|
161
|
+
- 求生之路
|
162
|
+
"""
|
174
163
|
|
175
164
|
## 其他
|
176
165
|
|
@@ -183,18 +172,12 @@ conda install nonebot-plugin-l4d2-server
|
|
183
172
|
## 🌐 感谢
|
184
173
|
|
185
174
|
- [nonebot2](https://github.com/nonebot/nonebot2)- 聊天机器人的基础框架
|
186
|
-
- [
|
187
|
-
-
|
188
|
-
-
|
189
|
-
|
190
|
-
- [群聊学习](https://github.com/CMHopeSunshine/nonebot-plugin-learning-chat)- web控制台参考
|
191
|
-
- [日向麻麻](https://github.com/Special-Week)- 配置优化参考
|
192
|
-
- [gsuid](https://github.com/KimigaiiWuyi/GenshinUID)- readme和wiki的格式参考,以及3.1版本的更新和重启
|
193
|
-
- 公益服刷服器 - 虽然不知道哪里来的,不过已经添加ip了
|
175
|
+
- [饼干](https://github.com/lgc2333) - 指导nonebot2框架的函数使用
|
176
|
+
- [wuyi](https://github.com/KimigaiiWuyi/) - 指导pil作图
|
177
|
+
- 水果 - html图片优化
|
178
|
+
|
194
179
|
- 感谢以下服主大力支持
|
195
|
-
- Michaela's | 机器人功能测试反馈
|
180
|
+
- Michaela's | 机器人功能测试反馈
|
196
181
|
- 东 | 提供docker部署方法等建议 | [电信服anne游戏群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=6i7r5aJ7Jyg0ejby4rt9GWmFRF53nV1K&authKey=ekMsWepBZPL26%2BfJAG%2F95JD0fhvH39%2BIGVyKOvNlXVDbpIclJlly4kXqukL7JhWR&noverify=0&group_code=883237206)
|
197
|
-
- 呆呆 | 提供三方地图的详细数据 | [呆呆组游戏群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=M5Ei0tYBgi3nwkh-8jfvo3gN5BMhPQGr&authKey=tb2Qa7ykUf5RAe3TBvOIA%2FWdlHAx6tqYXhyV95WqbZXoUx7lU2MRbod7nubiFw16&noverify=0&group_code=592944622)
|
198
|
-
- 柠檬茶 | win端部署测试 | [竹服⭐纯净服游戏群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=G8AkutNEmN9niNCjNJV8YE-vLv4h_EBz&authKey=wG%2BI6Cks4%2FcRGYYLjRNK0Kg4rMUy3BB7H9SKGjU465ktqKcb%2F6m7WxrSTJiX5bvk&noverify=0&group_code=283150432)
|
199
182
|
- 迷茫 | 催命更新byd
|
200
183
|
- ArcPav | 积极反馈bug,提供改进思路
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
<div align="center">
|
9
9
|
|
10
|
-
# nonebot_plugin_l4d2_server 0.
|
10
|
+
# nonebot_plugin_l4d2_server 1.0.0a1
|
11
11
|
|
12
12
|
_✨Nonebot & Left 4 Dead 2 server操作✨_
|
13
13
|
<div align = "center">
|
@@ -31,37 +31,29 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
|
|
31
31
|
<img src="https://img.shields.io/pypi/dm/nonebot_plugin_l4d2_server" alt="pypi download">
|
32
32
|
</a>
|
33
33
|
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
|
34
|
-
<img src="https://img.shields.io/badge/nonebot-2.0.0
|
34
|
+
<img src="https://img.shields.io/badge/nonebot-2.0.0+-red.svg" alt="NoneBot">
|
35
35
|
|
36
36
|
</div>
|
37
37
|
|
38
|
-
##
|
38
|
+
## 顶置公告(如果以前用0.x.x版本暂时别更新)
|
39
39
|
|
40
|
-
-
|
40
|
+
- **版本** 1.x.x进行了破坏式更新,目前处于测试阶段,使用旧插件的不要更新
|
41
41
|
|
42
|
-
|
42
|
+
## 更改部分
|
43
43
|
|
44
|
-
-
|
45
|
-
|
46
|
-
-
|
44
|
+
- 取消了网页控制台(没有卵用)
|
45
|
+
- 取消了自动重启(与其他插件功能重复)
|
46
|
+
- 取消了git拉取更新(nb规范用pypi)
|
47
|
+
- 增加pil和浏览器渲染做选择(可以选择pil以节省性能性能)
|
48
|
+
- 删除无用部分(依赖太多难以维护)
|
47
49
|
|
48
50
|
## 安装
|
49
51
|
|
50
52
|
以下提到的方法 任选**其一** 即可
|
51
53
|
|
52
|
-
<details open>
|
53
|
-
<summary>[个人推荐] 使用 nb-cli 安装</summary>
|
54
|
-
在 nonebot2 项目插件文件夹中,输入以下指令克隆项目,并安装相关依赖(如果有虚拟环境,pip安装依赖需要进虚拟环境再安装,或者参考下方包管理器安装方法)
|
55
|
-
|
56
|
-
```bash
|
57
|
-
https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
58
|
-
pip install --no-install nonebot_plugin_l4d2_server
|
59
|
-
```
|
60
|
-
|
61
|
-
</details>
|
62
54
|
|
63
55
|
<details open>
|
64
|
-
<summary>[
|
56
|
+
<summary>[推荐] 使用 nb-cli 安装</summary>
|
65
57
|
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
|
66
58
|
|
67
59
|
```bash
|
@@ -110,24 +102,35 @@ conda install nonebot-plugin-l4d2-server
|
|
110
102
|
|
111
103
|
## 主要功能
|
112
104
|
|
113
|
-
-
|
114
|
-
- 批量查询指定ip服务器状态和玩家
|
115
|
-
-
|
116
|
-
- web控制台
|
117
|
-
- [求生电信服anne](https://github.com/fantasylidong/CompetitiveWithAnne)[查询~](https://sb.trygek.com/l4d_stats/ranking/index.php)
|
105
|
+
- [ ] 求生服务器-本地多路径操作(传地图等)
|
106
|
+
- [ ] 批量查询指定ip服务器状态和玩家
|
107
|
+
- [ ] [求生电信服anne](https://github.com/fantasylidong/CompetitiveWithAnne)[查询~](https://sb.trygek.com/l4d_stats/ranking/index.php)
|
118
108
|
|
119
109
|
## [数据结构](./docs/standand.md)
|
120
110
|
|
121
|
-
##
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
111
|
+
## env设置
|
112
|
+
|
113
|
+
"""bash
|
114
|
+
l4_anne: bool = False
|
115
|
+
"""是否启用anne电信服相关功能"""
|
116
|
+
l4_enable: bool = True
|
117
|
+
"""是否全局启用求生功能"""
|
118
|
+
l4_image: bool = False
|
119
|
+
"""是否启用图片"""
|
120
|
+
l4_connect: bool = True
|
121
|
+
"""是否在查服命令后加入connect ip"""
|
122
|
+
l4_path: str = "data/L4D2"
|
123
|
+
"""插件数据路径"""
|
124
|
+
l4_players: int = 4
|
125
|
+
"""查询总图的时候展示的用户数量"""
|
126
|
+
l4_style: str = "default"
|
127
|
+
"""图片风格,可选包括以下,默认简洁
|
128
|
+
- 暗风格
|
129
|
+
- 孤独摇滚
|
130
|
+
- 电玩像素
|
131
|
+
- 缤纷彩虹
|
132
|
+
- 求生之路
|
133
|
+
"""
|
131
134
|
|
132
135
|
## 其他
|
133
136
|
|
@@ -140,18 +143,12 @@ conda install nonebot-plugin-l4d2-server
|
|
140
143
|
## 🌐 感谢
|
141
144
|
|
142
145
|
- [nonebot2](https://github.com/nonebot/nonebot2)- 聊天机器人的基础框架
|
143
|
-
- [
|
144
|
-
-
|
145
|
-
-
|
146
|
-
|
147
|
-
- [群聊学习](https://github.com/CMHopeSunshine/nonebot-plugin-learning-chat)- web控制台参考
|
148
|
-
- [日向麻麻](https://github.com/Special-Week)- 配置优化参考
|
149
|
-
- [gsuid](https://github.com/KimigaiiWuyi/GenshinUID)- readme和wiki的格式参考,以及3.1版本的更新和重启
|
150
|
-
- 公益服刷服器 - 虽然不知道哪里来的,不过已经添加ip了
|
146
|
+
- [饼干](https://github.com/lgc2333) - 指导nonebot2框架的函数使用
|
147
|
+
- [wuyi](https://github.com/KimigaiiWuyi/) - 指导pil作图
|
148
|
+
- 水果 - html图片优化
|
149
|
+
|
151
150
|
- 感谢以下服主大力支持
|
152
|
-
- Michaela's | 机器人功能测试反馈
|
151
|
+
- Michaela's | 机器人功能测试反馈
|
153
152
|
- 东 | 提供docker部署方法等建议 | [电信服anne游戏群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=6i7r5aJ7Jyg0ejby4rt9GWmFRF53nV1K&authKey=ekMsWepBZPL26%2BfJAG%2F95JD0fhvH39%2BIGVyKOvNlXVDbpIclJlly4kXqukL7JhWR&noverify=0&group_code=883237206)
|
154
|
-
- 呆呆 | 提供三方地图的详细数据 | [呆呆组游戏群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=M5Ei0tYBgi3nwkh-8jfvo3gN5BMhPQGr&authKey=tb2Qa7ykUf5RAe3TBvOIA%2FWdlHAx6tqYXhyV95WqbZXoUx7lU2MRbod7nubiFw16&noverify=0&group_code=592944622)
|
155
|
-
- 柠檬茶 | win端部署测试 | [竹服⭐纯净服游戏群](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=G8AkutNEmN9niNCjNJV8YE-vLv4h_EBz&authKey=wG%2BI6Cks4%2FcRGYYLjRNK0Kg4rMUy3BB7H9SKGjU465ktqKcb%2F6m7WxrSTJiX5bvk&noverify=0&group_code=283150432)
|
156
153
|
- 迷茫 | 催命更新byd
|
157
154
|
- ArcPav | 积极反馈bug,提供改进思路
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"""
|
2
|
+
* Copyright (c) 2023, Agnes Digital
|
3
|
+
*
|
4
|
+
* This program is free software: you can redistribute it and/or modify
|
5
|
+
* it under the terms of the GNU General Public License as published by
|
6
|
+
* the Free Software Foundation, either version 3 of the License, or
|
7
|
+
* (at your option) any later version.
|
8
|
+
*
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
* GNU General Public License for more details.
|
13
|
+
*
|
14
|
+
* You should have received a copy of the GNU General Public License
|
15
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
"""
|
17
|
+
|
18
|
+
from nonebot import get_driver, require
|
19
|
+
|
20
|
+
require("nonebot_plugin_htmlrender") # noqa: F401
|
21
|
+
require("nonebot_plugin_alconna")
|
22
|
+
|
23
|
+
from nonebot import require
|
24
|
+
from nonebot.plugin import PluginMetadata, inherit_supported_adapters
|
25
|
+
|
26
|
+
from . import __main__ as __main__ # noqa: E402
|
27
|
+
from .config import ConfigModel # noqa: E402
|
28
|
+
from .l4_help import __version__
|
29
|
+
|
30
|
+
driver = get_driver()
|
31
|
+
|
32
|
+
|
33
|
+
__plugin_meta__ = PluginMetadata(
|
34
|
+
name="求生之路小助手",
|
35
|
+
description="可用于管理求生之路查服和本地管理",
|
36
|
+
usage="群内对有关求生之路的查询和操作",
|
37
|
+
config=ConfigModel,
|
38
|
+
type="application",
|
39
|
+
homepage="https://github.com/Agnes4m/nonebot_plugin_l4d2_server",
|
40
|
+
supported_adapters=inherit_supported_adapters("nonebot_plugin_alconna"),
|
41
|
+
extra={
|
42
|
+
"version": __version__,
|
43
|
+
"author": "Agnes4m <Z735803792@163.com>",
|
44
|
+
},
|
45
|
+
)
|
@@ -0,0 +1,90 @@
|
|
1
|
+
"""
|
2
|
+
* Copyright (c) 2023, Agnes Digital
|
3
|
+
*
|
4
|
+
* This program is free software: you can redistribute it and/or modify
|
5
|
+
* it under the terms of the GNU General Public License as published by
|
6
|
+
* the Free Software Foundation, either version 3 of the License, or
|
7
|
+
* (at your option) any later version.
|
8
|
+
*
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
12
|
+
* GNU General Public License for more details.
|
13
|
+
*
|
14
|
+
* You should have received a copy of the GNU General Public License
|
15
|
+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
"""
|
17
|
+
|
18
|
+
from typing import Optional
|
19
|
+
|
20
|
+
from nonebot import require
|
21
|
+
from nonebot.adapters import Message
|
22
|
+
from nonebot.log import logger
|
23
|
+
from nonebot.matcher import Matcher
|
24
|
+
from nonebot.params import CommandArg, CommandStart, RawCommand
|
25
|
+
from nonebot.plugin import on_command
|
26
|
+
|
27
|
+
require("nonebot_plugin_alconna")
|
28
|
+
from nonebot_plugin_alconna import UniMessage
|
29
|
+
|
30
|
+
from .l4_help import get_l4d2_core_help
|
31
|
+
from .l4_request import COMMAND, get_ip_server, get_server_detail, reload_ip
|
32
|
+
|
33
|
+
l4_help = on_command("l4帮助", aliases={"l4help", "l4d2帮助"})
|
34
|
+
l4_request = on_command("anne", aliases=COMMAND)
|
35
|
+
l4_reload = on_command("l4重载", aliases={"l4刷新"})
|
36
|
+
l4_connect = on_command("connect", aliases={"l4连接"})
|
37
|
+
|
38
|
+
|
39
|
+
@l4_help.handle()
|
40
|
+
async def _(matcher: Matcher):
|
41
|
+
"""帮助"""
|
42
|
+
logger.info("开始执行[l4d2帮助]")
|
43
|
+
im = await get_l4d2_core_help()
|
44
|
+
print(type(im))
|
45
|
+
if isinstance(im, str):
|
46
|
+
await matcher.finish(im)
|
47
|
+
await UniMessage.image(raw=im).send()
|
48
|
+
|
49
|
+
|
50
|
+
@l4_request.handle()
|
51
|
+
async def _(
|
52
|
+
start: str = CommandStart(),
|
53
|
+
command: str = RawCommand(),
|
54
|
+
args: Message = CommandArg(),
|
55
|
+
):
|
56
|
+
"""例:
|
57
|
+
指令: /橘5
|
58
|
+
start: /(command开头指令)
|
59
|
+
command: /橘(响应的全部指令)
|
60
|
+
args: 5(响应的指令后的数字)
|
61
|
+
"""
|
62
|
+
|
63
|
+
if start:
|
64
|
+
command = command.replace(start, "")
|
65
|
+
if command == "anne":
|
66
|
+
command = "云"
|
67
|
+
_id: Optional[str] = args.extract_plain_text()
|
68
|
+
if not _id:
|
69
|
+
_id = None
|
70
|
+
logger.info(f"组:{command} ;数字:{_id}")
|
71
|
+
msg = await get_server_detail(command, _id)
|
72
|
+
if msg is not None:
|
73
|
+
if isinstance(msg, str):
|
74
|
+
await UniMessage.text(msg).finish()
|
75
|
+
await UniMessage.image(raw=msg).finish()
|
76
|
+
else:
|
77
|
+
await UniMessage.text("没有这个服呢").send()
|
78
|
+
|
79
|
+
|
80
|
+
@l4_connect.handle()
|
81
|
+
async def _(args: Message = CommandArg()):
|
82
|
+
ip: Optional[str] = args.extract_plain_text()
|
83
|
+
if ip is not None:
|
84
|
+
await UniMessage.text(await get_ip_server(ip)).finish()
|
85
|
+
|
86
|
+
|
87
|
+
@l4_reload.handle()
|
88
|
+
async def _():
|
89
|
+
reload_ip()
|
90
|
+
logger.success("重载ip完成")
|
@@ -0,0 +1,30 @@
|
|
1
|
+
from pathlib import Path
|
2
|
+
|
3
|
+
from nonebot import get_plugin_config
|
4
|
+
from pydantic import BaseModel
|
5
|
+
|
6
|
+
DATAPATH = Path(__file__).parent.joinpath("data")
|
7
|
+
DATAOUT = Path("data/L4D2")
|
8
|
+
server_all_path = DATAOUT / "l4d2"
|
9
|
+
server_all_path.mkdir(parents=True, exist_ok=True)
|
10
|
+
|
11
|
+
ICONPATH = DATAPATH / "icon"
|
12
|
+
|
13
|
+
|
14
|
+
class ConfigModel(BaseModel):
|
15
|
+
l4_anne: bool = False
|
16
|
+
"""是否启用anne电信服相关功能"""
|
17
|
+
l4_enable: bool = True
|
18
|
+
"""是否全局启用求生功能"""
|
19
|
+
l4_image: bool = False
|
20
|
+
"""是否启用图片"""
|
21
|
+
l4_connect: bool = True
|
22
|
+
"""是否在查服命令后加入connect ip"""
|
23
|
+
l4_path: str = "data/L4D2"
|
24
|
+
"""插件数据路径"""
|
25
|
+
l4_players: int = 4
|
26
|
+
"""查询总图的时候展示的用户数量"""
|
27
|
+
l4_style: str = "default"
|
28
|
+
|
29
|
+
|
30
|
+
config = get_plugin_config(ConfigModel)
|
Binary file
|
Binary file
|
nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg
ADDED
Binary file
|
nonebot_plugin_l4d2_server-1.0.0a1/nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<head>
|
4
|
+
<link rel="stylesheet" type="text/css" href="vue.css">
|
5
|
+
</head>
|
6
|
+
</br>
|
7
|
+
|
8
|
+
<body style="background-image: url('back.png'); background-size: cover;">
|
9
|
+
<font color="yellow">
|
10
|
+
{% for item in data %}
|
11
|
+
<h1>
|
12
|
+
<center>求生药役anne电信服数据</center>
|
13
|
+
</h1>
|
14
|
+
<div class="scissors" style="border-top:1px dashed orange;">
|
15
|
+
</div>
|
16
|
+
<h3>
|
17
|
+
<center>
|
18
|
+
{% for msg_one in item.one_msg %}
|
19
|
+
{{ msg_one }}<br>
|
20
|
+
{% endfor %}</center>
|
21
|
+
</h3>
|
22
|
+
</font>
|
23
|
+
<div class="scissors" style="border-top:1px dashed orange;">
|
24
|
+
</div>
|
25
|
+
<div class="myinfo">
|
26
|
+
<table class="transparent-bg">
|
27
|
+
<tbody>
|
28
|
+
<tr>
|
29
|
+
<td rowspan="6">
|
30
|
+
<img src={{item.header}} width="200" height="200" style="border-radius: 50%;">
|
31
|
+
</td>
|
32
|
+
<td>昵  称 | {{item.name}}</td>
|
33
|
+
<td>Steam id | {{item.Steam_ID}}</td>
|
34
|
+
</tr>
|
35
|
+
<tr>
|
36
|
+
<td>游玩时间 | {{item.play_time}}</td>
|
37
|
+
<td>最后上线 | {{item.last_online}}</td>
|
38
|
+
</tr>
|
39
|
+
<tr>
|
40
|
+
<td>排  行 | {{item.rank}}</td>
|
41
|
+
|
42
|
+
<td>分  数 | {{item.points}}</td>
|
43
|
+
</tr>
|
44
|
+
<tr>
|
45
|
+
<td>分数 / 分 | {{item.point_min}}</td>
|
46
|
+
<td>小僵尸数 | {{item.killed}}</td>
|
47
|
+
</tr>
|
48
|
+
<tr>
|
49
|
+
<td>爆  头 | {{item.shut}}</td>
|
50
|
+
<td>爆 头 率 | {{item.out}}</td>
|
51
|
+
</tr>
|
52
|
+
<tr>
|
53
|
+
<td>游玩次数 | {{item.playtimes}}</td>
|
54
|
+
<td>救 援 关 | {{item.last_one}}</td>
|
55
|
+
</tr>
|
56
|
+
</tbody>
|
57
|
+
</table>
|
58
|
+
</div>
|
59
|
+
<font color="yellow">
|
60
|
+
{% endfor %}
|
61
|
+
<h5>
|
62
|
+
<center>©爱丽数码</center></br>
|
63
|
+
<center>
|
64
|
+
Power by Nonebot2 & Design by Agnes Digital
|
65
|
+
</center>
|
66
|
+
</h5>
|
67
|
+
</font>
|
68
|
+
</body>
|