Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Change key
Browse files Browse the repository at this point in the history
  • Loading branch information
chaspy committed Dec 7, 2022
1 parent 03f49ca commit fe3490c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,66 +21,66 @@ interface hanakinBars {

interface hanakinBar {
name: string;
main: string;
alcohol: string;
url: string;
}

const hanakinBar: hanakinBars = {
: [{ name: "家", main: "好きなお酒", url: "" }],
: [{ name: "家", alcohol: "好きなお酒", url: "" }],
目黒: [
{ name: "another8", main: "ビール", url: "https://sakahachi.jp/another8/" },
{ name: "another8", alcohol: "ビール", url: "https://sakahachi.jp/another8/" },
{
name: "いと。",
main: "日本酒",
alcohol: "日本酒",
url: "https://tabelog.com/tokyo/A1316/A131601/13246061/",
},
{
name: "なっぱ ごちそう",
main: "ワイン",
alcohol: "ワイン",
url: "https://retty.me/area/PRE13/ARE13/SUB704/100000738931/",
},
{
name: "ゴス",
main: "ウイスキー",
alcohol: "ウイスキー",
url: "https://tabelog.com/tokyo/A1316/A131601/13220203/",
},
],
九段下: [
{
// 神楽坂
name: "クラフトビアサーバーランド",
main: "ビール",
alcohol: "ビール",
url: "https://tabelog.com/tokyo/A1309/A130905/13160783/",
},
{
// 神楽坂
name: "BEER OLYN",
main: "ビール",
alcohol: "ビール",
url: "https://www.beerolyn.com/",
},
{
// 神楽坂
name: "亀戸ホルモン",
main: "ビール",
alcohol: "ビール",
url: "https://tabelog.com/tokyo/A1309/A130905/13231854/",
},
{
// 神保町
name: "クラフトビアマーケット",
main: "ビール",
alcohol: "ビール",
url: "https://www.craftbeermarket.jp/jimbocho/",
},
],

Sydney: [
{
name: "Sydney Brewery Surry Hills",
main: "Beer",
alcohol: "Beer",
url: "https://www.sydneybrewery.com/surry-hills/",
},
{
name: "Keg & Brew",
main: "Beer",
alcohol: "Beer",
url: "https://www.kegandbrew.com.au/eat-drink/",
},
],
Expand Down
2 changes: 1 addition & 1 deletion functions/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function getRecommendedBar(place: string): string {
const num = Math.floor(Math.random() * length);
const bar = info[num];

response = `今日は花金!${bar.name}${bar.main}を飲もう!${bar.url}`;
response = `今日は花金!${bar.name}${bar.alcohol}を飲もう!${bar.url}`;
} else {
response =
`${place}は登録されていないみたいよ。https://github.com/chaspy/hanakintaro/blob/main/conf.ts におすすめの店を追加しよう`;
Expand Down
4 changes: 2 additions & 2 deletions functions/response_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Deno.test("Response function test -- keyword with place", async () => {
const array = conf.recommended_bar["目黒"];
array.forEach((e) => {
answerArray.push(
`今日は花金!${e.name}${e.main}を飲もう!${e.url}`,
`今日は花金!${e.name}${e.alcohol}を飲もう!${e.url}`,
);
});

Expand All @@ -149,7 +149,7 @@ Deno.test("Response function test -- keyword with place", async () => {
const array = conf.recommended_bar["目黒"];
array.forEach((e) => {
answerArray.push(
`今日は花金!${e.name}${e.main}を食べよう${e.url}`,
`今日は花金!${e.name}${e.alcohol}を飲もう${e.url}`,
);
});

Expand Down

0 comments on commit fe3490c

Please sign in to comment.