Giter Site home page Giter Site logo

everyday-bangumi's Introduction

everyday-bangumi

每日番剧推送

部署流程

  1. 在HoshinoBot的插件目录modules下clone本项目 git clone https://github.com/benx1n/everyday-bangumi.git
  2. 在项目文件夹下执行pip install -r requirements.txt安装依赖
  3. config/__bot__.py的模块列表里加入 everyday-bangumi
  4. 重启hoshinoBot
  5. 本插件默认开启,如不需要请在lssv中禁用本模块即可禁用 everyday-bangumi

指令

  • 每日番剧+星期,默认今日,例:
    • 每日番剧
    • 每日番剧 今天
    • 每日番剧 周六
  • 凌晨自动推送当日番剧

预览

感谢

HoshinoBot
nonebot-plugin-htmlrender

everyday-bangumi's People

Contributors

benx1n avatar c1ystal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

c1ystal

everyday-bangumi's Issues

运行时报错,从日志看像是playwright导致的

[2023-02-08 15:53:16,185 nonebot] INFO: 正在安装 firefox
[2023-02-08 15:53:16,185 nonebot] INFO: 正在安装依赖
sh: playwright: command not found
[2023-02-08 15:53:16,879 nonebot] INFO: Message -1082937354 is ignored: Handled by PrefixTrigger of Hoshino
[2023-02-08 15:53:17,375 b站动态监视器] INFO: Scheduled job bili_watch start.
/usr/local/python3/lib/python3.8/site-packages/fuzzywuzzy/fuzz.py:11: UserWarning: Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning
warnings.warn('Using slow pure-python SequenceMatcher. Install python-Levenshtein to remove this warning')
/usr/local/python3/lib/python3.8/site-packages/nonebot/message.py:58: UserWarning: defining message_preprocessor outside a plugin is deprecated and will not be supported in the future
warnings.warn('defining message_preprocessor outside a plugin is deprecated '
Traceback (most recent call last):
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/browser.py", line 17, in init
_browser = await launch_browser(**kwargs)
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/browser.py", line 29, in launch_browser
return await _playwright.firefox.launch(**kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 11704, in launch
await self._async(
File "/usr/local/python3/lib/python3.8/site-packages/playwright/_impl/_browser_type.py", line 90, in launch
Browser, from_channel(await self._channel.send("launch", params))
File "/usr/local/python3/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 39, in send
return await self.inner_send(method, params, False)
File "/usr/local/python3/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 63, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error:
╔════════════════════════════════════════════════════════════╗
║ Host system is missing a few dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ playwright install-deps ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/init.py", line 84, in get_today_bangumi
async with get_new_page() as page:
File "/usr/local/python3/lib/python3.8/contextlib.py", line 171, in aenter
return await self.gen.anext()
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/browser.py", line 38, in get_new_page
browser = await get_browser()
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/browser.py", line 33, in get_browser
return _browser or await init(**kwargs)
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/browser.py", line 20, in init
_browser = await launch_browser(**kwargs)
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/browser.py", line 29, in launch_browser
return await _playwright.firefox.launch(**kwargs)
File "/usr/local/python3/lib/python3.8/site-packages/playwright/async_api/_generated.py", line 11704, in launch
await self._async(
File "/usr/local/python3/lib/python3.8/site-packages/playwright/_impl/_browser_type.py", line 90, in launch
Browser, from_channel(await self._channel.send("launch", params))
File "/usr/local/python3/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 39, in send
return await self.inner_send(method, params, False)
File "/usr/local/python3/lib/python3.8/site-packages/playwright/_impl/_connection.py", line 63, in inner_send
result = next(iter(done)).result()
playwright._impl._api_types.Error:
╔════════════════════════════════════════════════════════════╗
║ Host system is missing a few dependencies to run browsers. ║
║ Please install them with the following command: ║
║ ║
║ playwright install-deps ║
║ ║
║ <3 Playwright Team ║
╚════════════════════════════════════════════════════════════╝
Traceback (most recent call last):
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/init.py", line 43, in send_today_bangumi
await bot.send(ev,str(MessageSegment.image(bytes2b64(img))))
File "/opt/one-key-xcw/HoshinoBot/hoshino/modules/everyday-bangumi/utils.py", line 27, in bytes2b64
return f"base64://{b64encode(im).decode()}"
File "/usr/local/python3/lib/python3.8/base64.py", line 58, in b64encode
encoded = binascii.b2a_base64(s, newline=False)
TypeError: a bytes-like object is required, not 'NoneType'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.