Remove pointless imports, fix /start string

This commit is contained in:
Klaus-Uwe Mitterer 2017-03-22 12:18:07 +01:00
parent c9b6fd7153
commit 929138f3c8
3 changed files with 3 additions and 3 deletions

View file

@ -37,7 +37,7 @@ def twoExceptions(e, message):
# ---------------
def start(bot, update):
update.message.reply_text(bottools.strings.start % (setuptools.botname(), setuptools.botname()))
update.message.reply_text(bottools.strings.start % {"name": setuptools.botname()})
def fish(bot, update):
dbtools.dbHelper().addFish(update.message.chat_id)

View file

@ -17,7 +17,7 @@ noauth = '''You are not logged in. Please use /login to sign in with Twitter.'''
start = '''Hey there!
I'm @%s, everybody's favorite Twitter bot on Telegram!
I'm @%(name)s, everybody's favorite Twitter bot on Telegram!
For me to help you, you will first have to authenticate with Twitter:

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python3
import ast, bottools.methods, dbtools, html, io, logging, moviepy.editor, PIL.Image, random, setuptools, string, bottools.strings, telegram.ext, twitools, urllib.request, tweepy
import bottools.methods, logging, setuptools, telegram.ext
logging.basicConfig(format='%(asctime)s - %(name)s - %(levelname)s - %(message)s', level=logging.INFO)
logger = logging.getLogger(__name__)