在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):dahlia/mediawiki-rc-mastodon-bot开源软件地址(OpenSource Url):https://github.com/dahlia/mediawiki-rc-mastodon-bot开源编程语言(OpenSource Language):TypeScript 90.9%开源软件介绍(OpenSource Introduction):mediawiki-rc-mastodon-botThis small program continuously relays RecentChanges from a MediaWiki site to a Mastodon account. Each toot will contain up to 4 items with their screenshots. The following toot is an example: Prerequisites
DownloadOfficial executable binaries for Linux, macOS, and Windows are available in the releases page. UsageHere's a command to run with minimum options: mediawiki-rc-mastodon-bot \
https://your-mediawiki-site.wiki/ \
https://your-mastodon-server.social/ \
--mastodon-access-token=YOUR_MASTODON_ACCESS_KEY \
--limit=16 If you want to use Browserless instead of your local web browser for capturing
screenshots, use mediawiki-rc-mastodon-bot \
https://your-mediawiki-site.wiki/ \
https://your-mastodon-server.social/ \
-a YOUR_MASTODON_ACCESS_KEY -C -l 16 \
--browser-ws-endpoint wss://chrome.browserless.io?token=BROWSERLESS_API_KEY For further options, use Continuous operationThis program does not provide daemon mode or long-running mode, but checks
recent changes only once for a invoke. For continous operation, automate
periodical execution using while true; do
mediawiki-rc-mastodon-bot \
https://your-mediawiki-site.wiki/ \
https://your-mastodon-server.social/ \
--mastodon-access-token=YOUR_MASTODON_ACCESS_KEY \
--continue
sleep 1800 # Every 30 minutes
done Note that BuildAs this program is written in TypeScript & Deno, you need Deno first. You could run your own modified version from the local source tree using run.sh script. It's basically a drop-in-replacement of official executable binaries. To build executable binaries, use build.sh script. Output files will be placed under dist/ directory. The directory will be created if not exists. LicenseDistributed under AGPL 3.0 or later. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论