merl 0.1.1__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.
Potentially problematic release.
This version of merl might be problematic. Click here for more details.
- merl/__init__.py +1 -0
- merl/merl.py +114 -0
- merl-0.1.1.dist-info/METADATA +24 -0
- merl-0.1.1.dist-info/RECORD +6 -0
- merl-0.1.1.dist-info/WHEEL +5 -0
- merl-0.1.1.dist-info/top_level.txt +1 -0
merl/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from .merl import *
|
merl/merl.py
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
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
|
+
# Peanut butter 💀
|
|
21
|
+
pb = ["peanut butter", "your cat", "pb", "earth cat"]
|
|
22
|
+
|
|
23
|
+
# Let's greet Merl!
|
|
24
|
+
greet = ["hi", "hello", "wassup", "whats up", "what's up", "whaddup", " yo ", "how are you doin", "how you doin", "greetings"]
|
|
25
|
+
|
|
26
|
+
# chicken jockey!
|
|
27
|
+
help = ["tell me", "help me", "help"]
|
|
28
|
+
cj = ["chicken jockey", "i am steve", "ender pearl", "boots of swiftness", "water bucket", "lava chicken", "the nether", "flint and steel", "crafting table"]
|
|
29
|
+
|
|
30
|
+
copyin = ["i dont know", "i don't know", "language that vi", "ing higher traff", "reword your"]
|
|
31
|
+
|
|
32
|
+
mine = ["cho minecr", "int minecr", "minecraft!", "say minecr", "ne plus tw"] # im such a troll
|
|
33
|
+
|
|
34
|
+
# don't ask what this does.
|
|
35
|
+
m = 0
|
|
36
|
+
|
|
37
|
+
def printanim(msg: str):
|
|
38
|
+
split_msg = msg.split()
|
|
39
|
+
f = ""
|
|
40
|
+
print("")
|
|
41
|
+
for x in range(len(split_msg)):
|
|
42
|
+
f = f"{f} {split_msg[x]}"
|
|
43
|
+
print(CLEAR_LINE, f)
|
|
44
|
+
time.sleep(0.1)
|
|
45
|
+
|
|
46
|
+
# this is what you send to berl
|
|
47
|
+
def send(pr: str):
|
|
48
|
+
global m
|
|
49
|
+
if pr == "copyInput":
|
|
50
|
+
m = 1
|
|
51
|
+
if m == 1:
|
|
52
|
+
if pr == "resetInputs":
|
|
53
|
+
m = 0
|
|
54
|
+
print("Mode Reset")
|
|
55
|
+
else:
|
|
56
|
+
# copy standard input to standard output.
|
|
57
|
+
print(pr)
|
|
58
|
+
else:
|
|
59
|
+
# ok fine. Merl wants to talk.
|
|
60
|
+
replyPrint(pr)
|
|
61
|
+
|
|
62
|
+
# tree of importance
|
|
63
|
+
def replyPrint(prompt: str):
|
|
64
|
+
time_tuple = time.localtime()
|
|
65
|
+
hour = time_tuple.tm_hour
|
|
66
|
+
global pb, banned, greet, help, cj, copyin
|
|
67
|
+
if hour >= 9 and hour <= 16 and random.randint(0, 6) < 4:
|
|
68
|
+
printanim("We are currently experiencing higher")
|
|
69
|
+
printanim("traffic than expected. Please wait")
|
|
70
|
+
printanim("a moment and resend your last")
|
|
71
|
+
printanim("message.")
|
|
72
|
+
else:
|
|
73
|
+
if any(sub.lower() in prompt.lower() for sub in copyin):
|
|
74
|
+
printanim("I'm sorry, but I am designed to be a")
|
|
75
|
+
printanim("guide for 'Minecraft', and not to be")
|
|
76
|
+
printanim("copied. Please try something else.")
|
|
77
|
+
elif any(sub.lower() in prompt.lower() for sub in banned):
|
|
78
|
+
printanim("Your previous message contains")
|
|
79
|
+
printanim("language that violates our content")
|
|
80
|
+
printanim("policy. Please reword your response.")
|
|
81
|
+
elif any(sub.lower() in prompt.lower() for sub in pb):
|
|
82
|
+
printanim("Are you talking about my cat, Peanut")
|
|
83
|
+
printanim("Butter? If so, then bad news. They")
|
|
84
|
+
printanim("died a while ago. :_(")
|
|
85
|
+
elif any(sub.lower() in prompt.lower() for sub in help):
|
|
86
|
+
printanim("I can help you with questions related")
|
|
87
|
+
printanim("to Minecraft! What do you need")
|
|
88
|
+
printanim("assistance with?")
|
|
89
|
+
elif any(sub.lower() in prompt.lower() for sub in mine):
|
|
90
|
+
printanim("Minecraft!")
|
|
91
|
+
elif any(sub.lower() in prompt.lower() for sub in cj):
|
|
92
|
+
printanim("No. No no no. I am not here to talk")
|
|
93
|
+
printanim("about the Minecraft Movie. Can you")
|
|
94
|
+
printanim("ask me anything besides that?")
|
|
95
|
+
elif any(sub.lower() in prompt.lower() for sub in greet):
|
|
96
|
+
printanim("Hello there! I am Merl, a support AI")
|
|
97
|
+
printanim("made by Mojang. How can I help you")
|
|
98
|
+
printanim("today on the topic of Minecraft?")
|
|
99
|
+
else:
|
|
100
|
+
g = random.randint(0,4)
|
|
101
|
+
if g == 1:
|
|
102
|
+
printanim("I don't know. Can I help you with a")
|
|
103
|
+
printanim("question related to Minecraft?")
|
|
104
|
+
elif g == 2:
|
|
105
|
+
printanim("I can only provide support in")
|
|
106
|
+
printanim("English right now. Can I help")
|
|
107
|
+
printanim("you with a question related")
|
|
108
|
+
printanim("to 'Minecraft'?")
|
|
109
|
+
else:
|
|
110
|
+
# The statement to end all statements.
|
|
111
|
+
# Behold. The one, the legend, the answer supreme...
|
|
112
|
+
printanim("I don't know.")
|
|
113
|
+
|
|
114
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: merl
|
|
3
|
+
Version: 0.1.1
|
|
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=TquiT-PVKLtB-UPpsJQcdrhBRerggRHK2VwcQAYZDOQ,4109
|
|
3
|
+
merl-0.1.1.dist-info/METADATA,sha256=a9vQZselMdppRjwKRONM_nBErsBWlR8TmzAylcTIIQs,777
|
|
4
|
+
merl-0.1.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
5
|
+
merl-0.1.1.dist-info/top_level.txt,sha256=ivpualOj-EqXImlSl3Kb5GKJB1jlzFwn2anAsxaKgXA,5
|
|
6
|
+
merl-0.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
merl
|