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
```



欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Hibernate会话。save()不返回值吗?   java JMS应用程序发布订阅   java使用字符串创建一个长度为n,高度为n的正方形   java如何在MySQL的SQL查询中传递ArrayList<>如IN子句   安卓 java。lang.IllegalArgumentException:指定为非null的参数为null:方法kotlin。jvm。内部的内在的。检查参数不完整   如何用Java绘制交互式图形/线条?   java Blackberry移动Web应用快捷方式   java Json LocalDateTIme问题   java更改密钥的颜色   java在过滤条件之后在流上迭代时如何获取上一个对象   Java:按位和创建无符号字节   java在JavaScript中检索Velocity循环变量   java JButton不会出现在GUI上   java Cell API json转换到POJO   java在模拟中初始化静态最终变量