update headless bot and docker
This commit is contained in:
1 parent
e94d0b2fb7
commit
a6f607e914
5 files changed
+129
-25
No files matched your search
@@ -25,6 +25,8 @@ func platformSquare(platform string) string {
|
||||
return "🟥"
|
||||
case "wb", "wbstream":
|
||||
return "🟪"
|
||||
case "dion":
|
||||
return "🟩"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
@@ -36,7 +38,13 @@ func mainMenuKeyboard() string {
|
||||
{
|
||||
{Action: kbAction{Type: "text", Label: "🟦 VK", Payload: `{"cmd":"vk"}`}},
|
||||
{Action: kbAction{Type: "text", Label: "🟥 Telemost", Payload: `{"cmd":"tm"}`}},
|
||||
},
|
||||
{
|
||||
{Action: kbAction{Type: "text", Label: "🟪 WBStream", Payload: `{"cmd":"wb"}`}},
|
||||
{Action: kbAction{Type: "text", Label: "🟩 DION", Payload: `{"cmd":"dion"}`}},
|
||||
},
|
||||
{
|
||||
{Action: kbAction{Type: "text", Label: "🔗 Join by link", Payload: `{"cmd":"join-prompt"}`}},
|
||||
},
|
||||
{
|
||||
{Action: kbAction{Type: "text", Label: "📋 Active sessions", Payload: `{"cmd":"list"}`}},
|
||||
@@ -47,6 +55,19 @@ func mainMenuKeyboard() string {
|
||||
return string(data)
|
||||
}
|
||||
|
||||
func waitingKeyboard() string {
|
||||
kb := keyboard{
|
||||
OneTime: false,
|
||||
Buttons: [][]kbButton{
|
||||
{
|
||||
{Action: kbAction{Type: "text", Label: "◀️ Back", Payload: `{"cmd":"menu"}`}},
|
||||
},
|
||||
},
|
||||
}
|
||||
data, _ := json.Marshal(kb)
|
||||
return string(data)
|
||||
}
|
||||
|
||||
func sessionsKeyboard(sessions []*session) string {
|
||||
rows := make([][]kbButton, 0, len(sessions)+1)
|
||||
for _, s := range sessions {
|
||||
|
||||
Reference in new issue
Block a user