Skip to content

Commit

Permalink
Update Read more... URL
Browse files Browse the repository at this point in the history
  • Loading branch information
AGou-ops committed Dec 9, 2021
1 parent d5d8622 commit 8cbcf76
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
39 changes: 39 additions & 0 deletions crossCompiling.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash
#
#**************************************************
# Author: AGou-ops *
# E-mail: agou-ops@foxmail.com *
# Date: 2021-12-09 *
# Description: *
# Copyright 2021 by AGou-ops.All Rights Reserved *
#**************************************************

binaryBaseName="DingTalk_robot"
version="v0.11"
dist_archs=(386 amd64 arm arm64 mips mips64 mips64le mipsle ppc64 ppc64le riscv64 s390x)

mkdir ../output_binary

for arch in ${dist_archs[@]}
do
env GOOS=linux GOARCH=${arch} go build -x -v -o ../output_binary/${binaryBaseName}_${version}_linux_${arch}
done

env GOOS=windows GOARCH=amd64 go build -x -v -o ../output_binary/${binaryBaseName}_${version}_windows_amd64

trap "echo 'program exit...'; exit 2" SIGINT

echo -e "\n\n"

echo "生成checksum..."

(cd ../output_binary && shasum * > ${binaryBaseName}_${version}.checksums.txt)


echo "
===========
= =
= Done. =
= =
===========
"
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func handlePostMsg(content, sender string) {
getHelpMarkdown := " \n #### **ℹ️帮助信息(请包含以下关键字):** \n\n - **ip: 获取当前网络的IPv4公网地址;** \n - **help: 获取帮助信息;** \n - **about: 关于该机器人**"
SendMarkdownMesg(sender, getHelpMarkdown)
} else if strings.Contains(content, "about") {
SendActionCardMesg("### 🤖关于该机器人\n ![logo](https://agou-images.oss-cn-qingdao.aliyuncs.com/others/robot128_128.png) \n\n Robot version: 0.1 \n\n Backend: go1.17.2 darwin/arm64 \n\n > 更新日志:\n > 1. 初始化,实现基础功能,获取公网IPv4;", "Read More...", "https://xbongbong.com")
SendActionCardMesg("### 🤖关于该机器人\n ![logo](https://agou-images.oss-cn-qingdao.aliyuncs.com/others/robot128_128.png) \n\n Robot version: 0.1 \n\n Backend: go1.17.2 darwin/arm64 \n\n > 更新日志:\n > 1. 初始化,实现基础功能,获取公网IPv4;", "Read More...", "https://agou-ops.cn/post/%E9%92%89%E9%92%89%E7%BE%A4%E8%81%8A%E6%9C%BA%E5%99%A8%E4%BA%BAsample/")
} else {
noKeyMarkdown := " ⚠️*抱歉,您的指令有误!* \n\n #### **帮助信息(请包含以下关键字):** \n - **ip: 获取当前网络的IPv4公网地址;** \n - **help: 获取帮助信息;** \n - **about: 关于该机器人**"
SendMarkdownMesg(sender, noKeyMarkdown)
Expand Down

0 comments on commit 8cbcf76

Please sign in to comment.