Skip to content

Rin0530/discord-tts-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-tts-bot

この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

で起動することができます。

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •