|
@@ -35,8 +35,8 @@ function view(_chat: IChat, args: string[], reply: (msg: string) => any): void {
|
|
|
if (!match) throw Error();
|
|
|
let query = Number(args[0] || Number(match[1]));
|
|
|
if (query < 0) query += Number(match[1]);
|
|
|
- if (args[0] === '0' || query < 0 || query > Number(match[1])) {
|
|
|
- return reply(`查询取值范围有误。当前可用的取值范围:${1 - Number(match[1])}~${Number(match[1])}`);
|
|
|
+ if (query < 0 || query > Number(match[1])) {
|
|
|
+ return reply(`查询取值范围有误。当前可用的取值范围:${- Number(match[1])}~${Number(match[1])}`);
|
|
|
}
|
|
|
reply(`第 ${query} 话:\n` +
|
|
|
Message.Image(`https://d2n19nac4w0gh6.cloudfront.net/resource/images/webview/comic/story/comic_${
|