Fix tag things
This commit is contained in:
parent
9b48d41bd8
commit
f0e3622306
|
@ -45,6 +45,7 @@ Brandon's server originally used MongoDB for storing user data, but there are to
|
|||
- Triggers notification on every connected socket, then shuts down after 20 seconds
|
||||
- Server must be setup as a pm2/docker/systemd process for automatic restarting
|
||||
- Ability to change tags
|
||||
- Similar to the MPP.net server, but uses a Brandon-style admin message
|
||||
|
||||
## TODO
|
||||
|
||||
|
@ -54,6 +55,7 @@ Brandon's server originally used MongoDB for storing user data, but there are to
|
|||
- Permission groups and permissions
|
||||
- Probable permission groups: owner, admin, mod, trialmod, default
|
||||
- Setup tags for each permission group
|
||||
- Redo ratelimits
|
||||
- Full server-wide event bus
|
||||
- Channel events
|
||||
- Socket events
|
||||
|
|
|
@ -31,11 +31,11 @@ enableAdminEval: true
|
|||
|
||||
# The token validation scheme. Valid values are "none", "jwt" and "uuid".
|
||||
# This server will still validate existing tokens generated with other schemes if not set to "none".
|
||||
tokenAuth: jwt
|
||||
tokenAuth: none
|
||||
|
||||
# The browser challenge scheme. Valid values are "none", "obf" and "basic".
|
||||
# This is to change what is sent in the "b" message.
|
||||
# "none" will disable the browser challenge,
|
||||
# "obf" will sent an obfuscated function to the client,
|
||||
# and "basic" will just send a simple function that expects a boolean.
|
||||
browserChallenge: basic
|
||||
browserChallenge: none
|
||||
|
|
2
public
2
public
|
@ -1 +1 @@
|
|||
Subproject commit ccc02f653a3eebeb2d64f894b978cc78a5c62c42
|
||||
Subproject commit 7f58dd80a3cc72a4f141c3a94e561e3f2bf3c5fe
|
|
@ -360,9 +360,7 @@ export class Socket extends EventEmitter {
|
|||
|
||||
try {
|
||||
tag = JSON.parse(this.user.tag) as Tag;
|
||||
} catch (err) {
|
||||
logger.warn("Unable to parse tag:", err);
|
||||
}
|
||||
} catch (err) { }
|
||||
|
||||
return {
|
||||
_id: facadeID,
|
||||
|
|
|
@ -70,7 +70,7 @@ export const hi: ServerEventListener<"hi"> = {
|
|||
};
|
||||
}
|
||||
|
||||
logger.debug("Tag:", part.tag);
|
||||
//logger.debug("Tag:", part.tag);
|
||||
|
||||
socket.sendArray([{
|
||||
m: "hi",
|
||||
|
|
Loading…
Reference in New Issue