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

jjg/agentalpha: Experimental mastodon bot

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

开源软件名称(OpenSource Name):

jjg/agentalpha

开源软件地址(OpenSource Url):

https://github.com/jjg/agentalpha

开源编程语言(OpenSource Language):

Python 100.0%

开源软件介绍(OpenSource Introduction):

AgentAlpha

An experimental Mastodon agent written in Python using the ananas framework.

This agent has no specific purpose but is a reusable identity for a number of experiments which if useful, will be given meaningful names and spun-out into their own repository.

Usage

Dependencies

AgentAlpha is written for Python 3. I use venv to ensure the correct environment.

venv setup (optional)

python3 -m venv path/to/your/venvs/agentalpha source path/to/your/venvs/agentalpha/bin/activate

Either way, use pip to install the dependencies from the REQUIREMENTS.TXT file:

pip install -r REQUREMENTS.TXT

Config File

Next you'll need to create the agents.cfg file:

[agentalpha]
class = agents.agentalpha.AgentAlpha

This can end-up storing sensitive information so I don't include it in the repository.

Server Configuration

Finally you can start the agent. You'll need the email address and password for the account you'd like the agent to use:

ananas --interactive agents.cfg

This will prompt your for the agent's server and authentication information. The resulting keys will be stored in agents.cfg, so don't share this with anyone unless you want them to have access to the account.

The next time you run the agent you can leave-off the --interactive flag and the values in the config file will be used by default.

Other Agents

The agents directory contains a number of Python modules describing various experimental agents. By changing the class = line in agents.cfg you can select other agents to run. If you want to run more than one at a time, refer to the ananan documentation.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
orvice/twitter2mastodon: Twitter 2 Mastodon发布时间:2022-08-18
下一篇:
killua99/mastodon-docker: Mastodon 发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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