v7.0(unconfirmed)をリリース
This commit is contained in:
@@ -4,7 +4,7 @@ import type * as types from "types/types.js";
|
||||
|
||||
import config from "../config.js";
|
||||
|
||||
export default async function weatherNotice() {
|
||||
export async function weatherNotice() {
|
||||
console.log("----------------");
|
||||
|
||||
// 仮投稿
|
||||
@@ -26,7 +26,10 @@ export default async function weatherNotice() {
|
||||
|
||||
console.log(`天気仮投稿:${JSON.stringify(ueuseData)}`);
|
||||
|
||||
weatherReply(ueuseData.uniqid);
|
||||
}
|
||||
|
||||
export async function weatherReply(uniqid: string) {
|
||||
// インデックス
|
||||
const splitCount = config.weather.splitCount;
|
||||
const total = cityList.length;
|
||||
@@ -109,13 +112,13 @@ export default async function weatherNotice() {
|
||||
body: JSON.stringify({
|
||||
token: config.uwuzu.apiToken,
|
||||
text: weatherResults[i],
|
||||
replyid: ueuseData.uniqid
|
||||
replyid: uniqid,
|
||||
}),
|
||||
},
|
||||
);
|
||||
|
||||
const replyData: types.ueuseCreateApi = await resReply.json();
|
||||
|
||||
console.log(`天気投稿:${JSON.stringify(replyData)}`);
|
||||
console.log(`天気返信:${JSON.stringify(replyData)}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user