Skip to content

Commit 68d8d88

Browse files
authored
Update bot.py
add hosting methods: screen and systemd
1 parent 9d4813d commit 68d8d88

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

bot.py

Lines changed: 6 additions & 0 deletions
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):

0 commit comments

Comments
 (0)