Skip to content

rsvedant/Clever-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Clever-chat

MIT License Stable version

An API Wrapper for clever-chat (chatbot) in Python

Features

  • Easy to use
  • Epic customizations
  • Extremely fast responses
  • No rate-limits

Installation

  pip install clever-chat

API Reference

Getting a response

  # Synchronous Client
  import clever_chat
  from clever_chat import Client

  print(Client.get_response('Hello'))

  # Asynchronous Client
  import asyncio
  import clever_chat
  from clever_chat import AsyncClient

  response = asyncio.get_event_loop().run_until_complete(AsyncClient.get_response("Hello"))
  print(response)
Parameter Type Description
message string Required. The message you're sending to the bot

Customizations (Optional)

  # Synchronous Client
  import clever_chat
  from clever_chat import Client

  print(Client.get_response('Hello', user_id, chatbot_gender, chatbot_name, developer_name, chatbot_age, birthday, birthplace, birthyear, religion, favouriteactor, favouriteactress, favouriteartist, favouriteauthor, favouriteband, favouritebook))

  # Asynchronous Client
  import asyncio
  import clever_chat
  from clever_chat import AsyncClient

  response = asyncio.get_event_loop().run_until_complete(AsyncClient.get_response("Hello", user_id, chatbot_gender, chatbot_name, developer_name, chatbot_age, birthday, birthplace, birthyear, religion, favouriteactor, favouriteactress, favouriteartist, favouriteauthor, favouriteband, favouritebook))
  print(response)
Parameter Type Description
user_id string Optional. ID of the message author (for discord only)
Parameter Type Description
chatbot_gender string Optional. gender of the chatbot
Parameter Type Description
chatbot_name string Optional. name of the chatbot
Parameter Type Description
developer_name string Optional. name of the developer of the chatbot
Parameter Type Description
chatbot_age string Optional. age of the chatbot
Parameter Type Description
birthday string Optional. birthday of the chatbot
Parameter Type Description
birthplace string Optional. birth place of the chatbot
Parameter Type Description
birthyear string Optional. birth year of the chatbot
Parameter Type Description
religion string Optional. religion of the chatbot
Parameter Type Description
favouriteactor string Optional. favourite actor of the chatbot
Parameter Type Description
favouriteactress string Optional. favourite actress of the chatbot
Parameter Type Description
favouriteartist string Optional. favourite artist of the chatbot
Parameter Type Description
favouriteauthor string Optional. favourite author of the chatbot
Parameter Type Description
favouriteband string Optional. favourite band of the chatbot
Parameter Type Description
favouritebook string Optional. favourite book of the chatbot

Authors

License

MIT

Contributing

Contributions are always welcome!

You can DM me on discord i.e. Pr0methium#0337 if you wanna contribute to this project!

About

An API Wrapper for clever-chat in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages