Skip to content

Commit

Permalink
autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaSlui committed Jul 30, 2024
1 parent b0dc345 commit e3a3679
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@


intents = Intents(guilds=True)
bot = Bot(intents=intents, status=Status.online,
activity=Activity(type=ActivityType.playing, name="starting up script..."))
bot = Bot(
intents=intents,
status=Status.online,
activity=Activity(
type=ActivityType.playing,
name="starting up script..."))


def check_hostname():
Expand All @@ -34,10 +38,12 @@ def setup_settings():
async def main():
token, seeding, environment = setup_settings()
if check_hostname() and environment != 'production':
logger.warning('Environment was set to "{}" on a production machine and has been set to "production".'.format(environment))
logger.warning(
'Environment was set to "{}" on a production machine and has been set to "production".'.format(environment))
Settings().set_environment('production')
if environment != 'testing' and environment != 'development':
logger.warning('Environment was set to "{}" on a non-production machine and has been set to "development".'.format(environment))
logger.warning(
'Environment was set to "{}" on a non-production machine and has been set to "development".'.format(environment))
Settings().set_environment('development')

migrations = False if environment != 'development' else Settings().get_setting('migrations')
Expand Down

0 comments on commit e3a3679

Please sign in to comment.