このbotを自前のサーバで動かすためにはこの階層に
- TOKEN // discordBotのトークン
- PROJECT_URL // supabaseのプロジェクトURL
- API_KEY // supabaseのプロジェクトのAPIキー
を記述した.envファイルが必要です。
また、Google CloudのText-to-Speechを使用しているので、サービスアカウントのjsonファイルをclient_secret.jsonという名前でshovel以下に配置してください.
さらにsupabaseのプロジェクトからSQL Editorで
set time zone "Asia/Tokyo";
create table wordsDict (
before text not null,
after text not null,
guild_id text not null,
primary key (before, guild_id)
);
alter table wordsDict
enable row level security;
create table pitch (
id text,
pitch float not null,
primary key (id)
);
alter table pitch
enable row level security;
を実行し、テーブルを作成してください。
2つのファイルが用意できれば、
docker-compose up
で起動することができます。