소스 검색

change cache fresh timeout

Mike L 3 년 전
부모
커밋
84d3149b69
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      dist/command.js
  2. 1 1
      src/command.ts

+ 1 - 1
dist/command.js

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

+ 1 - 1
src/command.ts

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