diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-08-08 00:43:25 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-08-08 00:43:25 +0300 |
commit | 37f9b127e4e704564c7cc1f986517ad462912f72 (patch) | |
tree | f495af7cb28ce90cf813d779d32db8937e65f045 | |
parent | 550d3491282c7a3ac74f5863046f59adc5e1db56 (diff) |
remove unused stuff
-rw-r--r-- | main.py | 8 | ||||
-rw-r--r-- | strings.py | 12 |
2 files changed, 1 insertions, 19 deletions
@@ -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}}}' |