MCPcopy
hub / github.com/ZainCheung/netease-cloud / diyText

Method diyText

index.py:183–216  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

181 '''
182
183 def diyText(self):
184 # today = datetime.date.today()
185 # kaoyan_day = datetime.date(2020,12,21) #2021考研党的末日
186 # date = (kaoyan_day - today).days
187 for count in grade:
188 if self.level < 10:
189 if self.listenSongs < 20000:
190 if self.listenSongs < count:
191 self.tip = '还需听歌' + str(count-self.listenSongs) + '首即可升级'
192 break
193 else:
194 self.tip = '你已经听够20000首歌曲,如果登录天数达到800天即可满级'
195 else:
196 self.tip = '恭喜你已经满级!'
197 if self.error == '':
198 state = ("- 目前已完成签到\n"
199 "- 今日共打卡" + str(self.dakanum) + "次\n"
200 "- 今日共播放" + str(self.dakaSongs) + "首歌\n"
201 "- 还需要打卡" + str(self.day) +"天")
202 self.title = ("网易云今日打卡" + str(self.dakaSongs) + "首,已播放" + str(self.listenSongs) + "首")
203 else:
204 state = self.error
205 self.title = '网易云听歌任务出现问题!'
206 self.content = (
207 "------\n"
208 "#### 账户信息\n"
209 "- 用户名称:" + str(self.name) + "\n"
210 "- 当前等级:" + str(self.level) + "级\n"
211 "- 累计播放:" + str(self.listenSongs) + "首\n"
212 "- 升级提示:" + self.tip + "\n\n"
213 "------\n"
214 "#### 任务状态\n" + str(state) + "\n\n"
215 "------\n"
216 "#### 打卡日志\n" + self.dakaSongs_list + "\n\n")
217
218 ''&#x27;
219 打印日志

Callers 3

wxpusherMethod · 0.95
barkMethod · 0.95
serverMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected