mirror of
https://gitea.phreedom.club/localhost_frssoft/mastodon-group-bot.git
synced 2024-12-22 17:23:34 +02:00
Add boost command
This commit is contained in:
parent
1654a40396
commit
ee47200831
1 changed files with 3 additions and 0 deletions
3
bot.go
3
bot.go
|
@ -171,6 +171,9 @@ func RunBot() {
|
|||
mID := mastodon.ID((args[2]))
|
||||
|
||||
switch args[1] {
|
||||
case "boost":
|
||||
c.Reblog(ctx, mID)
|
||||
WarnLogger.Printf("%s was rebloged", mID)
|
||||
case "unboost":
|
||||
c.Unreblog(ctx, mID)
|
||||
WarnLogger.Printf("%s was unrebloged", mID)
|
||||
|
|
Loading…
Reference in a new issue