Documentation
¶
Index ¶
- Constants
- Variables
- func GetAtPlayerString(p *api.Player) string
- func GetEmojiDigits(dig int) string
- func GetGameStartMessage(session *api.Session) string
- func GetGameStatusMessage(session *api.Session) string
- func GetOpponentEncryptionHistory(session *api.Session, uid string) string
- func GetRoundInfo(r *api.Round) string
- func GetSelfEncryptionHistory(session *api.Session, uid string) string
- func GetTeamStatusMessage(team *api.Team) string
- func RandomEmoji() string
Constants ¶
View Source
const CANT_CREATE_GAME_SESSION = `⚠️ 游戏创建失败惹...
看看日志找找原因吧 👀`
View Source
const CANT_CREATE_GAME_SESSION_IN_GAME_ROOM = `❌ 不能在游戏房间开始新游戏啦~
去游戏大厅@我就好啦!✨`
View Source
const CANT_CREATE_PRIVATE_ROOM = `⚠️ 啊咧?房间创建失败了...
要不查一下日志看看发生啥了?🤔`
View Source
const CANT_FOUNT_GAME_IN_THREAD = `✨ 想结束游戏?✨
先去正在游玩的房间@我呀!😉`
View Source
const CLOSE_ROOM_CMD = "关闭房间"
View Source
const GAME_END_CMD = "结束游戏"
View Source
const GAME_PROCESS = "进度"
View Source
const GAME_START_CMD = "开始游戏"
some command
View Source
const GAME_STATUS_CMD = "游戏状态"
View Source
const GAME_STATUS_MESSAGE_TEMPLATE = `当前第 %d 轮次,以下是对战历史:
%s
`
TODO: 调研一下能否使用折叠 msg
View Source
const HAS_GAME_IN_ROOM = `🎮 这个房间正high着呢,
得等游戏结束才能关闭哦~🎮`
View Source
const NOT_A_GAME_ROOM = `🔍 这不是游戏房间啦,
没法自动关闭,手动关一下吧~👋`
View Source
const OPPONENT_ENCRYPTION_HISTORY = "对方"
View Source
const PLAIN_WORDS = "机密"
View Source
const ROOM_IN_DELETING = `⏳ 房间已经在关闭了啦,
马上就好~稍等一下下 ⏳`
View Source
const ROUND_OVER_MESSAGE = `本轮结束!本轮数据如下:`
View Source
const SECRET_CODES = "密码"
View Source
const SELF_ENCRYPTION_HISTORY = "我方"
View Source
const SPLITTER = " "
View Source
const STATUS_HELP_MESSAGE = `🎮 游戏进行中~ 回复以下关键词: 💫 [` + PLAIN_WORDS + `]: 查看你队伍的机密 🔄 [` + GAME_PROCESS + `]: 查看游戏进度+历史 🤙 [` + SELF_ENCRYPTION_HISTORY + `]: 我方已用加密词 👀 [` + OPPONENT_ENCRYPTION_HISTORY + `]: 偷窥对方已用加密词 当前轮到你来当加密官?回复: 🔐 [` + SECRET_CODES + `]: 查看本局的密码 `
Variables ¶
View Source
var CloseRoomTemplate = loadTemplate("closeRoom", closeRoomTemplate)
View Source
var DecryptDoneMessage = loadTemplate("decryptDoneMessage", decryptDoneMessage)
View Source
var DecryptFailMessage = loadTemplate("decryptFailMessage", decryptFailMessage)
View Source
var DecryptSuccessMessage = loadTemplate("decryptSuccessMessage", decryptSuccessMessage)
View Source
var EncryptSuccess = loadTemplate("encryptSuccess", encryptSuccessTemplate)
View Source
var GameEndTemplate = loadTemplate("gameEnd", gameEndTemplate)
View Source
var GameNameTemplate = loadTemplate("gameName", gameNameTemplate)
View Source
var GameOver = loadTemplate("gameOver", gameOverTemplate)
View Source
var GameRoomsLinkTemplate = loadTemplate("gameRoomsLink", gameRoomsLinkTemplate)
View Source
var GameRoundInfoTempalte = loadTemplate("gameRoundInfo", gameRoundInfoTempalte)
View Source
var GameStartTemplate = loadTemplate("gameStart", gameStartTemplate)
View Source
var GeneralWrongPlayer = loadTemplate("generalWrongPlayer", generalWrongPlayerTemplate)
View Source
var HelpTemplate = loadTemplate("help", helpTemplate)
View Source
var InterceptDoneMessage = loadTemplate("interceptDoneMessage", interceptDoneMessage)
View Source
var InterceptFailMessage = loadTemplate("interceptFailMessage", interceptFailMessage)
View Source
var InterceptSuccessMessage = loadTemplate("interceptSuccessMessage", interceptSuccessMessage)
View Source
var MaxRoundReached = loadTemplate("maxRoundReached", maxRoundReachedTemplate)
View Source
var NoEncryptingMessageTemplate = loadTemplate("noEncryptingMessage", noEncryptingMessageTemplate)
View Source
var ReadyToEncrypt = loadTemplate("readyToEncrypt", readyToEncryptTemplate)
View Source
var ReadyToEncryptMessageTemplate = loadTemplate("readyToEncryptMessage", readyToEncryptMessageTemplate)
View Source
var ReplyWrongDigitsFormat = loadTemplate("replyWrongDigitsFormat", replyWrongDigitsFormatTemplate)
View Source
var ReplyWrongWordsFormat = loadTemplate("replyWrongWordsFormat", replyWrongWordsFormatTemplate)
View Source
var SkipInterceptTemplate = loadTemplate("skipInterceptTemplate", skipInterceptTemplate)
View Source
var StartDecrypt = loadTemplate("startDecrypt", startDecryptTemplate)
View Source
var StartEncrypt = loadTemplate("startEncrypt", startEncryptTemplate)
View Source
var StartIntercept = loadTemplate("startIntercept", startInterceptTemplate)
View Source
var TeamStatusTemplate = loadTemplate("teamStatus", teamStatusTemplate)
Functions ¶
func GetAtPlayerString ¶
获取 qq 允许的 @ 字符串,这些字符串会在聊天栏中被高亮
func GetGameStartMessage ¶
func GetGameStatusMessage ¶
func GetOpponentEncryptionHistory ¶
获取对方加密历史,比如 1: 血,温暖 2: 海洋,天空
func GetRoundInfo ¶
func GetSelfEncryptionHistory ¶
获取我方加密历史,比如 红色: 血,温暖 蓝色: 海洋,天空
func GetTeamStatusMessage ¶
func RandomEmoji ¶
func RandomEmoji() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.