在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):sipb/mastodon-bot-autoresponder开源软件地址(OpenSource Url):https://github.com/sipb/mastodon-bot-autoresponder开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):mastodon autoresponder botThis bot was developed for mastodon.mit.edu, where people sometimes message @mastodon, the official announcement account, but the maintainers are too lazy to actually monitor it. The bot is written in Python 3 and uses Mastodon.py and beautifulsoup4. The bot can do the following:
The bot will not respond retroactively, i.e., the first time you run it, it will not respond to all the messages your account has received in the past. ConfigurationThe bot is configured in a JSON file that looks like this:
All keys are mandatory. The first group contains information about connecting to the API and authenticating to it. The second group contains the autoresponder message and the usernames of the admins. The last group contains the path to the state file, which contains informations that lets the bot remember which messages it's already replied to (this cannot be empty, but the file doesn't have to exist the first time you run the bot). InstallationThis should really be packaged as a proper Python package, but I haven't done that. If you want to run this bot:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论