Skip to content

Hype3808/CleverChat.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CleverChat.py

API wrapper for clever-chat ChatBot API

Example Sync Usage

from clever_chat import Client

client = Client()

res = client.get_response("Hi")
print(res.message)
client.close()

Example Async Usage

from clever_chat import AsyncClient
import asyncio

client = AsyncClient()

async def main():
    response = await client.get_response("Hi")
    print(response.message)
    await client.close()

asyncio.get_event_loop().run_until_complete(main())

Links