From 532fd9f968cc33a6f471fd738d6ac8e05dd1f3a0 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Fri, 11 Feb 2022 04:32:50 +0700 Subject: [PATCH] rmf --- driver/utils.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/driver/utils.py b/driver/utils.py index 6480752..e3d8038 100644 --- a/driver/utils.py +++ b/driver/utils.py @@ -1,6 +1,4 @@ import asyncio -import socket -from config import HEROKU_API_KEY from driver.core import bot, calls from driver.database.dbqueue import remove_active_chat from driver.queues import QUEUE, clear_queue, get_queue, pop_an_item @@ -146,13 +144,3 @@ async def bash(cmd): err = stderr.decode().strip() out = stdout.decode().strip() return out, err - - -async def is_heroku(): - return "heroku" in socket.getfqdn() - - -async def user_input(input): - if " " in input or "\n" in input: - return str(input.split(maxsplit=1)[1].strip()) - return ""