Giter Club home page Giter Club logo

hiumsentences's Introduction

hiumsentences

适用于HoshinoBot V2的网抑云插件, 会附带随机发图(需额外网抑云表情包). 您可以自行添加表情包(可参考下方自用静态资源库), 也可以只发送纯文字.

修改服务名称为中文时请注意,由于使用了关键字触发,如果您设定的服务名包含这些关键字则无法启用或禁用服务,原因是由于指令优先级决定,可参考非官方文档 (自卖自夸.jpg)

本项目GitHub地址:https://github.com/pcrbot/hiumsentences

Gitee地址:https://gitee.com/varmixer/hiumsentences

自用静态资源库地址(不保证更新): https://gitee.com/varmixer/res

语录来源: http://api.heerdev.top/nemusic/all

指令与功能

以下关键词触发: 上号, 生而为人, 生不出人, 网抑云, 已黑化, 到点了

会发送一条网抑云语录加一张表情包, 没有表情包也可以发送纯文字

开始使用

  1. 切换至模块目录下(请自行根据实际情况修改路径):
    cd ~/HoshinoBot/hoshino/modules/
    
  2. 克隆本项目:
    git clone https://github.com/pcrbot/hiumsentences.git
    
  3. 编辑__bot__.py, 在MODULES_ON中按照格式添加hiumsentences
  4. 在HoshinoBot的静态资源库下, 新建目录来存放网抑云表情包, 正确的目录结构:
    res
    |--img
       |--priconne
       |--chat
          |--网抑云
             |--pic1.jpg(名称任意)
             |--pic2.png(名称任意)
             ......
    
    如果您找不到网抑云表情包, 也可以从我自用的静态资源库寻找(链接见开始部分) 国内链接(码云)

其他

  • 网抑云语录已本地化, 保存在nt_words.json中, 您可依照格式自己进行添加删除等操作(请留意json格式), 其中"from"暂时不起用.
  • 欢迎按照格式添加语录后, 补充到本项目中, 或贡献表情包也可
  • 项目最初来源自酷Q某插件, 现在无法查证, 在此感谢API提供者
  • hiumsentences是因为最初时一名群友写的就叫这个名字, 重写时懒得改了所以就还叫这个名字了.

hiumsentences's People

Contributors

var-mixer avatar

Stargazers

Fantasylily avatar 万里 avatar  avatar nihoamfu avatar  avatar 穿越电线 avatar haorui avatar lz已经是条咸鱼了 avatar  avatar ycx avatar test-qq-mail-bot avatar

Watchers

James Cloos avatar  avatar  avatar

hiumsentences's Issues

nonebot1.8会报错

更新hoshinoBot的时候把nonebot按照咖啡佬的requirement更新了,然后报错。
nonebot1 8 4
把nonebot刷回1.6又可以用了。。。大佬要不考虑更新一下。。。

无法使用

按照安装说明clone仓库,然后将相应的资源放到了res的正确位置
出发关键字后提示
[2021-06-25 17:45:44,289 nonebot] INFO: Self: 1816900000, Message 33500000 from 25000000@[群:796500000]: '到点了'
[2021-06-25 17:45:44,290 hiumsentences] INFO: Message 33500000 triggered net_ease_cloud_word.
[2021-06-25 17:45:44,291 hiumsentences] ERROR: <class 'NotImplementedError'> occured when net_ease_cloud_word handling message 33500000.
[2021-06-25 17:45:44,291 hiumsentences] ERROR:
Traceback (most recent call last):
File "/root/pcrbot/HoshinoBot/hoshino/msghandler.py", line 28, in handle_message
await service_func.func(bot, event)
File "/root/pcrbot/HoshinoBot/hoshino/modules/hiumsentences/hiumsentences.py", line 57, in net_ease_cloud_word
sentences += nt_word
File "/root/.cache/pypoetry/virtualenvs/pcrbot-k97M30qc-py3.9/lib/python3.9/site-packages/aiocqhttp/message.py", line 137, in iadd
raise NotImplementedError
NotImplementedError
[2021-06-25 17:45:44,291 nonebot] INFO: Message 33500000 is ignored: Handled by Hoshino

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.