remove unused module and edit help message

This commit is contained in:
2017-08-10 23:02:32 +08:00
parent a47e4287d7
commit 41b229ffeb
2 changed files with 2 additions and 4 deletions

1
bot.py
View File

@ -3,7 +3,6 @@
# necessary modules # necessary modules
import time, requests, telepot import time, requests, telepot
from telepot.loop import MessageLoop from telepot.loop import MessageLoop
from telepot.namedtuple import KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
from pprint import pprint from pprint import pprint
# kCOJ API # kCOJ API
import access import access

View File

@ -2,9 +2,7 @@
# necessary modules # necessary modules
import os, requests, telepot import os, requests, telepot
from telepot.loop import MessageLoop
from telepot.namedtuple import KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove from telepot.namedtuple import KeyboardButton, ReplyKeyboardMarkup, ReplyKeyboardRemove
from pprint import pprint
# kCOJ API # kCOJ API
import access import access
# configurations # configurations
@ -181,7 +179,8 @@ class kuser:
[KeyboardButton(text="登出帳號🚪"), KeyboardButton(text="修改密碼💱"), KeyboardButton(text="提供幫助📚")] [KeyboardButton(text="登出帳號🚪"), KeyboardButton(text="修改密碼💱"), KeyboardButton(text="提供幫助📚")]
])) ]))
self.bot.sendMessage(self.chat_id, "專案授權方式採用 GPLv3\n" self.bot.sendMessage(self.chat_id, "專案授權方式採用 GPLv3\n"
"原始碼被託管於 GitHub網址如下\n" "非常歡迎發 issue 送 PR owooo\n"
"原始碼被託管於 GitHub大大們有空的話可以按個星星支持一下> <網址如下:\n"
"https://github.com/PinLin/kcoj_bot") "https://github.com/PinLin/kcoj_bot")
def upload_answer(self): def upload_answer(self):
self.status = '上傳答案' self.status = '上傳答案'