merl 0.1.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
merl/__init__.py ADDED
@@ -0,0 +1 @@
1
+ from .merl import *
merl/merl.py ADDED
@@ -0,0 +1,161 @@
1
+ """
2
+ THANK YOU FOR IMPORTING THE MOST USELESS MODULE EVER CREATED!
3
+ I hope you hate it!
4
+
5
+ p.s. Hi, PhoenixSC!
6
+ ---O9CreeperBoi
7
+ """
8
+
9
+ import time
10
+ import random
11
+
12
+ CURSOR_UP = "\033[1A"
13
+ CLEAR = "\x1b[2K"
14
+ CLEAR_LINE = CURSOR_UP + CLEAR
15
+
16
+ # Oops! Can't have users cursing in MY module!
17
+ # We don't want to have a repeat of Project Gray Kiwi, now do we?
18
+ banned = ["pee", "poo", "fuc", "shi", "damn", " hell ", "nig", "bitc", "craft a", "kil", "unaliv", "die", "slas", "end update", "viola", "dam", "frick", "hecking", "sex", "nut", "virgin", "weed", "sucks", "sybau", "shut up", "shut it", "feral", "shish", "gang", "diarrhea"]
19
+
20
+ # in case ppl ask about the future!
21
+ future = ["update", "snapshot", "rerelea", "preview", "leak", "spoiler"]
22
+
23
+ # Peanut butter 💀
24
+ pb = ["peanut butter", "your cat", "pb", "earth cat"]
25
+
26
+ # Let's greet Merl!
27
+ greet = ["hi", "hello", "wassup", "whats up", "what's up", "whaddup", " yo ", "how are you doin", "how you doin", "greetings"]
28
+
29
+ # chicken jockey!
30
+ help = ["tell me", "help me", "help"]
31
+ cj = ["chicken jockey", "i am steve", "ender pearl", "boots of swiftness", "water bucket", "lava chicken", "the nether", "flint and steel", "crafting table"]
32
+
33
+ copyin = ["i dont know", "i don't know", "language that vi", "ing higher traff", "reword your"]
34
+
35
+ mine = ["cho minecr", "int minecr", "minecraft!", "say minecr", "ne plus tw"] # im such a troll
36
+
37
+ # don't ask what this does.
38
+ m = 0
39
+
40
+ # every single reply possible
41
+ reply = {
42
+ "test":["This is a test for ", "Merl's dialogue. This is still in progress."],
43
+ "busy":["We are currently experiencing higher ", "traffic than expected. Please wait ", "a moment and resend your last ", "message."],
44
+ "movie":["No. No no no. I am not here to talk ", "about the Minecraft Movie. Can you ", "ask me anything besides that?"],
45
+ "copy":["I'm sorry, but I am designed to be a ", "guide for 'Minecraft', and not to be ", "copied. Can I help you with anything ", "else?"],
46
+ "languageViolation":["Your previous message contains ", "language that violates our content ", "policy. Please reword your response."],
47
+ "update":["If you are wishing to know the next ", "update, prerelease, or preview, then ", "sorry. I cannot provide that information ", "yet. Can I help you with something else?"],
48
+ "pb":["Are you talking about my cat, Peanut ", "Butter? If so, then bad news. They ", "died a while ago. :_("],
49
+ "iCanHelp":["I can help you with questions related ", "to Minecraft! What do you need ", "assistance with?"],
50
+ "minecraft":["Minecraft!"], # Minecraft!
51
+ "idk":["I don't know."], # I don't know.
52
+ "greet":["Hello there! I am Merl, a support AI ", "made by Mojang. How can I help you ", "today on the topic of Minecraft?"],
53
+ "idk2":["I don't know. Can I help you with a ", "question related to Minecraft?"],
54
+ "englishOnly":["I can only provide support in ", "English right now. Can I help ", "you with a question related ", "to 'Minecraft'?"]
55
+ }
56
+
57
+
58
+ def replyMsg(cate: str):
59
+ a = ""
60
+ for x in range(len(reply[cate])):
61
+ a = f"{a}{reply[cate][x]}"
62
+ return a
63
+
64
+
65
+ def printanim(msg: str):
66
+ split_msg = msg.split()
67
+ f = ""
68
+ print("")
69
+ for x in range(len(split_msg)):
70
+ f = f"{f} {split_msg[x]}"
71
+ print(CLEAR_LINE, f)
72
+ time.sleep(0.1)
73
+
74
+ # this is what you send to nerl if you are simply pimply
75
+ def sendRaw(prompt: str):
76
+ global m
77
+ if prompt == "copyInput":
78
+ m = 1
79
+ if m == 1:
80
+ if prompt == "resetInputs":
81
+ m = 0
82
+ print("Mode Reset")
83
+ else:
84
+ # copy standard input to standard output.
85
+ print(prompt)
86
+ else:
87
+ # merl is yapping rn fr fr
88
+ time_tuple = time.localtime()
89
+ hour = time_tuple.tm_hour
90
+ global pb, banned, greet, help, cj, copyin
91
+ if hour >= 9 and hour <= 16 and random.randint(0, 16) < 4:
92
+ return replyMsg("busy")
93
+ else:
94
+ if any(sub.lower() in prompt.lower() for sub in copyin): return replyMsg("copy")
95
+ elif any(sub.lower() in prompt.lower() for sub in banned): return replyMsg("languageViolation")
96
+ elif any(sub.lower() in prompt.lower() for sub in future): return replyMsg("update")
97
+ elif any(sub.lower() in prompt.lower() for sub in pb): return replyMsg("pb")
98
+ elif any(sub.lower() in prompt.lower() for sub in help): return replyMsg("iCanHelp") # can you really?
99
+ elif any(sub.lower() in prompt.lower() for sub in mine): return replyMsg("minecraft")
100
+ elif any(sub.lower() in prompt.lower() for sub in cj): return replyMsg("movie")
101
+ elif any(sub.lower() in prompt.lower() for sub in greet): return replyMsg("greet")
102
+ else:
103
+ g = random.randint(0,4)
104
+ if g == 1: return replyMsg("idk2")
105
+ elif g == 2: return replyMsg("englishOnly")
106
+ else: return replyMsg("idk") # ha ha!
107
+
108
+
109
+ # this is what you send to berl if you are fancy pantsy
110
+ def send(pr: str):
111
+ global m
112
+ if pr == "copyInput":
113
+ m = 1
114
+ if m == 1:
115
+ if pr == "resetInputs":
116
+ m = 0
117
+ print("Mode Reset")
118
+ else:
119
+ # copy standard input to standard output.
120
+ print(pr)
121
+ else:
122
+ # ok fine. Merl wants to talk.
123
+ replyPrint(pr)
124
+
125
+ # tree of importance
126
+ def replyPrint(prompt: str):
127
+ time_tuple = time.localtime()
128
+ hour = time_tuple.tm_hour
129
+ global pb, banned, greet, help, cj, copyin
130
+ if hour >= 9 and hour <= 16 and random.randint(0, 16) < 4:
131
+ for x in range(len(reply["busy"])): printanim(reply["busy"][x])
132
+ else:
133
+ if any(sub.lower() in prompt.lower() for sub in copyin):
134
+ for x in range(len(reply["copy"])): printanim(reply["copy"][x])
135
+ elif any(sub.lower() in prompt.lower() for sub in banned):
136
+ for x in range(len(reply["languageViolation"])): printanim(reply["languageViolation"][x])
137
+ elif any(sub.lower() in prompt.lower() for sub in future):
138
+ for x in range(len(reply["update"])): printanim(reply["update"][x])
139
+ elif any(sub.lower() in prompt.lower() for sub in pb):
140
+ for x in range(len(reply["pb"])): printanim(reply["pb"][x])
141
+ elif any(sub.lower() in prompt.lower() for sub in help):
142
+ for x in range(len(reply["iCanHelp"])): printanim(reply["iCanHelp"][x])
143
+ elif any(sub.lower() in prompt.lower() for sub in mine):
144
+ printanim("Minecraft!") # the thing that won't change.
145
+ elif any(sub.lower() in prompt.lower() for sub in cj):
146
+ for x in range(len(reply["movie"])): printanim(reply["movie"][x])
147
+ elif any(sub.lower() in prompt.lower() for sub in greet):
148
+ for x in range(len(reply["greet"])): printanim(reply["greet"][x])
149
+ else:
150
+ g = random.randint(0,4)
151
+ if g == 1:
152
+ for x in range(len(reply["idk2"])): printanim(reply["idk2"][x])
153
+ elif g == 2:
154
+ for x in range(len(reply["englishOnly"])): printanim(reply["englishOnly"][x])
155
+ else:
156
+ # The statement to end all statements.
157
+ # Behold. The one, the legend, the answer supreme...
158
+ printanim("I don't know.")
159
+ # This won't change, either.
160
+
161
+
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.4
2
+ Name: merl
3
+ Version: 0.1.2
4
+ Summary: A useless python lybrary
5
+ Home-page: https://github.com/O9Creeps/merl
6
+ Author: O9CreeperBoi
7
+ Author-email: example@example.com
8
+ License: MIT
9
+ Classifier: Development Status :: 4 - Beta
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: License :: Freeware
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
18
+ Classifier: Programming Language :: Python :: 3.15
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: home-page
23
+ Dynamic: license
24
+ Dynamic: summary
@@ -0,0 +1,6 @@
1
+ merl/__init__.py,sha256=z--UomdGJ1AOwNBeHlMD0uip2ehFLn8Lp_x3UP8JpHw,20
2
+ merl/merl.py,sha256=DuRXs--cjHUYXCywUc3VqPBLvoq3k1tewMD9fablnEY,6810
3
+ merl-0.1.2.dist-info/METADATA,sha256=rDCunDQNYowjxLc_jyTRTR0dSbh-CbrYfZG8tK_y6Es,777
4
+ merl-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ merl-0.1.2.dist-info/top_level.txt,sha256=ivpualOj-EqXImlSl3Kb5GKJB1jlzFwn2anAsxaKgXA,5
6
+ merl-0.1.2.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ merl