merl 0.1.0__tar.gz
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-0.1.0/PKG-INFO +24 -0
- merl-0.1.0/README.md +14 -0
- merl-0.1.0/merl/__init__.py +1 -0
- merl-0.1.0/merl/merl.py +114 -0
- merl-0.1.0/merl.egg-info/PKG-INFO +24 -0
- merl-0.1.0/merl.egg-info/SOURCES.txt +8 -0
- merl-0.1.0/merl.egg-info/dependency_links.txt +1 -0
- merl-0.1.0/merl.egg-info/top_level.txt +1 -0
- merl-0.1.0/setup.cfg +4 -0
- merl-0.1.0/setup.py +26 -0
merl-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: merl
|
|
3
|
+
Version: 0.1.0
|
|
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
|
merl-0.1.0/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# merl
|
|
2
|
+
An open-source useless python library. Developed using the code.org IDE, because why not.
|
|
3
|
+
|
|
4
|
+
If 'pip install "git+https://github.com/o9creeps/merl.git#egg=merl"' doesn't work, then gimmie some time i gotta figure THAT out.
|
|
5
|
+
|
|
6
|
+
## Functions
|
|
7
|
+
### send(pr) -- USE THIS
|
|
8
|
+
Sends 'pr' to Merl where 'pr' is a string.
|
|
9
|
+
|
|
10
|
+
### printanim(msg)
|
|
11
|
+
Prints 'msg' where 'msg' is a string. If 'msg' does not have spaces, then it all prints at once. Else, it prints word-by-word.
|
|
12
|
+
|
|
13
|
+
### replyPrint(prompt)
|
|
14
|
+
Where 'prompt' is a string. This makes Merl reply whatever, based on what you put in. Expect "I don't know." to show up more than once. With the exception of your system's time being between 9 AM and 4 PM, of course, because then you get a high traffic message more than half the time!
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from . import merl
|
merl-0.1.0/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.0
|
|
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 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
merl
|
merl-0.1.0/setup.cfg
ADDED
merl-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='merl',
|
|
5
|
+
version='0.1.0',
|
|
6
|
+
description='A useless python lybrary',
|
|
7
|
+
url='https://github.com/O9Creeps/merl',
|
|
8
|
+
author='O9CreeperBoi',
|
|
9
|
+
author_email='example@example.com',
|
|
10
|
+
license='MIT',
|
|
11
|
+
packages=['merl'],
|
|
12
|
+
install_requires=[],
|
|
13
|
+
|
|
14
|
+
classifiers=[
|
|
15
|
+
'Development Status :: 4 - Beta',
|
|
16
|
+
'Intended Audience :: Developers',
|
|
17
|
+
'License :: Freeware',
|
|
18
|
+
'Operating System :: OS Independent',
|
|
19
|
+
'Programming Language :: Python :: 3.10',
|
|
20
|
+
'Programming Language :: Python :: 3.11',
|
|
21
|
+
'Programming Language :: Python :: 3.12',
|
|
22
|
+
'Programming Language :: Python :: 3.13',
|
|
23
|
+
'Programming Language :: Python :: 3.14',
|
|
24
|
+
'Programming Language :: Python :: 3.15'
|
|
25
|
+
],
|
|
26
|
+
)
|