ukenn2112 / bangumitelegrambot Goto Github PK
View Code? Open in Web Editor NEW在 Telegram 上简单操作 Bangumi
Home Page: https://t.me/BangumiBot
License: MIT License
在 Telegram 上简单操作 Bangumi
Home Page: https://t.me/BangumiBot
License: MIT License
修改文件后缀 data_bgm.json.example 为 data_bgm.json
应该是 bgm_data
related: eternnoir/pyTelegramBotAPI#1551
由于我新买的电脑还在路上,暂时无法修复问题。
出错Log:
2022-05-18 10:33:32,883 - bot.py & consumption_request[line:225] - ERROR: 发生异常 session:41d521f347dc4b86824b6e5c0e778720
Traceback (most recent call last):
File "/root/BangumiTelegramBot/bot.py", line 215, in consumption_request
callback_text = request_handler(session)
File "/root/BangumiTelegramBot/bot.py", line 290, in request_handler
collection_list_page.generate_page(top)
File "/root/BangumiTelegramBot/plugins/callback/collection_list_page.py", line 71, in generate_page
epssssss = info["subject_info"]["eps"]
KeyError: 'subject_info'
是不是有问题了??
今天bangumi.online貌似宕机了一段时间,恢复后发现Bot已经无响应了...
on /info 333176
, ep1
Media captions. up to 1,024 characters.
https://github.com/Ukenn2112/BangumiTelegramBot/blob/master/bot.py#L789
if rating_data == 3:
rating = '3'
collection_post(test_id, subject_id, status, rating)
rating_text()
https://github.com/Ukenn2112/BangumiTelegramBot/blob/master/bot.py#L817
if rating_data == 3:
rating = '10'
collection_post(test_id, subject_id, status, rating)
rating_text()
另外这里可以使用 str(),不需要多个 if
collection_post(test_id, subject_id, status, str(rating_data) )
rating_text()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.