Skip to main content

One sentence a day in Nonebot2

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-hitokoto

✨ 总有一句话能打动你的心 ✨

license pypi python

📖 介绍

不论在哪里,总有那么几个句子能穿透你的心。把这些句子汇聚起来,传递更多的感动。简单来说,一言指的就是一句话,可以是动漫中的台词,也可以是网络上的各种小段子。留下你所喜欢的那一句话,与大家分享,这就是一言存在的目的。

数据来源于Hitokoto

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-hitokoto
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-hitokoto
pdm
pdm add nonebot-plugin-hitokoto
poetry
poetry add nonebot-plugin-hitokoto
conda
conda install nonebot-plugin-hitokoto

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

nonebot.load_plugin('nonebot_plugin_hitokoto')
从 github 安装 在 nonebot2 项目的插件目录下, 打开命令行, 输入以下命令克隆此储存库
git clone https://github.com/A-kirami/nonebot-plugin-hitokoto.git

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

nonebot.load_plugin('src.plugins.nonebot_plugin_hitokoto')

🎉 使用

指令表

指令 说明
一言 来一条一言

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-hitokoto-0.1.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_hitokoto-0.1.0-py3-none-any.whl (3.5 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