Add boost command

This commit is contained in:
localhost_frssoft 2022-11-25 16:03:41 +03:00
parent 1654a40396
commit ee47200831

3
bot.go
View file

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