Initial commit

This commit is contained in:
Joshua Ashton 2023-09-12 00:50:50 +01:00
commit 30c0427a32
623 changed files with 3054 additions and 0 deletions

6
.dockerignore Normal file
View File

@ -0,0 +1,6 @@
target
target/
target/*
invite
invite_dev
token.sh

6
.gitattributes vendored Normal file
View File

@ -0,0 +1,6 @@
*.wav filter=lfs diff=lfs merge=lfs -text
*.mp3 filter=lfs diff=lfs merge=lfs -text
*.ogg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
debug/
target/
data/
Cargo.lock
**/*.rs.bk
**/*.bak
winter_options.json
token_dev.sh
token.sh
invite_dev
invite

45
Cargo.toml Normal file
View File

@ -0,0 +1,45 @@
[package]
name = "winter"
version = "0.1.0"
authors = ["Joshua Ashton <joshua@froggi.es>"]
edition = "2018"
[dependencies]
tracing = "0.1"
tracing-subscriber = "0.2"
tracing-futures = "0.2"
reqwest = "0.11"
base64-stream = "1.2.7"
rand = "0.8.5"
[dependencies.songbird]
features = ["builtin-queue", "yt-dlp"]
version = "0.3.2"
[dependencies.serenity]
version = "0.11"
features = ["client", "standard_framework", "voice", "rustls_backend"]
[dependencies.tokio]
version = "1.0"
features = ["macros", "rt-multi-thread", "signal"]
[dependencies.serde]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.meval]
version = "0.2"
[dependencies.uuid]
version = "1.3.0"
features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
"macro-diagnostics", # Enable better diagnostics for compile-time UUIDs
]
#[patch.crates-io]
#songbird = { git = "https://github.com/Erk-/songbird", branch="do-not-fail-if-new-opcode" }

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM debian:unstable
MAINTAINER Joshua Ashton <joshua@froggi.es>
WORKDIR /winter_build
COPY . /winter_build
RUN apt-get update && apt-get install -y build-essential openssl pkg-config libssl-dev libssh-dev yt-dlp cmake curl && rm -rf /var/lib/apt/lists/*
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cargo install --path .
RUN cp /root/.cargo/bin/winter /usr/local/bin/winter
RUN mkdir -p /winter/assets
RUN mkdir -p /winter/data
COPY ./assets /winter/assets
CMD ["winter"]

BIN
assets/vox/_comma.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/_period.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/a.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/accelerating.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/accelerator.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/accepted.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/access.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/acknowledge.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/acknowledged.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/acquired.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/acquisition.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/across.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/activate.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/activated.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/activity.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/adios.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/administration.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/advanced.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/after.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/agent.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/alarm.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/alert.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/alien.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/aligned.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/all.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/alpha.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/am.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/amigo.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/ammunition.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/an.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/and.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/announcement.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/anomalous.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/antenna.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/any.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/apprehend.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/approach.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/are.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/area.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/arm.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/armed.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/armor.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/armory.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/arrest.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/ass.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/at.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/atomic.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/attention.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/authorize.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/authorized.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/automatic.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/away.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/b.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/back.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/backman.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bad.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bag.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bailey.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/barracks.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/base.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bay.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/be.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/been.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/before.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/beyond.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/biohazard.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/biological.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/birdwell.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bizwarn.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/black.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/blast.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/blocked.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bloop.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/blue.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bottom.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bravo.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/breach.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/breached.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/break.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bridge.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bust.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/but.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/button.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/buzwarn.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/bypass.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/c.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/cable.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/call.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/called.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/canal.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/cap.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/captain.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/capture.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/ceiling.wav (Stored with Git LFS) Executable file

Binary file not shown.

BIN
assets/vox/celsius.wav (Stored with Git LFS) Executable file

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More