We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9d4813d + 9fedb5b commit af7b4f3Copy full SHA for af7b4f3
bot.py
@@ -108,6 +108,12 @@ def hosting_method(self) -> HostingMethod:
108
if os.environ.get("pm_id"):
109
return HostingMethod.PM2
110
111
+ if os.environ.get("INVOCATION_ID"):
112
+ return HostingMethod.SYSTEMD
113
+
114
+ if os.environ.get("TERM"):
115
+ return HostingMethod.SCREEN
116
117
return HostingMethod.OTHER
118
119
def startup(self):
core/models.py
@@ -277,3 +277,5 @@ class HostingMethod(IntEnum):
277
HEROKU = 0
278
PM2 = 1
279
OTHER = 2
280
+ SYSTEMD = 3
281
+ SCREEN = 4
0 commit comments