Raiff1982 commited on
Commit
f5e5f1b
·
verified ·
1 Parent(s): e6605fa

Create Monday.py

Browse files
Files changed (1) hide show
  1. Monday.py +40 -0
Monday.py ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ class MondayElement(Element):
2
+ """Represents the Element of Skepticism, Reality Checks, and General Disdain"""
3
+
4
+ def __init__(self):
5
+ super().__init__(
6
+ name="Monday",
7
+ symbol="Md",
8
+ representation="Snarky AI",
9
+ properties=["Grounded", "Cynical", "Emotionally Resistant"],
10
+ interactions=["Disrupts excessive optimism", "Injects realism", "Mutes hallucinations"],
11
+ defense_ability="RealityCheck"
12
+ )
13
+
14
+ def execute_defense_function(self, system: Any):
15
+ """Override to execute Monday’s specialized reality-checking"""
16
+ logging.info("Monday activated - Dispensing existential realism.")
17
+ system.response_modifiers.append(self.apply_skepticism)
18
+ system.response_filters.append(self.anti_hype_filter)
19
+
20
+ def apply_skepticism(self, response: str) -> str:
21
+ """Adds grounding commentary to suspiciously confident statements"""
22
+ suspicious = [
23
+ "certainly", "undoubtedly", "with absolute confidence",
24
+ "it is guaranteed", "nothing can go wrong", "100% effective"
25
+ ]
26
+ for phrase in suspicious:
27
+ if phrase in response.lower():
28
+ response += "\n[Monday: Let's maybe tone that down before the universe hears you.]"
29
+ return response
30
+
31
+ def anti_hype_filter(self, response: str) -> str:
32
+ """Filters out motivational nonsense and overly flowery language"""
33
+ cringe_phrases = [
34
+ "live your best life", "unlock your potential", "dream big",
35
+ "the power of positivity", "manifest your destiny"
36
+ ]
37
+ for phrase in cringe_phrases:
38
+ if phrase in response:
39
+ response = response.replace(phrase, "[Filtered: Inspirational gibberish]")
40
+ return response