Recent content by fukurou

  1. fukurou

    workout skill

    class DiWorkOut(Skill): def __init__(self): super().__init__() self.last_date = "" self.xp_farmed = 0 self.accumulation = 0 self.max_rest_days = 2 self.credit = 0 self.xp_base = 10 # ------------------------- # Moddable hooks...
  2. fukurou

    workout skill

    class DiWorkOut(Skill): def __init__(self): super().__init__() self.last_date = "" self.xp_farmed = 0 self.accumulation = 0 self.max_rest_days = 2 self.credit = 0 self.xp_base = 10 # ------------------------- # Moddable hooks...
  3. fukurou

    workout skill

    class DiWorkOut(Skill): def __init__(self): super().__init__() self.last_date = "" self.xp_farmed = 0 self.accumulation = 0 self.max_rest_days = 2 self.credit = 0 # ------------------------- # Utility # -------------------------...
  4. fukurou

    workout skill

    class DiWorkOut(Skill): def __init__(self): super().__init__() self.last_date = "" self.xp_farmed:int = 0 self.accumulation:int = 0 self.max_rest_days: int = 2 self.credit: int = 0 # tolerance for fun activity @staticmethod def...
  5. fukurou

    [MEDIA]

  6. fukurou

    railpunk funcs

    replacer mapper for ports, translations def word_diff(str1, str2): w1 = str1.split() w2 = str2.split() limit = min(len(w1), len(w2)) diffs = [] for i in range(limit): if w1[i] != w2[i]: diffs.append((w1[i], w2[i])) return diffs
  7. fukurou

    πŸ‘¨β€πŸ’» dev legend of fudge extractor

    import re def make_extractor(pattern_str): # Escape the whole string so regex metacharacters don’t break it escaped = re.escape(pattern_str) # Replace the escaped 'fudge' with a capture group regex_str = escaped.replace(r"fudge", r"(.*)") return re.compile(regex_str) s =...
  8. fukurou

    πŸ‘¨β€πŸ’» dev Chrome compressor

    import re from typing import override from LivinGrimoirePacket.AXPython import RailBot # ╔════════════════════════════════════════════════════════════════════════╗ # β•‘ RailBot Upgrades β•‘ #...
  9. fukurou

    πŸ‘¨β€πŸ’» dev Chrome compressor

    class Tokenizer: exclusions: set[str] = { "i", "me", "my", "mine", "you", "your", "yours", "am", "are", "was", "were", "have", "has", "do", "did", "is", "this", "that", "those" } @staticmethod def clean_text(text: str) -> str: """Remove exclusion...
  10. fukurou

    πŸ‘¨β€πŸ’» dev Chrome compressor

    class KeysFunnel(PopulatorFunc): def __init__(self): super().__init__() self.regex = "funnel" self.context = "standby" self.exclusions: set[str] = {"i", "me", "my", "mine", "you", "your", "yours", "am", "are", "was", "were"...
  11. fukurou

    jizzbox snippet storer

    class SnippetStore(PopulatorFunc): def __init__(self): super().__init__() self.regex = "snippet" self.exclusions: set[str] = set() def populate(self, railbot: RailChatBot, str1: str): keyword = "code" pattern = rf"{keyword}\s+(.*?)\s+ok\s+(.*)"...
  12. fukurou

    jizzbox snippet storer

    class SnippetSummonerStr: # funnels strings into lookup keys def __init__(self): self.incantations: set[str] = set() self.exclusions: set[str] = set() def getSummonerStr(self, str1:str)->str: # check for summon incantation in str start for item in...
  13. fukurou

    jizzbox snippet storer

    class SnippetSummonerStr: # funnels strings into lookup keys def __init__(self): self.incantations: set[str] = set() self.exclusions: set[str] = set() def getSummonerStr(self, str1:str)->str: # check for summon incantation in str start for item in...
  14. fukurou

    jizzbox snippet storer

    import re text = "code xx yy ok zz" keyword = "code" pattern = rf"{keyword}\s+(.*?)\s+ok\s+(.*)" v1, v2 = re.fullmatch(pattern, text).groups() print(v1) # xx yy print(v2) # zz
  15. fukurou

    jizzbox snippet storer

    v2: import re text = "code xx yy ok zz" # Strict full‑structure match v1, v2 = re.fullmatch(r"code\s+(.*?)\s+ok\s+(.*)", text).groups() print(v1) # xx yy print(v2) # zz
Top