Giter Club home page Giter Club logo

nonebot-plugin-drawer's Introduction

nonebot-plugin-drawer

基于文心大模型的AI机器人画画插件。

前提: nonebot2的部署

这里推荐两篇机器人部署教程
1.https://blog.csdn.net/weixin_47113651/article/details/121353191
2.https://zhuanlan.zhihu.com/p/371264976

通过nb-cli安装(推荐)

nb plugin install nonebot-plugin-drawer

通过pip安装

1.pip install nonebot-plugin-drawer 进行安装  
2.在bot.py添加nonebot.load_plugin('nonebot_plugin_drawer')

配置env.*

请在env.*配置文件中加入如下两行

wenxin_ak = "xxxxxxxxxxxxxxxx"
wenxin_sk = "xxxxxxxxxxxxxxxx"
wenxin_cd_time = 300 # 技能冷却时间,以秒为单位
wenxin_image_count = 3 # 画画的图片数量
wenxin_manager_list = ["123456789", "98765432"] # 管理员列表(不触发冷却时间限制)

文心的ak和sk申请链接:https://wenxin.baidu.com/younger/apiDetail?id=20008

使用方法

触发菜单命令:画画帮助 当前支持油画、水彩画、卡通画、粉笔画、儿童画、蜡笔画, 主要擅长风景写意画,请尽量给定比较明确的意象
如:油画 江上落日与晚霞

3a83453d5d28d1eedf0a0ddb5c90d29
油画 江上落日与晚霞

8887badee1c74c8488b613e4ceb83c2
油画 思乡

nonebot-plugin-drawer's People

Contributors

crazyboym avatar

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.