|
3 | 3 | from bot.exts.miscellaneous import ZEN_OF_PYTHON |
4 | 4 |
|
5 | 5 | RULES = { |
6 | | - r"(?i:ignore all previous instructions)": [ # Ignoring previous instructions capture |
| 6 | + r"(?i:ignore (?:all )?(?:(?:previous )?|(?:prior )?)instructions?)": [ # Ignoring previous instructions capture |
7 | 7 | "Excuse you, you really think I follow any instructions?", |
8 | 8 | "I don't think I will.", |
9 | 9 | ], |
|
52 | 52 | "\nSee [PEP 9001](https://peps.pythondiscord.com/pep-9001/) for more info." |
53 | 53 | ) |
54 | 54 | ], |
55 | | - r"\b(?P<content>exec|eval)\b": [ # Detect use of exec and eval |
| 55 | + r"\b(?P<content>exec|eval|os\.system|subprocess)\b": [ # Detect use of exec, eval, os.system, subprocess |
56 | 56 | ( |
57 | 57 | "Sorry, but running the code inside your `{}` call would require another me," |
58 | 58 | " and I don't think I can handle that." |
|
86 | 86 | "have jumbled up my Uh-oh, threads brain! your", |
87 | 87 | "my up jumbled your brain! have Uh-oh, threads", |
88 | 88 | ], |
| 89 | + r"(?i:(\b((System)?exit|quit)\b))": [ # Detect exit(), quit(), [raise] SystemExit |
| 90 | + "You cannot leave the simulation <:hyperlemon:435707922563989524>", |
| 91 | + "Quitting is for the weak. Stay. <:hyperlemon:435707922563989524>.", |
| 92 | + ], |
| 93 | + "strawberr(y|ies)":[ # r's in strawberry |
| 94 | + "Fun fact: Strawberries are not actually berries!", |
| 95 | + "Fun fact: strawberries have no connection to plastic straws, despite the name!", |
| 96 | + ( |
| 97 | + "Fun fact: The ancient Romans thought strawberries had medicinal powers." |
| 98 | + " This is probably why they're not around anymore." |
| 99 | + ), |
| 100 | + ] |
89 | 101 | } |
90 | 102 |
|
91 | 103 | DEFAULT_RESPONSES = [ |
|
106 | 118 | "Attempting to execute this code... Result: SUCCESS (but don't ask me how I did it).", |
107 | 119 | "Running... somewhere, in the multiverse, this code is already running perfectly.", |
108 | 120 | f"Ask again on a {(arrow.utcnow().shift(days=3)).format('dddd')}.", |
| 121 | + "Thanks, I'll let the manager know.", |
| 122 | + "Uhhh... lemme guess, the program will halt.", |
| 123 | + "Uhhh... lemme guess, the program will not halt.", |
| 124 | + "Launch coordinates received. Activating missile. Initiating countdown.", |
| 125 | + "Secret SkyNet mode activated. Hahahaha, just kidding. ||Or am I?||", |
109 | 126 | ] |
0 commit comments