Compare commits
No commits in common. "e9407a5fee28e2faf2deffdf71e023015b27f458" and "5b30fbcd948bc5ca854f5d8b88aa5920f87052c7" have entirely different histories.
e9407a5fee
...
5b30fbcd94
|
@ -1,4 +1,4 @@
|
|||
DATABASE_URL="file:./db.sqlite"
|
||||
PORT=8443
|
||||
ADMIN_PASS=
|
||||
ADMINPASS=
|
||||
SALT=
|
||||
|
|
16
README.md
16
README.md
|
@ -14,13 +14,7 @@ The commit history includes BopItFreak's server because this server is (debatabl
|
|||
$ curl -fsSL https://bun.sh/install | bash
|
||||
```
|
||||
|
||||
1. Setup Git submodules
|
||||
|
||||
```
|
||||
$ git submodule update --init --recursive
|
||||
```
|
||||
|
||||
2. Configure
|
||||
1. Configure
|
||||
|
||||
- Copy environment variables
|
||||
|
||||
|
@ -32,26 +26,26 @@ The commit history includes BopItFreak's server because this server is (debatabl
|
|||
|
||||
- Edit the files in the `config` folder to match your needs
|
||||
|
||||
3. Install packages
|
||||
2. Install packages
|
||||
|
||||
```
|
||||
$ bun i
|
||||
```
|
||||
|
||||
4. Setup database
|
||||
3. Setup database
|
||||
|
||||
```
|
||||
$ bunx prisma generate
|
||||
$ bunx prisma db push
|
||||
```
|
||||
|
||||
5. Build
|
||||
4. Build
|
||||
|
||||
```
|
||||
$ bun run build
|
||||
```
|
||||
|
||||
6. Run
|
||||
5. Run
|
||||
|
||||
```
|
||||
$ bun start
|
||||
|
|
|
@ -93,16 +93,14 @@ export class Socket extends EventEmitter {
|
|||
this.id = foundSocket.id;
|
||||
}
|
||||
|
||||
(async () => {
|
||||
await this.loadUser();
|
||||
this.loadUser();
|
||||
|
||||
// TODO Permissions
|
||||
let isAdmin = false;
|
||||
// TODO Permissions
|
||||
let isAdmin = false;
|
||||
|
||||
this.setRateLimits(isAdmin ? adminLimits : userLimits);
|
||||
this.setRateLimits(isAdmin ? adminLimits : userLimits);
|
||||
|
||||
this.bindEventListeners();
|
||||
})();
|
||||
this.bindEventListeners();
|
||||
}
|
||||
|
||||
public getIP() {
|
||||
|
@ -135,10 +133,7 @@ export class Socket extends EventEmitter {
|
|||
// Does channel exist?
|
||||
if (channel) {
|
||||
// Exists, join normally
|
||||
(async () => {
|
||||
await this.loadUser();
|
||||
channel.join(this);
|
||||
})();
|
||||
channel.join(this);
|
||||
} else {
|
||||
// Doesn't exist, create
|
||||
channel = new Channel(
|
||||
|
|
Loading…
Reference in New Issue