mirror of
https://github.com/cassoule/flopobot_v2.git
synced 2026-01-18 16:37:40 +01:00
poker elo calculation update
Will be more balanced for larger groups of players
This commit is contained in:
7
index.js
7
index.js
@@ -609,7 +609,7 @@ client.on('messageCreate', async (message) => {
|
||||
}
|
||||
}
|
||||
else if (message.content.startsWith(prefix + ':poker')) {
|
||||
io.emit('message', message.content);
|
||||
console.log('poker')
|
||||
}
|
||||
else if (message.content.startsWith(prefix + ':elo-test')) {
|
||||
const numbers = message.content.match(/\d+/g);
|
||||
@@ -3599,8 +3599,8 @@ app.post('/poker-room/join', async (req, res) => {
|
||||
let amount = getUser.get(userId)?.coins
|
||||
let fakeMoney = false
|
||||
|
||||
if (!amount || amount < 100) {
|
||||
amount = 100
|
||||
if (!amount || amount < 1000) {
|
||||
amount = 1000
|
||||
fakeMoney = true
|
||||
}
|
||||
|
||||
@@ -4432,6 +4432,7 @@ async function updatePokerPlayersSolve(roomId) {
|
||||
|
||||
import http from 'http';
|
||||
import { Server } from 'socket.io';
|
||||
import * as test from "node:test";
|
||||
const server = http.createServer(app);
|
||||
|
||||
const io = new Server(server, {
|
||||
|
||||
Reference in New Issue
Block a user