scripty-bot / scripty

Speech to text bot for Discord
https://scripty.org
European Union Public License 1.2
63 stars 7 forks source link
discord hacktoberfest rust serenity-rs speech-recognition speech-to-text

Scripty (v2)

rewrite of the old Scripty in general

selfhosting

should work, officially supported if you're using linux:

only supports linux, will not support any other OS, especially not windows

WSL does not count as linux, use a VM at the very least (although good luck getting GPU passthrough)

requirements

recommended distros

arch

sudo pacman -S postgresql redis mold clang base-devel pkgconf

all distros

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

prepare

clone repo

git clone https://github.com/scripty-bot/scripty
cd scripty

migrate database

cargo install sqlx-cli # skip if you already have it
sudo -u postgres createuser scripty -P # will prompt for password
sudo -u postgres createdb -O scripty scripty
cp .env.example .env
nano .env # edit DATABASE_URL to match your URL
cargo sqlx migrate run

troubleshooting

double check pg_hba.conf and postgresql.conf if you get a connection error

build

cargo build --release 
# or if you want a more optimized build
# takes about 3.5 minutes on a 13700K vs 45s for the normal build
# probably not worth it for casual users
cargo build --profile release-full

configure

cp config.toml.example config.toml
nano config.toml # edit to your liking
# note stt

run

./target/release/scripty_v2

advanced

MUSL build

same as above, but build with --target x86_64-unknown-linux-musl and execute ./target/x86_64-unknown-linux-musl/release/scripty_v2

on arch also install the musl package

docker?

https://www.youtube.com/watch?v=PivpCKEiQOQ

translations?

Translation status