mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2026-05-09 08:44:03 +08:00
config panel, kuwo source, playlist operation, bug fix @6, panic handling
This commit is contained in:
@@ -20,6 +20,9 @@ func AddCommand(executors ...DanmuCommandExecutor) {
|
||||
func danmuCommandHandler(event *event.Event) {
|
||||
danmu := event.Data.(*liveclient.DanmuMessage)
|
||||
args := strings.Split(danmu.Message, " ")
|
||||
if len(args[0]) == 0 {
|
||||
return
|
||||
}
|
||||
for _, cmd := range Commands {
|
||||
if cmd.Match(args[0]) {
|
||||
cmd.Execute(args[0], args[1:], danmu)
|
||||
|
||||
Reference in New Issue
Block a user