diff options
| author | Joshua Liu <joshua.liu@sourceobby.com> | 2025-11-26 23:17:56 -0500 |
|---|---|---|
| committer | Joshua Liu <joshua.liu@sourceobby.com> | 2025-11-30 11:33:32 -0500 |
| commit | 8410e7b92891104f1460ead416a0e793c93ca738 (patch) | |
| tree | 2cfeee3c3e698696bfa127924838884dc18b0a1c | |
| parent | 955c57b02b32b734338205152c062211a68dff4a (diff) | |
feat: wrote emojis module to make emoji access easier, and fixed up the indian scammer mode
# Conflicts:
# bigresult.py
| -rw-r--r-- | .idea/workspace.xml | 9 | ||||
| -rw-r--r-- | bigresult.py | 22 | ||||
| -rw-r--r-- | config/emojis.csv | 7 |
3 files changed, 24 insertions, 14 deletions
diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ccd56e3..db129cf 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,12 +5,8 @@ </component> <component name="ChangeListManager"> <list default="true" id="bf161059-c7a2-4c78-9db4-a3015d4ca7df" name="Changes" comment=""> - <change afterPath="$PROJECT_DIR$/commands/funny.py" afterDir="false" /> - <change beforePath="$PROJECT_DIR$/.gitignore" beforeDir="false" afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" /> - <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/bigresult.py" beforeDir="false" afterPath="$PROJECT_DIR$/bigresult.py" afterDir="false" /> - <change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" /> </list> <option name="SHOW_DIALOG" value="false" /> <option name="HIGHLIGHT_CONFLICTS" value="true" /> @@ -38,17 +34,18 @@ <component name="PropertiesComponent"><![CDATA[{ "keyToString": { "ModuleVcsDetector.initialDetectionPerformed": "true", + "Python.bigresult.executor": "Run", "RunOnceActivity.ShowReadmeOnStart": "true", "RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true", "RunOnceActivity.git.unshallow": "true", "SHELLCHECK.PATH": "/home/jliu/.local/share/JetBrains/PyCharmCE2025.2/Shell Script/shellcheck", - "git-widget-placeholder": "deploy" + "git-widget-placeholder": "feature/emojis" } }]]></component> <component name="SharedIndexes"> <attachedChunks> <set> - <option value="bundled-python-sdk-1f77c24022e5-d902c0275401-com.jetbrains.pycharm.community.sharedIndexes.bundled-PC-252.26830.99" /> + <option value="bundled-python-sdk-f69e5c277ee4-cbfc7b97e6b2-com.jetbrains.pycharm.community.sharedIndexes.bundled-PC-252.27397.106" /> </set> </attachedChunks> </component> diff --git a/bigresult.py b/bigresult.py index 48b5c6b..d607e2e 100644 --- a/bigresult.py +++ b/bigresult.py @@ -9,10 +9,15 @@ from functools import partial, wraps import re import config.assets from config.assets import ImageManager +import config.mojis +from config.mojis import BotMojis ANGGY = re.compile(r'.*((are)|(is))(( so)|( really))? mad.*') ANGGY1 = re.compile(r'.*you are(( so)|( really))? mad.*') ANGGY2 = re.compile(r'.*((they are)|((he)|(she) is))(( so)|( really))? mad.*') +INDIA = re.compile(r'gift ?card') + +BIG_BRAIN_MESSAGE = re.compile(r'(think)|(have an idea)|(theory)|(smart)|([1-9]*[0-9]{2} iq)') class BigResultPlus(commands.Bot): @@ -29,6 +34,9 @@ class BigResultPlus(commands.Bot): "xyr0m": BigResultPlus.xyr0m } self.Imagemanager = ImageManager() + self.bot_emojis = BotMojis() + self.bot_emojis.init_emojis() + self.india_scammer_mode = False # intents = discord.Intents.all() # self.client = commands.Bot(intents=intents, command_prefix="!") # This represents our connection with Discord @@ -110,7 +118,7 @@ class BigResultPlus(commands.Bot): return elif ("roblox" in fuckyou or "roblo" in fuckyou or "road blocks" in fuckyou): - # await message.add_reaction(roblox) + await message.add_reaction(self.bot_emojis.get_emoji("roblos")) await message.reply( "life is roblox\nhttps://cdn.discordapp.com/attachments/890681829915508806/1066566357694562374/DJ_Khaled.mp4?ex=6728ee13&is=67279c93&hm=7a2c5e3c85d42ee07c420424fc26970f502e941f9d1c45324b42270184a17b65&") return @@ -119,9 +127,10 @@ class BigResultPlus(commands.Bot): await message.reply("be a good kitten") return - elif ("gift card" in fuckyou): + elif INDIA.search(fuckyou): await message.reply("DO NOT REDEEM! DO NOT REDEEM THE CARD!") - self.state = 1 + await message.add_reaction("🇮🇳") + self.india_scammer_mode = True return elif ("andrew tate" in fuckyou): @@ -136,9 +145,9 @@ class BigResultPlus(commands.Bot): if super().voice_clients is None: return - elif ("im gonna redeem" in fuckyou and self.state == 1): + elif ("im gonna redeem" in fuckyou and self.india_scammer_mode == True): await message.reply("NOOOOOOOOOOOOO NO NO NOOOOOOOOOO!") - self.state = 0 + self.india_scammer_mode = False return elif ("president" in fuckyou or "trump" in fuckyou or "kamala" in fuckyou): @@ -162,6 +171,9 @@ class BigResultPlus(commands.Bot): await message.reply("yeah but in 5 minutes they won't be and you will still be retarded") return + elif BIG_BRAIN_MESSAGE.search(fuckyou): + await message.add_reaction("<:a:1441912928730218606>") + await super().process_commands(message) return diff --git a/config/emojis.csv b/config/emojis.csv index 27a5a5b..9f637fa 100644 --- a/config/emojis.csv +++ b/config/emojis.csv @@ -1,4 +1,5 @@ +emoji_name,id roblos,396521773144866826 - - - +3736_GalaxyBrainPepe,396521773144866826 +pi,1441913031734067291 +,
\ No newline at end of file |
