remove unnecessary

This commit is contained in:
BennyThink
2021-01-10 19:35:12 +08:00
parent 45de6506a6
commit 907e36e855
2 changed files with 0 additions and 28 deletions

View File

@@ -99,7 +99,6 @@ def get_score(rid: str) -> float:
def is_cookie_valid() -> bool:
cookie = load_cookies()
r = s.get(GET_USER, cookies=cookie)
logging.info("cookie valid? %s", r.json())
return r.json()['status'] == 1

View File

@@ -1,27 +0,0 @@
# coding: utf-8
# YYeTsBot - messenger.py
# 2019/11/6 12:42
__author__ = 'Benny <benny.think@gmail.com>'
from config import TOKEN
import telebot
import sys
bot = telebot.TeleBot(TOKEN)
def send_msg(argv):
uid = argv[1]
msg = argv[2]
bot.send_chat_action(uid, 'typing')
response = bot.send_message(uid, msg, parse_mode='markdown')
print(response)
if __name__ == '__main__':
if len(sys.argv) != 3:
print("Need ID and message!")
sys.exit(2)
send_msg(sys.argv)