polybot

授权协议 BSD-3-Clause License
开发语言 Python
所属分类 应用工具、 IM/聊天/语音工具
软件类型 开源软件
地区 不详
投 递 者 盖博简
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Polybot is a framework for making social media bots for multiplenetworks in Python 3.

It currently only supports post-only bots.

Features

  • Automatically post to both Twitter and Mastodon.
  • A friendly setup interface to handle the OAuth hassle for you.
  • Automatic state persistence - just put your state in the self.statedict and it'll get saved/restored across runs.

Example

from polybot import Bot

class HelloWorldBot(Bot):
  def main(self):
    self.post("Hello World")

HelloWorldBot('helloworldbot').run()

To configure the accounts the bot uses, just run:

./helloworldbot.py --setup

You'll be guided through authenticating and a config file will beautomatically created.

Use the --profile [name] to save and use a specific state/config.

By default, the bot will run in development mode, which avoids actuallyposting to networks. To run in live mode, pass the --live flag.

Bots which use polybot

相关阅读

相关文章

相关问答

相关文档