Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

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 5d233bb commit 2cd1301
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bot/bot.go
Original file line number Diff line number Diff line change
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 2cd1301

Please sign in to comment.