Skip to content

Commit

Permalink
param
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyThink committed Nov 5, 2020
1 parent 150f0a1 commit 73cabbd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions status.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,12 +205,14 @@ func getContainerInfo(containerName, displayName string) string {

func GetRuntime(containerName, displayName, parseMode string) string {
//container_name: str, display_name: str = "This bot", parse_mode: str = "markdown"

info := getContainerInfo(containerName, displayName)

if parseMode == "" {
parseMode = "markdown"
}
if displayName == "" {
displayName = "This bot"
}
info := getContainerInfo(containerName, displayName)

switch parseMode {
case "html":
info = strings.Replace(info, "😊", "<pre>", -1)
Expand Down

0 comments on commit 73cabbd

Please sign in to comment.