Metadata-Version: 2.1
Name: AfdianBot
Version: 1.0.3
Summary: 爱发电Bot SDK
Author: sun589
Author-email: goodluck1787@outlook.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.32.2
Requires-Dist: fake-useragent>=2.0.3

# AfdianBot-Core
一款轻量化，简单且易用的爱发电机器人库

## 快速入门
``` python
import AfdianBot

bot = AfdianBot.Bot(account="xxxxx", password="xxxx") # 填写账号密码

@bot.register("hello") # 注册一个指令
def hello(msg:AfdianBot.types.TextMsg):
    sender_name = AfdianBot.api.get_user_info(msg.sender_id)['name']
    bot.send_msg(f"hello {sender_name}!", msg.sender_id) # 回复消息至对方

# 在一般情况下，程序默认使用单线程模式，即一个一个处理回复
# 但在一些需要并发需求(即同时处理多个消息)情况时，你可以加上threded参数启用多线程模式
# bot.run(threded=True)
bot.run()
```
**更多文档内容详见[AfdianBot-Core文档](https://sun589.github.io/AfdianBot-Core)**
