mirror of
https://github.com/nikdoof/smsbot.git
synced 2025-12-18 12:19:22 +00:00
Clean up lint issues
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
|
import argparse
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import argparse
|
|
||||||
|
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from prometheus_client import Counter, Summary, make_wsgi_app
|
from prometheus_client import Counter, Summary
|
||||||
from setuptools import Command
|
|
||||||
from telegram.ext import CommandHandler, Updater
|
from telegram.ext import CommandHandler, Updater
|
||||||
|
|
||||||
from smsbot.utils import get_smsbot_version
|
from smsbot.utils import get_smsbot_version
|
||||||
@@ -44,7 +43,7 @@ class TelegramSmsBot(object):
|
|||||||
|
|
||||||
commands = []
|
commands = []
|
||||||
for command in self.updater.dispatcher.handlers[0]:
|
for command in self.updater.dispatcher.handlers[0]:
|
||||||
commands.extend(['/{0}'.format(x) for x in command.command])
|
commands.extend(['/{0}'.format(cmd) for cmd in command.command])
|
||||||
|
|
||||||
update.message.reply_markdown('Smsbot v{0}\n\n{1}'.format(get_smsbot_version(), '\n'.join(commands)))
|
update.message.reply_markdown('Smsbot v{0}\n\n{1}'.format(get_smsbot_version(), '\n'.join(commands)))
|
||||||
COMMAND_COUNT.inc()
|
COMMAND_COUNT.inc()
|
||||||
|
|||||||
Reference in New Issue
Block a user