current_node
.child_nodes
.iter()
- .map(|(_, node)| node.child_count),
+ .map(|(_, node)| node.child_count / (length + 1)),
)
.expect("distribution creation should be valid");
// Require the necessary discord.js classes
-import { Client, GatewayIntentBits } from 'discord.js';
+import { Client, GatewayIntentBits, Message } from 'discord.js';
import { request } from "undici";
// Create a new client instance
try {
// Get the completed word found by the db.
+
let response = await completeWord(cutWord(message.cleanContent));
// Ignore if there is no completion