mirror-nourybot-matrix/internal/commands/help.go

25 lines
677 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package commands
func Help(cn string) (string, error) {
switch cn {
case "phonetic":
if resp, err := phonetic(); err != nil {
return "", ErrInternalServerError
} else {
return resp, nil
}
}
return "this shouldnt happen xD", nil
}
func phonetic() (string, error) {
// This might look like complete ass depending on the
// matrix clients font. Looks fine on my Element client.
help := `
| Ё | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 0 | - | Ъ |
| Я | Ш | Е | Р | Т | Ы | У | И | О | П | Ю | Щ | Э |
| А | С | Д | Ф | Г | Ч | Й | К | Л | Ь | Ж |
| З | Х | Ц | В | Б | Н | М | ; | : |
`
return help, nil
}