1
0
mirror of https://github.com/pinpox/gitea-matrix-bot synced 2024-11-22 19:31:58 +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, subs,
} }
bot.RegisterCommand("!sub_user", 0, gbot.handleCommandAddSubRepo) bot.RegisterCommand("!sub", 0, gbot.handleCommandAddSub)
bot.RegisterCommand("!sub_repo", 0, gbot.handleCommandAddSubUser) bot.RegisterCommand("!unsub", 0, gbot.handleCommandRemoveSub)
bot.RegisterCommand("!unsub_repo", 0, gbot.handleCommandRemoveSubRepo)
bot.RegisterCommand("!unsub_user", 0, gbot.handleCommandRemoveSubUser)
bot.RegisterCommand("!listsubs", 0, gbot.handleCommandListSubs) bot.RegisterCommand("!listsubs", 0, gbot.handleCommandListSubs)
bot.RegisterCommand("!help", 0, gbot.handleCommandHelp) bot.RegisterCommand("!help", 0, gbot.handleCommandHelp)
@ -122,12 +118,10 @@ I'm your friendly Gitea Bot!
You can invite me to any matrix room to get updates on subscribed gitea repositorys. You can invite me to any matrix room to get updates on subscribed gitea repositorys.
The following commands are avaitible: The following commands are avaitible:
!sub_repo user/repo Subscribe to a repository !sub user/repo Subscribe to a repository
!sub_user user/repo Subscribe to a user (all repos) !unsub user/repo Remove subscription to a repository
!unsub_repo user/repo Remove subscription to a repository !listsubs List the room's subscriptions
!unsub_user user/repo Remove subscription to a user !help Display this message
!listsubs List the room's subscriptions
!help Display this message
Some of the commands might require admin powers! Some of the commands might require admin powers!