import random from royalnet.commands import * class EmojifyCommand(Command): name: str = "emojify" description: str = "Converti un messaggio in emoji." syntax = "{messaggio}" _emojis = { "abcd": ["๐Ÿ”ก", "๐Ÿ” "], "back": ["๐Ÿ”™"], "cool": ["๐Ÿ†’"], "free": ["๐Ÿ†“"], "abc": ["๐Ÿ”ค"], "atm": ["๐Ÿง"], "new": ["๐Ÿ†•"], "sos": ["๐Ÿ†˜"], "top": ["๐Ÿ”"], "zzz": ["๐Ÿ’ค"], "end": ["๐Ÿ”š"], "ab": ["๐Ÿ†Ž"], "cl": ["๐Ÿ†‘"], "id": ["๐Ÿ†”"], "ng": ["๐Ÿ†–"], "no": ["โ™‘๏ธ"], "ok": ["๐Ÿ†—"], "on": ["๐Ÿ”›"], "sy": ["๐Ÿ’ฑ"], "tm": ["โ„ข๏ธ"], "wc": ["๐Ÿšพ"], "up": ["๐Ÿ†™"], "a": ["๐Ÿ…ฐ๏ธ"], "b": ["๐Ÿ…ฑ๏ธ"], "c": ["โ˜ช๏ธ", "ยฉ", "๐Ÿฅ"], "d": ["๐Ÿ‡ฉ"], "e": ["๐Ÿ“ง", "๐Ÿ’ถ"], "f": ["๐ŸŽ"], "g": ["๐Ÿ‡ฌ"], "h": ["๐Ÿจ", "๐Ÿฉ", "๐Ÿ‹โ€โ™€", "๐Ÿ‹โ€โ™‚"], "i": ["โ„น๏ธ", "โ™Š๏ธ", "๐Ÿ••"], "j": ["โคด๏ธ"], "k": ["๐ŸŽ‹", "๐Ÿฆ…", "๐Ÿ’ƒ"], "l": ["๐Ÿ›ด", "๐Ÿ•’"], "m": ["โ™๏ธ", "โ“‚๏ธ", "ใ€ฝ๏ธ"], "n": ["๐Ÿ“ˆ"], "o": ["โญ•๏ธ", "๐Ÿ…พ๏ธ", "๐Ÿ“ฏ", "๐ŸŒ", "๐ŸŒš", "๐ŸŒ•", "๐Ÿฅฏ", "๐Ÿ™†โ€โ™€", "๐Ÿ™†โ€โ™‚"], "p": ["๐Ÿ…ฟ๏ธ"], "q": ["๐Ÿ”", "๐Ÿ€", "๐Ÿญ"], "r": ["ยฎ"], "s": ["๐Ÿ’ฐ", "๐Ÿ’ต", "๐Ÿ’ธ", "๐Ÿ’ฒ"], "t": ["โœ๏ธ", "โฌ†๏ธ", "โ˜ฆ๏ธ"], "u": ["โ›Ž", "โš“๏ธ", "๐Ÿ‰", "๐ŸŒ™", "๐Ÿ‹"], "v": ["โœ…", "๐Ÿ”ฝ", "โ˜‘๏ธ", "โœ”๏ธ"], "w": ["๐Ÿคทโ€โ™€", "๐Ÿคทโ€โ™‚", "๐Ÿคพโ€โ™€", "๐Ÿคพโ€โ™‚", "๐Ÿคฝโ€โ™€", "๐Ÿคฝโ€โ™‚"], "x": ["๐Ÿ™…โ€โ™€", "๐Ÿ™…โ€โ™‚", "โŒ", "โŽ"], "y": ["๐Ÿ’ด"], "z": ["โšก๏ธ"], "1234":["๐Ÿ”ข"], "777":["๐ŸŽฐ"], "100":["๐Ÿ’ฏ"], "69":["โ™‹๏ธ"], "24":["๐Ÿช"], "18":["๐Ÿ”ž"], "10":["๐Ÿ™Œ", "๐Ÿ”Ÿ", "๐Ÿคฒ"], #9 manca "8":["๐ŸŽฑ"], #7 manca #6 manca "5":["โœ‹", "๐Ÿคš","๐Ÿ‘‹"], #4 manca "3":["๐Ÿฅ‰"], "2":["โœŒ๏ธ", "๐Ÿค˜", "๐Ÿฅˆ"], "1":["๐Ÿ‘†", "โ˜๏ธ", "๐Ÿ–•", "๐Ÿฅ‡"], "0":["โญ•๏ธ", "๐Ÿ…พ๏ธ", "๐Ÿ“ฏ", "๐ŸŒ", "๐ŸŒš", "๐ŸŒ•", "๐Ÿฅฏ", "๐Ÿ™†โ€โ™€", "๐Ÿ™†โ€โ™‚"], "!":["โ—๏ธ", "โ•", "โš ๏ธ"], "?":["โ“", "โ”"], "+":["๐Ÿฅ"], "/":["๐Ÿ’", "๐Ÿงช", "๐Ÿงน"], "\":["๐Ÿข", "๐Ÿก", "๐Ÿฅ„", "๐ŸŒ‚"], "*":["โœณ๏ธ", "โœด๏ธ"], } @classmethod def _emojify(cls, string: str): new_string = string.lower() for key in cls._emojis: selected_emoji = random.sample(cls._emojis[key], 1)[0] new_string = new_string.replace(key, selected_emoji) return new_string async def run(self, args: CommandArgs, data: CommandData) -> None: string = args.joined(require_at_least=1) await data.reply(self._emojify(string))