Compare commits
No commits in common. "701cf82af89b4fd44303d86b5dc06202840704f8" and "56d8bd34be22c8c6fa88f6cbebf8d9fc1f772886" have entirely different histories.
701cf82af8
...
56d8bd34be
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.5.16",
|
"version": "1.5.15",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.5.16",
|
"version": "1.5.15",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bhttp": "^1.2.8",
|
"bhttp": "^1.2.8",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "schat2-clive",
|
"name": "schat2-clive",
|
||||||
"version": "1.5.16",
|
"version": "1.5.15",
|
||||||
"description": "Game host for SChat 2-powered chat sites",
|
"description": "Game host for SChat 2-powered chat sites",
|
||||||
"main": "src/app.js",
|
"main": "src/app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -72,8 +72,7 @@ async function setPoints(defaultKey, user, value, { mode = 'add', key } = {}) {
|
||||||
await fs.writeFile(`./points-${instance}.json`, JSON.stringify(points, null, 4));
|
await fs.writeFile(`./points-${instance}.json`, JSON.stringify(points, null, 4));
|
||||||
}
|
}
|
||||||
|
|
||||||
function getPoints(game, rawUsername, { user, room, command }) {
|
function getPoints(game, username, { user, room, command }) {
|
||||||
const username = rawUsername?.replace(/^@/, '');
|
|
||||||
const gamePoints = points[command] || points[game.key];
|
const gamePoints = points[command] || points[game.key];
|
||||||
|
|
||||||
const userPoints = username
|
const userPoints = username
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue