Giter Site home page Giter Site logo

mc-wiki's Introduction

MC-Wiki

一款可以查询mcwiki的Yunzai-bot插件

介绍

一款可以用来查询mcwiki的Yunzai-bot插件,适配Yunzai V3

安装教程

下载此插件,并把它放入./plugins/example目录下

注意事项

本插件使用的wiki是bilibili的镜像站,是为了保证国内的访问速度,如果你有其他更好的选择,修改代码中

let url = `https://wiki.biligame.com/mc/${encodeQuery}`

https://wiki.biligame.com/mc/

可以更改查询的网站

由于会的还不是很多,所以检查查询的错误结果的方法是检测网页的height值,不改变width的话是可以用的

使用说明

使用命令“#wiki”后面跟着想要查询的mc物品即可查询,如果非mc物品或者输入错误会提示查询不到

ToDo

增加使用聊天指令切换镜像站的功能,例如"#wiki设置[1-4]",来切换fandom wiki,中文wiki,哔哩镜像wiki,官方wiki,以及使用检测网页内的元素,来判断搜索是否有结果

mc-wiki's People

Contributors

walkersifolia avatar

Stargazers

五四青年 avatar 禹仔二号 avatar  avatar  avatar

mc-wiki's Issues

关于适配Trss-Yunzai的建议

[TRSSYz][19:18:44.025][MARK] example/mcwiki.js 缺少依赖:icqq
[TRSSYz][19:18:44.025][MARK] 新增插件后请执行安装命令:pnpm install -P 安装依赖
[TRSSYz][19:18:44.025][MARK] 如安装后仍未解决可联系插件作者将 icqq 依赖添加至插件的package.json dependencies中,或手工安装依赖

trss崽无法识别icqq依赖,请问后期是否有适配的计划?
a42bcc357fc0f15702537c36c244bee5

报错 TypeError: puppeteer.browserInit is not a function 的解决方法

打开js文件:

将第2行的 import puppeteer from '../../lib/puppeteer/puppeteer.js';
修改为 import puppeteer from 'puppeteer';

将第26行的 const browser = await puppeteer.browserInit()
修改为 const browser = await puppeteer.launch();

应该就可以了,如果还是报错,截图评论

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.