Merge branch 'beelzebub' of git.aiterp.net:Lucifer3/Server into beelzebub

This commit is contained in:
2022-12-31 17:19:26 +01:00
6 changed files with 458 additions and 11 deletions
+3 -2
View File
@@ -7,11 +7,12 @@ import (
)
type PairDevice struct {
ID string `json:"id"`
ID string `json:"id"`
APIKey string `json:"apiKey"`
}
func (c PairDevice) CommandDescription() string {
return fmt.Sprintf("PairDevice(%s)", c.ID)
return fmt.Sprintf("PairDevice(%s, %s)", c.ID, formattools.Asterisks(c.APIKey))
}
func (c PairDevice) Matches(driver string) (sub string, ok bool) {