Skip to content

Commit 3e55d28

Browse files
authored
Merge pull request #2 from PyBotDevs/remove-size-checking
Remove script size checking on initialization
2 parents b083124 + 0c8e55e commit 3e55d28

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
@@ -115,19 +115,6 @@ async def on_ready():
115115
print('Current working dir: ' + str(os.getcwd()))
116116
print(f'System directory: {homedir}')
117117
print('------------------')
118-
try:
119-
botpath = 'main.py'
120-
botsize = os.path.getsize(botpath)
121-
print(f'Bot file size: {botsize}b')
122-
print('------------------')
123-
except FileNotFoundError:
124-
if os.name == 'posix':
125-
try:
126-
print('Bot file size: ' + os.path.getsize('main.py'))
127-
print('------------------')
128-
except FileNotFoundError:
129-
print('Bot file size: ' + os.path.getsize(str(os.getcwd() + '\\main.py')))
130-
print('------------------')
131118

132119
# Error Handler
133120
@client.event

0 commit comments

Comments
 (0)