-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
74 lines (55 loc) · 1.6 KB
/
main.py
File metadata and controls
74 lines (55 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import ks_bot_client
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
# To create a user account go to https://www.kidssmit.com
bot = CustomBot("<your name>", "<your password>")
bot.run()
bot.send_command("Hello", log=True)