()
| 93 | } |
| 94 | |
| 95 | func ClearChatDirection() error { |
| 96 | path, err := chatDirectionPath() |
| 97 | if err != nil { |
| 98 | return nil |
| 99 | } |
| 100 | if err := os.Remove(path); err != nil && !os.IsNotExist(err) { |
| 101 | return fmt.Errorf("could not remove chat direction file %s: %w", path, err) |
| 102 | } |
| 103 | return nil |
| 104 | } |
| 105 | |
| 106 | func VerifyChatDirectionHeld() error { |
| 107 | if !ChatDirectionOn() { |