A bot that tracks and auto-deletes statuses on Mastodon/Pleroma accounts after a set time if they are cringe enough
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
510 B

import time
import json
from bot import Bot, BotClient
class MyBotClient(BotClient):
def on_poll_idle(self):
super().on_poll_idle()
def on_poll_wake(self):
super().on_poll_wake()
def on_poll_status(self, status):
super().on_poll_status(status)
def on_poll_exception(self, exc):
super().on_poll_exception(exc)
with open("config.json") as json_file:
config = json.load(json_file)
bot = Bot(MyBotClient, config)
bot.start()
while True:
time.sleep(1)