Remove pointless imports, fix /start string
This commit is contained in:
parent
c9b6fd7153
commit
929138f3c8
|
@ -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)
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
|
@ -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__)
|
||||
|
|
Loading…
Reference in a new issue