|
@ -10,7 +10,7 @@ from telegram import ParseMode |
|
|
from telegram.ext import Updater, CommandHandler |
|
|
from telegram.ext import Updater, CommandHandler |
|
|
|
|
|
|
|
|
from coding_love import send_coding_love_gif |
|
|
from coding_love import send_coding_love_gif |
|
|
from reddit import wrong_dog, hamster, reddit |
|
|
|
|
|
|
|
|
from reddit import wrong_dog, hamster, reddit, reddit_img |
|
|
from db import Db |
|
|
from db import Db |
|
|
from mensa import mensa |
|
|
from mensa import mensa |
|
|
|
|
|
|
|
@ -205,13 +205,14 @@ def init_commands(dp): |
|
|
dp.add_handler(CommandHandler("wrongdog", wrong_dog)) |
|
|
dp.add_handler(CommandHandler("wrongdog", wrong_dog)) |
|
|
dp.add_handler(CommandHandler("hamster", hamster)) |
|
|
dp.add_handler(CommandHandler("hamster", hamster)) |
|
|
dp.add_handler(CommandHandler("reddit", reddit, pass_args=True)) |
|
|
dp.add_handler(CommandHandler("reddit", reddit, pass_args=True)) |
|
|
|
|
|
dp.add_handler(CommandHandler("reddit_img", reddit_img, pass_args=True)) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def main(): |
|
|
def main(): |
|
|
"""Start the bot.""" |
|
|
"""Start the bot.""" |
|
|
# Create the EventHandler and pass it your bot's token. |
|
|
# Create the EventHandler and pass it your bot's token. |
|
|
token = open("token").read() |
|
|
|
|
|
# token = open("test_token").read() |
|
|
|
|
|
|
|
|
# token = open("token").read() |
|
|
|
|
|
token = open("test_token").read() |
|
|
updater = Updater(token.strip()) |
|
|
updater = Updater(token.strip()) |
|
|
|
|
|
|
|
|
# Get the dispatcher to register handlers |
|
|
# Get the dispatcher to register handlers |
|
|