first commit

This commit is contained in:
Soph :3 2025-09-09 10:15:15 +03:00
commit 0cb536b42b
38 changed files with 9044 additions and 0 deletions

37
README.md Normal file
View file

@ -0,0 +1,37 @@
# copper
Copper is a smart MultiPlayerPiano bot written in Rust.
It features Austin's (nitsua) midi parser and player, which is meant for high-performance and to be able to parse black midis.
## Warning
Clone this repository with `git clone --recursive https://git.sad.ovh/sophie/copper`.
## Features
- 2 billion note per second parser with all modern midi features supported
- Full economy system written using `sqlx` and postgres
- Lots of generic MPP bot features such as following, moving between rooms, et cetera
## Todo
- Playlist has hardcoded Playlist
- Get rid of all mentions of files.sad.ovh as it's my copyparty server, and make it customizable to other servers.
## Running
1. Requirements: Rust Nightly, should be automatically used when you do cargo run.
2. `cargo install`
3. Add config.hocon, example:
```hocon
database {
url: "postgres://user:pass@ip:port/database"
}
commands {
prefix: "r"
name: "Copper"
}
client {
token: "token"
ws: "wss://mppclone.com"
room: "cheez"
}
```
4. Simple as that, `cargo run`.