【文件属性】:
文件名称:FPLbot:为rFantasyPL制作的机器人
文件大小:16KB
文件格式:ZIP
更新时间:2021-04-04 23:04:25
fantasy-football football fpl fantasy-premier-league Python
FPLbot
FPLbot是为subreddit 制作的机器人。 通过更改配置文件中的值,也可以将其用于其他子reddit。
它的当前功能是:
发布幻想英超联赛球员的价格变动
比较球员和球队的表现
比较一个玩家与另一个玩家的表现
安装
FPLbot使用MongoDB将播放器存储在数据库中,因此需要安装MongoDB。 除此之外,它使用从Fantasy Premier League的API中检索信息,因此需要Python 3.6+。
git clone git@github.com:amosbastian/FPLbot.git
cd FPLbot
pip install -r requirements.txt
要使用文本索引初始化数据库,您应该执行以下操作:
python FPLbot/init.py
完成此操作后,您应该使用正确的值创建自己的config.json (请参阅 )。
【文件预览】:
FPLbot-master
----.gitignore(1KB)
----config.json.example(237B)
----requirements.txt(727B)
----LICENSE(1KB)
----FPLbot()
--------pricechange_time.py(1KB)
--------constants.py(6KB)
--------utils.py(16KB)
--------init.py(412B)
--------starting_eleven.py(4KB)
--------bot.py(7KB)
----post_template.md(320B)
----README.md(4KB)
----comment_template.md(164B)