• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

orzFly/mastodon-rss-bot

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

orzFly/mastodon-rss-bot

开源软件地址(OpenSource Url):

https://github.com/orzFly/mastodon-rss-bot

开源编程语言(OpenSource Language):

Go 100.0%

开源软件介绍(OpenSource Introduction):

mastodon-rss-bot

RSS is not supported at this moment. Only Weibo.com forwarding is working at this moment (LOL)

Configuration

Setup

Currently this bot utilizes Airtable (aff link) for storing bot configuration and statuses.

You should create a Airtable base and then create a table named "Bot List" (name must be matched exactly) with the following columns.

  • For a string column, choose Single line text.
  • For a string (multiline) column, choose Long text.
  • For a bool column, choose Checkbox.
Name                       string
Enabled                    bool
Registered                 bool
Activated                  bool
BotInstance                string
BotUsername                string
BotEmail                   string
BotName                    string
BotBio                     string
BotAvatarUrl               string
BotApplicationName         string
BotApplicationUrl          string
RSSUrl                     string
RSSTemplate                string
BotApplicationId           string
BotApplicationClientId     string
BotApplicationClientSecret string
BotPassword                string
BotAvatarUploaded          bool
LastCheckedAt              string
LastPostedAt               string
RSSLastGUIDs               string (multiline)
CleanAndReset              bool

Usage

  1. Create a record like this: (leaving other fields empty)
    Enabled: false
    Registered: false
    Activated: false
    BotInstance: pawoo.net
    BotUsername: oh-my-yummy-bot
    BotEmail: [email protected]
    BotName: Oh My Yummy Bot
    BotBio: Another mastodon-rss-bot bot maintained by @nobody
    BotAvatarUrl: https://media.mstdn.jp/images/accounts/avatars/000/125/787/original/408fca009ef382f0.png
    BotApplicationName: mastodon-rss-bot
    BotApplicationUrl: https://github.com/orzFly/mastodon-rss-bot
    RSSUrl: weibo:1113218211
    
  2. Set Enabled to true.
  3. Run mastodon-rss-bot. The bot will register the account for you. You will find Registered changed to true in Airtable.
  4. Check your e-mail inbox and confirm the account.
  5. Set Activated to true.
  6. Set up a cron job to run mastodon-rss-bot.
  7. Enjoy™

Environment Variables

  • AIRTABLE_API_KEY Airtable API Key (A random string looks like keyXXXXXXXX)
  • AIRTABLE_BASE_ID Airtable Base ID (A random string looks like appXXXXXXXX)
  • RAVEN_DSN Sentry Integration (A random string looks like https://<key>:<secret>@sentry.io/<project>)

Building

  1. glide install
  2. go build -o mastodon-rss-bot
  3. AIRTABLE_API_KEY=keyXXXXXX AIRTABLE_BASE_ID=appXXXXXX ./mastodon-rss-bot

License

Copyright (C) 2017  Yeechan Lu

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
darkcl/MastodonKit: Mastodon API Wrapper in Objective-C发布时间:2022-08-17
下一篇:
eai04191/mastodon-enhanced-beep: 发布时间:2022-08-17
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap