【文件属性】:
文件名称:book-toot-bot:一个Ruby脚本,它将一本书发布到Mastodon帐户中
文件大小:3KB
文件格式:ZIP
更新时间:2021-02-03 13:22:49
bot mastodon MastodonRuby
书机器人
Ruby脚本会将一本书发布到Mastodon帐户。
安装
bundle install
组态
使用以下命令创建config.yml :
base_url : https://botsin.space
token : ...
location : 0
您可以按常规方式在所需的Mastodon服务器上注册,然后从设置中的“开发”选项卡创建访问令牌。 创建带有文本内容的book.txt 。
用法
例如,定期从crontab中获取:
ruby bot.rb
执照
麻省理工学院
【文件预览】:
book-toot-bot-master
----LICENSE(1KB)
----Gemfile(37B)
----Gemfile.lock(628B)
----README.md(516B)
----bot.rb(1KB)