summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}}}'