Skip to content

Commit

Permalink
Update compiler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mategol authored Jan 6, 2023
1 parent 958a32d commit ebbf0a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ def compile():
elif line.startswith('software_registry_name'): edit_source_code.write('software_registry_name = \'' + config['SETTINGS']['registry_name'] + '\'\n')
elif line.startswith('software_directory_name'): edit_source_code.write('software_directory_name = \'' + config['SETTINGS']['directory_name'] + '\'\n')
elif line.startswith('software_executable_name'): edit_source_code.write('software_executable_name = \'' + config['SETTINGS']['executable_name'] + '\'\n')
elif line.startswith(' \'info\':'): edit_source_code.write(' \'info\': None,\n')
elif line.startswith(' \'main\':'): edit_source_code.write(' \'main\': None,\n')
elif line.startswith(' \'spam\':'): edit_source_code.write(' \'spam\': None,\n' if config['SETTINGS']['spam_channel'] == 'True' else '')
elif line.startswith(' \'file\':'): edit_source_code.write(' \'file\': None,\n' if config['SETTINGS']['file-related_channel'] == 'True' else '')
elif line.startswith(' \'recordings\':'): edit_source_code.write(' \'recordings\': None,\n' if config['SETTINGS']['recordings_channel'] == 'True' else '')
elif line.startswith(' \'voice\':'): edit_source_code.write(' \'voice\': None\n' if config['SETTINGS']['voice_channel'] == 'True' else '')
elif line.startswith(' \'info\':'): edit_source_code.write(' \'info\': True,\n')
elif line.startswith(' \'main\':'): edit_source_code.write(' \'main\': True,\n')
elif line.startswith(' \'spam\':'): edit_source_code.write(' \'spam\': ' + config['SETTINGS']['spam_channel'] + ',\n')
elif line.startswith(' \'file\':'): edit_source_code.write(' \'file\': ' + config['SETTINGS']['file-related_channel'] + ',\n')
elif line.startswith(' \'recordings\':'): edit_source_code.write(' \'recordings\': ' + config['SETTINGS']['recordings_channel'] + ',\n')
elif line.startswith(' \'voice\':'): edit_source_code.write(' \'voice\': ' + config['SETTINGS']['voice_channel'] + '\n')
elif line.startswith('secret_key'): edit_source_code.write('secret_key = \'' + get_file_hash('PySilon.key') + '\'\n')
elif line.startswith('guild_id'): edit_source_code.write('guild_id = ' +config['SETTINGS']['server_id']+ '\n')
elif line.startswith('#') or line.replace(' ', '') == '\n': pass
Expand Down

0 comments on commit ebbf0a9

Please sign in to comment.