From 7a528877db3ce4a75861761b9ae92702fa9bdc8e Mon Sep 17 00:00:00 2001 From: Michael De Roover Date: Fri, 26 Mar 2021 22:00:54 +0100 Subject: [PATCH] Move os import into .sh --- ubot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ubot.py b/ubot.py index 984a48c..63200a2 100755 --- a/ubot.py +++ b/ubot.py @@ -1,5 +1,4 @@ #!/usr/bin/python3 -import os from telethon import TelegramClient, events from config import * @@ -95,6 +94,8 @@ async def edit(event): await client.send_message('me', rpl) return + import os + cmd = msg.split(' ', 1)[1] host = os.uname()[1] user = os.environ['USER']