Skip to content

Commit 0c8e55e

Browse files
committed
Remove script size checking
1 parent dff489c commit 0c8e55e

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

main.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,19 +139,6 @@ async def on_ready():
139139
print('Current working dir: ' + str(os.getcwd()))
140140
print(f'System directory: {homedir}')
141141
print('------------------')
142-
try:
143-
botpath = 'main.py'
144-
botsize = os.path.getsize(botpath)
145-
print(f'Bot file size: {botsize}b')
146-
print('------------------')
147-
except FileNotFoundError:
148-
if os.name == 'posix':
149-
try:
150-
print('Bot file size: ' + os.path.getsize('main.py'))
151-
print('------------------')
152-
except FileNotFoundError:
153-
print('Bot file size: ' + os.path.getsize(str(os.getcwd() + '\\main.py')))
154-
print('------------------')
155142

156143
# Error handler #
157144
@client.event

0 commit comments

Comments
 (0)