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