This commit is contained in:
cdle
2021-09-22 05:55:04 +08:00
parent 455c85f165
commit b7043ac205
2 changed files with 12 additions and 3 deletions
+9
View File
@@ -102,6 +102,15 @@ func (sender *Faker) IsMedia() bool {
}
func (sender *Faker) Reply(msgs ...interface{}) (int, error) {
if len(msgs) == 0 {
return 0, nil
}
switch msgs[0].(type) {
case []byte:
NotifyMasters(string(msgs[0].([]byte)))
case string:
NotifyMasters(msgs[0].(string))
}
return 0, nil
}