Skip to main content

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

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clever_chat-1.0.1.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

clever_chat-1.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page