wlstp8473

all

{
"CurrentProjectSetting": null
}
\ No newline at end of file
{
"ExpandedNodes": [
""
],
"SelectedNode": "\\respond.py",
"PreviewInSolutionExplorer": false
}
\ No newline at end of file
No preview for this file type
......@@ -11,3 +11,4 @@ chat_id = 1657858421
bot.sendMessage(chat_id = chat_id, text = "진세야 모해?")
bot.sendMessage(chat_id = chat_id, text = "왜 답장이 없어? ㅠㅠ")
bot.sendMessage(chat_id = chat_id, text = "보고 싶어")
......
# https://blog.psangwoo.com/coding/2018/01/09/python-telegram-bot-3.html 기초명령어
#텔레그렘 이용해서 코로나 챗봇 https://py-son.tistory.com/8
#https://beomi.github.io/2017/01/20/HowToMakeWebCrawler/ 크롤링 자료
#########################################
# elif '멜론 1위 노래 들어봤어?' in text:
# update.message.reply_text("잠깐 찾아볼게")
# #update.message.reply_text("아 그 xxx 노래?")
# elif '내일 날씨 어때?' in text:
# update.message.reply_text("잠깐만")
# #update.message.reply_text("잠깐만")
import requests #웹에서 정보 가져오기
from bs4 import BeautifulSoup
from telegram.ext import Updater, MessageHandler, Filters
......@@ -20,7 +26,7 @@ def handler(update, context):
chat_id = update.message.chat_id
if "모해" in text:
update.message.reply_text("진세 생각 ❤")
update.message.reply_text("나 낼 입을 옷 고르고 있어")
elif 'ㅎㅎ' in text:
update.message.reply_text("ㅎㅎ")
......