This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const generatePaginationKeyboard = (current, count, prefix) => { | |
let keyboard = [] | |
if (count <= 5) { | |
return Array.from({ length: count }, (_, index) => index + 1).map((index) => { | |
const text = current + 1 === index ? `· ${index} ·` : `${index}` | |
return Markup.callbackButton(text, `${prefix}${index - 1}`) | |
}) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@type": "config.global", | |
"dht": { | |
"@type": "dht.config.global", | |
"a": 3, | |
"k": 6, | |
"static_nodes": { | |
"@type": "dht.nodes", | |
"nodes": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {getMentionUserString} = require('../functions/utils') | |
const gamesRates = { | |
'roll-dice-even-odd': 3000, | |
'roll-dice-three': 3000, | |
'spin-slot-machine-four': 1800, | |
} | |
const RATE_LIMITS = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose') | |
const {Schema} = mongoose | |
const Dice = new Schema({ | |
type: Number, | |
transaction_id: mongoose.ObjectId, | |
owner_id: Number, |