Browse Source

fix fetching new-year episode

Mike L 3 years ago
parent
commit
88dfe3495b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      dist/command.js
  2. 1 1
      src/command.ts

+ 1 - 1
dist/command.js

@@ -27,7 +27,7 @@ function view(_chat, args, reply) {
     let query = Number(args[0]);
     if (args[0] && !Number.isInteger(query))
         return reply('查询格式有误。\n格式:/nanatsuu_view [〈整数〉]');
-    twitter_1.queryByRegExp('t7s_staff', /今週の『それゆけ!ナナスタ☆通信』第(\d+)話はこちら!/, 3600 * 24 * 7)
+    twitter_1.queryByRegExp('t7s_staff', /の『それゆけ!ナナスタ☆通信』第(\d+)話はこちら!/, 3600 * 24 * 7)
         .then(match => {
         if (!match)
             throw Error();

+ 1 - 1
src/command.ts

@@ -31,7 +31,7 @@ function parseCmd(message: string): {
 function view(_chat: IChat, args: string[], reply: (msg: string) => any): void {
   let query = Number(args[0]);
   if (args[0] && !Number.isInteger(query)) return reply('查询格式有误。\n格式:/nanatsuu_view [〈整数〉]');
-  queryByRegExp('t7s_staff', /今週の『それゆけ!ナナスタ☆通信』第(\d+)話はこちら!/, 3600 * 24 * 7)
+  queryByRegExp('t7s_staff', /の『それゆけ!ナナスタ☆通信』第(\d+)話はこちら!/, 3600 * 24 * 7)
     .then(match => {
       if (!match) throw Error();
       if (!args[0]) query = Number(match[1]);