-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDiscord_Automation.py
More file actions
151 lines (133 loc) · 4.84 KB
/
Discord_Automation.py
File metadata and controls
151 lines (133 loc) · 4.84 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
import pyautogui
import time
import keyboard
def Create_categories():
i = 54
while i < 100:
time.sleep(1)
pyautogui.click(216, 67)
time.sleep(1)
pyautogui.click(306, 299)
time.sleep(1)
pyautogui.typewrite("WEB HUNT TEAM " + str(i))
time.sleep(1)
pyautogui.click(1183, 522)
time.sleep(1)
pyautogui.click(1136, 688)
time.sleep(1)
pyautogui.click(1143, 818)
i = i + 1
def Get_position():
print(pyautogui.position())
def Delete_category():
i = 0
while i < 20:
pyautogui.click(185, 222, button="right")
time.sleep(0.5)
pyautogui.click(322, 460)
time.sleep(1)
pyautogui.click(1153, 578)
i = i + 1
def Assign_roles():
i = 69
while True:
if keyboard.is_pressed("p"):
pyautogui.click(500, 500)
pyautogui.click(422, 190)
time.sleep(1)
pyautogui.click(1320, 347)
time.sleep(1)
pyautogui.typewrite(str(i))
time.sleep(1)
pyautogui.click(859, 482)
time.sleep(1)
pyautogui.click(1169, 768)
time.sleep(1)
pyautogui.click(1539, 123)
time.sleep(1)
i = i + 1
if keyboard.is_pressed("esc"):
break
def Create_channels():
while True:
if keyboard.is_pressed("o"):
pyautogui.click()
pyautogui.typewrite("text-room")
pyautogui.click(1107, 770)
pyautogui.moveTo(500, 500)
if keyboard.is_pressed("p"):
pyautogui.click()
pyautogui.click(830, 461)
keyboard.press("tab")
pyautogui.typewrite("VC")
pyautogui.click(1107, 770)
pyautogui.moveTo(500, 500)
if keyboard.is_pressed("esc"):
break
def rename():
i = 12
while True:
if keyboard.is_pressed("q"):
pyautogui.hotkey("ctrl", "a")
pyautogui.hotkey("backspace")
time.sleep(0.5)
pyautogui.typewrite("TEAM " + str(i))
pyautogui.click(1410, 965)
time.sleep(0.5)
pyautogui.hotkey("esc")
i = i + 1
pyautogui.moveTo(283, 471)
if keyboard.is_pressed("w"):
break
def Message():
while True:
if keyboard.is_pressed("f2"):
pyautogui.typewrite("Hey, welcome to TechEden! :partying_face:")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite(
"Thank you for taking part in our event and creating a community of coders and hackers around the world."
)
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite("And just for that, you deserve something special!")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite(
"Here is a little something we'd like to offer in return :tada::gift:."
)
pyautogui.hotkey("shift", "enter")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite("**Balsamiq cloud**")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite(
"Balsamiq Cloud is a web-based user interface design tool for creating wireframes, "
+ "You can use it to generate digital sketches of your idea or concept for an application or website, "
+ "to facilitate discussion and understanding before any code is written."
)
pyautogui.hotkey("shift", "enter")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite("**Wolfram|One**")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite(
"Wolfram|One is the world's first fully-integrated cloud-desktop hybrid, integrated computation platform. "
+ "The core of it's technology stack is the Wolfram Language, which builds on three decades of development, "
+ "and represents a new direction in programming that happens to be absolutely ideal for hackathons."
)
pyautogui.hotkey("shift", "enter")
pyautogui.hotkey("shift", "enter")
pyautogui.typewrite(
"Product: Wolfram|One, Wolfram API, and other Wolfram development platform."
)
pyautogui.press("enter")
if keyboard.is_pressed("esc"):
break
# Use below function to save a huge amount of time -> typewrite takes time and causes Discord to lag/freeze.
def paste():
while True:
if keyboard.is_pressed("f2"):
pyautogui.keyDown("ctrl")
pyautogui.press("v")
pyautogui.keyUp("ctrl")
pyautogui.press("enter")
if keyboard.is_pressed("esc"):
break
if __name__ == "__main__":
paste()