1
0
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:
Pablo Ovelleiro Corral 2019-04-18 20:45:16 +02:00
parent ad1f63c299
commit 18a24d3ff7
No known key found for this signature in database
GPG Key ID: F7C1D57C8464E825

@ -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