Browse Source

add drillcat macro

master
angerstoner 4 years ago
parent
commit
af6fd8b1a1
  1. 4
      reddit.py
  2. 4
      schneiderbot.py

4
reddit.py

@ -80,6 +80,10 @@ def hamster(bot, update):
reddit_img(bot, update, ['hamsters']) reddit_img(bot, update, ['hamsters'])
def drillcat(bot, update):
reddit_img(bot, update, ['drillcats'])
def cat(bot, update): def cat(bot, update):
reddit_img(bot, update, ['catpictures']) reddit_img(bot, update, ['catpictures'])

4
schneiderbot.py

@ -8,7 +8,7 @@ from telegram import ParseMode
from telegram.ext import Updater, CommandHandler from telegram.ext import Updater, CommandHandler
from web_requests import send_coding_love_gif, send_wiki_how_article from web_requests import send_coding_love_gif, send_wiki_how_article
from reddit import wrong_dog, hamster, reddit, reddit_img, toggle_four_twenty, four_twenty, cat, dog
from reddit import wrong_dog, hamster, reddit, reddit_img, toggle_four_twenty, four_twenty, cat, dog, drillcat
from schneiderbot_twitter import toggle_pepito_for_group, check_pepito_and_post_auto, check_pepito_and_post_manually from schneiderbot_twitter import toggle_pepito_for_group, check_pepito_and_post_auto, check_pepito_and_post_manually
from db import Db from db import Db
from mensa import mensa, linux_mensa from mensa import mensa, linux_mensa
@ -54,6 +54,7 @@ def help(bot, update):
/cat - random cat image (using reddit.com/r/catpictures) /cat - random cat image (using reddit.com/r/catpictures)
/dog - random dog image (using reddit.com/r/dogpictures) /dog - random dog image (using reddit.com/r/dogpictures)
/hamster - random dog image (using reddit.com/r/hamsters) /hamster - random dog image (using reddit.com/r/hamsters)
/drillcat - random drillcat image (using reddit.com/r/drillcats)
/wrongdog - random wrongdog image (using reddit.com/r/whatswrongwithyourdog) /wrongdog - random wrongdog image (using reddit.com/r/whatswrongwithyourdog)
/reddit subreddit - random submission from reddit.com/r/subreddit /reddit subreddit - random submission from reddit.com/r/subreddit
/reddit\_img subreddit - random image submission from reddit.com/r/subreddit /reddit\_img subreddit - random image submission from reddit.com/r/subreddit
@ -205,6 +206,7 @@ def init_commands(dp):
dp.add_handler(CommandHandler("wikihow", send_wiki_how_article)) dp.add_handler(CommandHandler("wikihow", send_wiki_how_article))
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("drillcat", drillcat))
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)) dp.add_handler(CommandHandler("reddit_img", reddit_img, pass_args=True))
dp.add_handler(CommandHandler("pepito", check_pepito_and_post_manually)) dp.add_handler(CommandHandler("pepito", check_pepito_and_post_manually))

Loading…
Cancel
Save