Selaa lähdekoodia

change cache fresh timeout

Mike L 3 vuotta sitten
vanhempi
commit
84d3149b69
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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]));