Skip to main content

Lick the dog diary! Lick the dog and lick to the last nothing.

Project description

NoneBotPluginLogo

nonebot-plugin-dog

✨随机返回一句舔狗日记...(舔狗,舔到最后一无所有)✨

license python cqhttp

介绍

当在群聊里发送“舔狗日记”命令时,bot会回复一句舔狗日记文案......

有可能需要加指令头 " / ",取决于你的command_start设置

SUPERUSER | 群主 | 管理 可以使用:“开启/关闭文案”来控制指令开关(默认=true)

群数据在/你的bot目录/Date/dog/下

⚠️插件支持nonebot=>rc1

安装方式

nb-cli安装(推荐)

nb plugin install nonebot_plugin_dog

pip

pip install nonebot-plugin-dog

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin("nonebot_plugin_dog")

在’pyproject.toml‘文件中写入

"nonebot_plugin_dog"

git clone

git clone https://github.com/Reversedeer/nonebot_piugin_dog.git

更新

pip install --upgrade nonebot-plugin-dog

配置

在bot目录对应的.env文件中添加(有默认值)

config type default example usage
cd_time int 20 dog_cd_time = 20 调用api的默认值(设置0即为无cd)

这里的cd是全局设置,还没有单独添加每个api的cd,但api相互之间的cd是单独记录的

示例

TODO

  • 增加指令开关

  • 增加CD限制

  • 增加图片发送

  • 整合更多的API

  • 修复文本末尾多出的空行#issue1

更新日志

  • 0.2.5 #2023-3-3

    • 添加了一些api
    • 更改cd模式
  • 0.2.3 #2023-2-1

    • 修复文本末多出的空行
    • 修复readme中的错误
    • 增加指令开关
    • 更改指令CD默认值为20
  • 0.1.9 #2023-1-30

    • 增加cd限制
  • 0.1.0 #2023-1-29

    • 发布并优化代码

关于 ISSUE

以下 ISSUE 会被直接关闭

  • 提交 BUG 不使用 Template
  • 询问已知问题
  • 提问找不到重点
  • 重复提问

请注意, 开发者并没有义务回复您的问题. 您应该具备基本的提问技巧。
有关如何提问,请阅读《提问的智慧》

其他插件

使用API的chatGPTQQ聊天机器人

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_dog-0.2.5.tar.gz (18.4 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_dog-0.2.5-py3-none-any.whl (18.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page