-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfun.py
More file actions
101 lines (69 loc) · 1.93 KB
/
Copy pathfun.py
File metadata and controls
101 lines (69 loc) · 1.93 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
import json
from random import randint
global uNameList
global sCount
global uName
uName = ""
sCount =[]
uNameList =[]
#imoji gen
def coolImoji():
with open ("json/coolImoji.json",'r')as iF:
idata =json.load(iF)
num =str(randint(0,19))
return idata[num]
def angryImoji():
with open ("json/angryImoji.json",'r')as iF:
idata =json.load(iF)
num =str(randint(0,20))
return idata[num]
def loveImoji():
with open ("json/loveImoji.json",'r')as iF:
idata =json.load(iF)
num =str(randint(0,4))
return idata[num]
#quortes gen
def hi():
#gen random line
with open ("json/hiList.json","r",encoding="utf8")as openfile:
data =json.load(openfile)
num = str(randint(0,13))
HiL =data[num]
return HiL
def bye():
with open ("json/byeList.json","r",encoding="utf8")as openfile:
data =json.load(openfile)
num = str(randint(0,3))
byeL =data[num]
return byeL
def cmd():
#gen random line
with open ("json/angryList.json","r",encoding="utf8")as openfile:
data =json.load(openfile)
num = str(randint(0,6))
cmdL =data[num]
return cmdL
def love():
#gen random line
with open ("json/loveList.json","r",encoding="utf8")as openfile:
data =json.load(openfile)
num = str(randint(0,14))
loveL =data[num]
return loveL
def spamFillter():
if not uNameList:
uNameList.append(uName)
else:
if uNameList[0] == uName:
sCount.append("w")
if (len(sCount)>=4):
if (len(sCount)>=7):
if(len(sCount)>=9):
sCount.clear()
return 3
else:
return 2
else:
return 1
else:
uNameList[0]=uName