Skip to main content

Python framework for interacting with KS-BOT, without any app

Project description

KS-BOT-Client-Python

Python framework for interacting with KS-BOT, without any app

SIDE NOTE: To use ks-bot-client you will need to create a user account at: kids smit To get started simply install ks-bot-client, with the following command

python -m pip install KS-BOT-Client-Python

After Installation:

  • Simple import ks-bot-client
import ks_bot_client
  • Next create a custom Bot class by inherenting from ks_bot_client.bot class
class CustomBot(ks_bot_client.Bot):

  def __init__(self, name:str, password:str):
    """
      :param {string} name - Either Username, First Name of user or email of user
      :param {string} password - User password
    """

    super().__init__(name, password)


  def WelcomeMessage(self, data):
    """
      This event gives you, your previous messages with ks-bot.

      > Feel free to customize it
    """
    print("KS-BOT said 'welcome'")


  def BotProcessReply(self, data):
    """
      Returns bot reply to the message you sent it

      > Feel free to customize it
    """
    print("KS-BOT said: ", data)


  def TimerOver(self, data):
    """
      Handles Event Server sends when timer is over

      > Feel free to customize it
    """

    print("KS-BOT said: Timer is over, Timer: ", data)

  def weather(self, data):
    """
      This event runs whenever the server has weather report ready for you
    """
    pass

  def news(self, data):
    """
      This event runs whenever server has the news ready for you
    """
    pass

  def speak(self, what_to_speak):
    """
      This events runs when ever the server wants you to say something
    """
    pass

  def de_activate_smith(self, data):
    """
      This events runs after S.M.I.T.H has been De-Activated and KS-BOT has been activated
    """
    pass

  def activate_smith(self, data):
    """
      This event runs after S.M.I.T.H has been activated
    """
    pass
  • Once your custom bot class is ready all that is left is for you to initialize your bot
bot = CustomBot("<your name>", "<your password>")
  • Last but not list all you have to do is run the bot, so it can get and recieve messages from Server
bot.run()
  • Now that your bot is recieving messages from server and can send message to server, Send your first message!
bot.send_command("<your message>", "<the timeZone you want to send the message from, default timeZone is your actual timeZone>", <log : True|False>)

Developer Notes:

  • But for issues and feature adding, we ask that you do that all on github

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

KS-BOT-Client-Python-2.5.1.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

KS_BOT_Client_Python-2.5.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file KS-BOT-Client-Python-2.5.1.tar.gz.

File metadata

  • Download URL: KS-BOT-Client-Python-2.5.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/3.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for KS-BOT-Client-Python-2.5.1.tar.gz
Algorithm Hash digest
SHA256 3554c5ce50c6034b7763b1162229e90f43822df445b6ddafdc3729229d7f967e
MD5 a619573a29b9b652f440a09f4e02353c
BLAKE2b-256 a68c4ef563a3092f8d75d64b089e87f2d5bf9180d7fb854b54cbccce0365bb65

See more details on using hashes here.

File details

Details for the file KS_BOT_Client_Python-2.5.1-py3-none-any.whl.

File metadata

  • Download URL: KS_BOT_Client_Python-2.5.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.62.2 importlib-metadata/3.10.1 keyring/21.8.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

File hashes

Hashes for KS_BOT_Client_Python-2.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f018265998a83d1f6918273b77576d1236a89eed538c2bcfd5d7ad677224746b
MD5 a6913cf6dd7bc319ed889cd48da04bbe
BLAKE2b-256 d1b17829fddefb74440c8e24ad6c416d83ea16b01028da932510e53fd1903016

See more details on using hashes here.

Supported by

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