mirror of
https://github.com/pinpox/gitea-matrix-bot
synced 2024-11-26 08:43:47 +01:00
Revert "split subscribe commands"
This reverts commit 5862c6171dfd3a6bdebb9540489029c6ffe0eeb1.
This commit is contained in:
parent
ad1f63c299
commit
18a24d3ff7
14
giteabot.go
14
giteabot.go
@ -46,12 +46,8 @@ func NewGiteaBot(user, pass string) *GiteaBot {
|
||||
subs,
|
||||
}
|
||||
|
||||
bot.RegisterCommand("!sub_user", 0, gbot.handleCommandAddSubRepo)
|
||||
bot.RegisterCommand("!sub_repo", 0, gbot.handleCommandAddSubUser)
|
||||
|
||||
bot.RegisterCommand("!unsub_repo", 0, gbot.handleCommandRemoveSubRepo)
|
||||
bot.RegisterCommand("!unsub_user", 0, gbot.handleCommandRemoveSubUser)
|
||||
|
||||
bot.RegisterCommand("!sub", 0, gbot.handleCommandAddSub)
|
||||
bot.RegisterCommand("!unsub", 0, gbot.handleCommandRemoveSub)
|
||||
bot.RegisterCommand("!listsubs", 0, gbot.handleCommandListSubs)
|
||||
bot.RegisterCommand("!help", 0, gbot.handleCommandHelp)
|
||||
|
||||
@ -122,10 +118,8 @@ I'm your friendly Gitea Bot!
|
||||
You can invite me to any matrix room to get updates on subscribed gitea repositorys.
|
||||
The following commands are avaitible:
|
||||
|
||||
!sub_repo user/repo Subscribe to a repository
|
||||
!sub_user user/repo Subscribe to a user (all repos)
|
||||
!unsub_repo user/repo Remove subscription to a repository
|
||||
!unsub_user user/repo Remove subscription to a user
|
||||
!sub user/repo Subscribe to a repository
|
||||
!unsub user/repo Remove subscription to a repository
|
||||
!listsubs List the room's subscriptions
|
||||
!help Display this message
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user