summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-08-08 00:43:25 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-08-08 00:43:25 +0300
commit37f9b127e4e704564c7cc1f986517ad462912f72 (patch)
treef495af7cb28ce90cf813d779d32db8937e65f045
parent550d3491282c7a3ac74f5863046f59adc5e1db56 (diff)
remove unused stuff
-rw-r--r--main.py8
-rw-r--r--strings.py12
2 files changed, 1 insertions, 19 deletions
diff --git a/main.py b/main.py
index 60df15d..327d90a 100644
--- a/main.py
+++ b/main.py
@@ -1,17 +1,11 @@
#!/usr/bin/env python3
-import logging, re, datetime, json, subprocess, os
+import logging
-from typing import Optional
from argparse import ArgumentParser
-from html import escape
import socket
-from pprint import pprint
-from time import sleep
-from strings import lang as _
from telegram import (
Update,
ParseMode,
- KeyboardButton,
ReplyKeyboardMarkup
)
from telegram.ext import (
diff --git a/strings.py b/strings.py
deleted file mode 100644
index 80b7dac..0000000
--- a/strings.py
+++ /dev/null
@@ -1,12 +0,0 @@
-__strings = {
- 'Включать': 'Status',
- 'generation': 'Generation',
- 'gs': 'GS',
- 'ri': 'RI',
- 'errors': 'Errors'
-}
-
-
-def lang(key):
- global __strings
- return __strings[key] if key in __strings else f'{{{key}}}'