-
Notifications
You must be signed in to change notification settings - Fork 0
/
Discord Rpc Master.py
83 lines (65 loc) · 1.94 KB
/
Discord Rpc Master.py
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
#------------------------------------
from pypresence import Presence
import os
import sys,time
import psutil
#------------------------------------
l_image = "" #large image name
s_image = "" #small image name
l_image2 = "" #large image name 2
s_image2 = "" #small image name 2
l_text = "" #large text
s_text = "" #small text
l_text2 = "" #large text 1
s_text2 = "" #small text 2
cooldown = 1 # status change time here
#------------------------------------
btns = [
{
"label": "BUTTON TEXT HERE",
"url": "URL HERE"
},
{
"label": "BUTTON TEXT HERE",
"url": "URL HERE"
}
]
#------------------------------------
os.system('color 1f')
RPC = Presence("800295255916150816")
#------------------------------------
print("█▀█ █▀█ █▀▀")
print("█▀▄ █▀▀ █▄▄")
sleep(1)
#------------------------------------
def print_slow(str):
for letter in str:
sys.stdout.write(letter)
sys.stdout.flush()
time.sleep(0.001)
print_slow("--------------------------------------------------------------------------------")
def print_slow(str):
for letter in str:
sys.stdout.write(letter)
sys.stdout.flush()
time.sleep(0.06)
print_slow("\nCreated by Коин27#4349 | All is okay.")
#------------------------------------
RPC.connect()
while True:
time.sleep(cooldown)
RPC.update(
state=l_text,
details=s_text,
buttons=btns,
large_image=l_image,
small_image=s_image,
large_text="Created by Коин27#4349")
time.sleep(cooldown)
RPC.update(
state=l_text2,
details=s_text2,
buttons=btns,
large_image=l_image2,
small_image=s_image2,
large_text="Created by Коин27#4349")