Skip to content

Commit

Permalink
feat(bot): add import command
Browse files Browse the repository at this point in the history
  • Loading branch information
indes committed Jul 9, 2019
1 parent 00f5438 commit 1514531
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bot/bot.go
Expand Up @@ -472,11 +472,17 @@ func makeHandle() {
/list 查看当前订阅源
/set 设置订阅
/help 帮助
/import 导入OPML文件
详细使用方法请看:https://github.com/indes/flowerss-bot
`
_, _ = B.Send(m.Chat, message)
})

B.Handle("/import", func(m *tb.Message) {
message := `请直接发送OPML文件。`
_, _ = B.Send(m.Chat, message)
})

B.Handle(tb.OnText, func(m *tb.Message) {
switch UserState[m.Chat.ID] {
case fsm.UnSub:
Expand Down

0 comments on commit 1514531

Please sign in to comment.