mirror of
https://git.phreedom.club/localhost_frssoft/mastodon-group-bot.git
synced 2024-12-27 03:29:48 +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 New Issue
Block a user