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
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)
- 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>")
Developer Notes:
- Feel Free to reach us at: codingwithcn@gmail.com, for question
- 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
Built Distribution
Close
Hashes for KS-BOT-Client-Python-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23d4938a1d5cc59af2335cccefb08c2fc57056b0df2544b9c76b1dcb87c47500 |
|
MD5 | 5e4817abd3abefea5d5aaebc4b8d6019 |
|
BLAKE2b-256 | fb9f769c888bd4d81dfd03cfca5f3192426a1d152aec229928c76c0f906fac65 |
Close
Hashes for KS_BOT_Client_Python-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8df44e30634c59fbe1745018c8bfd3adb0f9700bc9cd48d0328a5ce55af002fe |
|
MD5 | 74496905bec9455c66af9f6c65a589c0 |
|
BLAKE2b-256 | 66dd32150a8b6312cc70333d272fbce541de5e3291e469207ac82525d21b7a76 |