Skip to content

Commit af7b4f3

Browse files
committed
Merge branch 'lorenzo132-development22' into development
2 parents 9d4813d + 9fedb5b commit af7b4f3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bot.py

+6
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ def hosting_method(self) -> HostingMethod:
108108
if os.environ.get("pm_id"):
109109
return HostingMethod.PM2
110110

111+
if os.environ.get("INVOCATION_ID"):
112+
return HostingMethod.SYSTEMD
113+
114+
if os.environ.get("TERM"):
115+
return HostingMethod.SCREEN
116+
111117
return HostingMethod.OTHER
112118

113119
def startup(self):

core/models.py

+2
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,5 @@ class HostingMethod(IntEnum):
277277
HEROKU = 0
278278
PM2 = 1
279279
OTHER = 2
280+
SYSTEMD = 3
281+
SCREEN = 4

0 commit comments

Comments
 (0)