mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
message: update new face
This commit is contained in:
parent
96d46f63d2
commit
2156430a24
@ -102,18 +102,23 @@ var faceMap = map[int]string{
|
|||||||
288: "请",
|
288: "请",
|
||||||
289: "睁眼",
|
289: "睁眼",
|
||||||
294: "期待",
|
294: "期待",
|
||||||
295: "拿到红包",
|
|
||||||
296: "真好",
|
296: "真好",
|
||||||
297: "拜谢",
|
297: "拜谢",
|
||||||
298: "元宝",
|
298: "元宝",
|
||||||
299: "牛啊",
|
299: "牛啊",
|
||||||
300: "胖三斤",
|
300: "胖三斤",
|
||||||
301: "好闪",
|
301: "好闪",
|
||||||
303: "右拜年",
|
|
||||||
302: "左拜年",
|
|
||||||
304: "红包包",
|
|
||||||
322: "拒绝",
|
322: "拒绝",
|
||||||
323: "嫌弃",
|
323: "嫌弃",
|
||||||
|
332: "举牌牌",
|
||||||
|
336: "豹富",
|
||||||
|
334: "虎虎生威",
|
||||||
|
347: "大展宏兔",
|
||||||
|
348: "福萝卜",
|
||||||
|
303: "右拜年",
|
||||||
|
302: "左拜年",
|
||||||
|
295: "拿到红包",
|
||||||
|
304: "红包包",
|
||||||
311: "打call",
|
311: "打call",
|
||||||
312: "变形",
|
312: "变形",
|
||||||
313: "嗑到了",
|
313: "嗑到了",
|
||||||
@ -127,9 +132,19 @@ var faceMap = map[int]string{
|
|||||||
321: "老色痞",
|
321: "老色痞",
|
||||||
324: "吃糖",
|
324: "吃糖",
|
||||||
325: "惊吓",
|
325: "惊吓",
|
||||||
|
337: "花朵脸",
|
||||||
|
338: "我想开了",
|
||||||
|
339: "舔屏",
|
||||||
|
341: "打招呼",
|
||||||
|
342: "酸Q",
|
||||||
|
343: "我方了",
|
||||||
|
344: "大怨种",
|
||||||
|
345: "红包多多",
|
||||||
|
346: "你真棒棒",
|
||||||
|
340: "热化了",
|
||||||
|
114: "篮球",
|
||||||
326: "生气",
|
326: "生气",
|
||||||
53: "蛋糕",
|
53: "蛋糕",
|
||||||
114: "篮球",
|
|
||||||
327: "加一",
|
327: "加一",
|
||||||
328: "错号",
|
328: "错号",
|
||||||
329: "对号",
|
329: "对号",
|
||||||
@ -147,6 +162,7 @@ var faceMap = map[int]string{
|
|||||||
185: "羊驼",
|
185: "羊驼",
|
||||||
192: "红包",
|
192: "红包",
|
||||||
137: "鞭炮",
|
137: "鞭炮",
|
||||||
|
333: "烟花",
|
||||||
138: "灯笼",
|
138: "灯笼",
|
||||||
136: "双喜",
|
136: "双喜",
|
||||||
76: "赞",
|
76: "赞",
|
||||||
@ -279,7 +295,19 @@ var stickerMap = map[int]string{
|
|||||||
321: "11",
|
321: "11",
|
||||||
324: "12",
|
324: "12",
|
||||||
325: "14",
|
325: "14",
|
||||||
|
337: "22",
|
||||||
|
338: "20",
|
||||||
|
339: "21",
|
||||||
|
341: "24",
|
||||||
|
342: "26",
|
||||||
|
343: "27",
|
||||||
|
344: "28",
|
||||||
|
345: "29",
|
||||||
|
346: "25",
|
||||||
|
340: "23",
|
||||||
|
114: "13",
|
||||||
326: "15",
|
326: "15",
|
||||||
53: "17",
|
53: "17",
|
||||||
114: "13",
|
137: "18",
|
||||||
|
333: "19",
|
||||||
}
|
}
|
||||||
|
BIN
message/face_config_json.zip
Normal file
BIN
message/face_config_json.zip
Normal file
Binary file not shown.
@ -10,12 +10,14 @@ import (
|
|||||||
"go/format"
|
"go/format"
|
||||||
"html/template"
|
"html/template"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const faceDownloadUrl = `https://down.qq.com/qqface/config/face_config_json_1026_hide.zip?mType=Other` //? 好像是会自动更新的
|
// TODO: Update face_config_json.zip:
|
||||||
|
// 1. download latest linux qq
|
||||||
|
// 2. run and login
|
||||||
|
// 3. copy $HOME/.config/QQ/global/nt_data/Emoji/emoji-resource/face_config_json.zip
|
||||||
|
|
||||||
type ani struct {
|
type ani struct {
|
||||||
QSid string
|
QSid string
|
||||||
@ -51,13 +53,8 @@ var stickerMap = map[int]string{
|
|||||||
func main() {
|
func main() {
|
||||||
f, _ := os.OpenFile("face.go", os.O_WRONLY|os.O_CREATE|os.O_SYNC|os.O_TRUNC, 0o755)
|
f, _ := os.OpenFile("face.go", os.O_WRONLY|os.O_CREATE|os.O_SYNC|os.O_TRUNC, 0o755)
|
||||||
defer func() { _ = f.Close() }()
|
defer func() { _ = f.Close() }()
|
||||||
resp, err := http.Get(faceDownloadUrl)
|
face, _ := os.ReadFile("face_config_json.zip")
|
||||||
if err != nil {
|
reader, _ := zip.NewReader(bytes.NewReader(face), int64(len(face)))
|
||||||
panic(err)
|
|
||||||
}
|
|
||||||
defer resp.Body.Close()
|
|
||||||
rsp, _ := io.ReadAll(resp.Body)
|
|
||||||
reader, _ := zip.NewReader(bytes.NewReader(rsp), resp.ContentLength)
|
|
||||||
file, _ := reader.Open("face_config.json")
|
file, _ := reader.Open("face_config.json")
|
||||||
data, _ := io.ReadAll(file)
|
data, _ := io.ReadAll(file)
|
||||||
faceConfig := config{}
|
faceConfig := config{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user