weeb.sh api包装,定制用于discord.py
weebapi的Python项目详细描述
»周末
![img](https://img.shields.io/pypi/v/weebapi.svg)![img2](https://img.shieldeshields.io/pypi/pyversions/weeb api.svg)
>关于可插拔的weebeweb.sh api-api-appappappappappappappappapp
**所有可用文档都可以在这里找到:*[weebapi.readthedocs.io](https://weebapi.readthedocs.io)
<
br/>**1.使用pip**
`pip install-u weebapi`
**2。从github**
`pip install-u git+https://github.com/andytempel/weebappi-egg=weebappi`
35 35
bot=机器人,api_key=“verynicekey123”)
@bot.command()
异步定义owo(ctx):
image=await bot.weebsh.get_random(image_type=“owo”)
等待ctx.send(str(image))
>;https://cdn.weeb.weeb.sh/images/sklmokytdb.jpeg
`````
**或不进行bot集成:*
```python
```从discord.ext.commands import bot
froweebapi import客户端
bot=bot bot(command_前缀=“+”
weeb=客户端(api key=“verynicekey123”)
@bot.command()
>async-def-owo(ctx)async-def-是的weeb.get_random(image_type=“owo”)
等待ctx.send(str(image))
>;>https://cdn.weeb.sh/images/sklmokytdb.jpeg
```
![img](https://img.shields.io/pypi/v/weebapi.svg)![img2](https://img.shieldeshields.io/pypi/pyversions/weeb api.svg)
>关于可插拔的weebeweb.sh api-api-appappappappappappappappapp
**所有可用文档都可以在这里找到:*[weebapi.readthedocs.io](https://weebapi.readthedocs.io)
<
br/>**1.使用pip**
`pip install-u weebapi`
**2。从github**
`pip install-u git+https://github.com/andytempel/weebappi-egg=weebappi`
35 35
bot=机器人,api_key=“verynicekey123”)
@bot.command()
异步定义owo(ctx):
image=await bot.weebsh.get_random(image_type=“owo”)
等待ctx.send(str(image))
>;https://cdn.weeb.weeb.sh/images/sklmokytdb.jpeg
`````
**或不进行bot集成:*
```python
```从discord.ext.commands import bot
froweebapi import客户端
bot=bot bot(command_前缀=“+”
weeb=客户端(api key=“verynicekey123”)
@bot.command()
>async-def-owo(ctx)async-def-是的weeb.get_random(image_type=“owo”)
等待ctx.send(str(image))
>;>https://cdn.weeb.sh/images/sklmokytdb.jpeg
```