Command to give out hugs, counting how many have been given
const { user, targetUser } = ctx; // Cannot hug nobodyif (targetUser === null) { return "....You can't hug nobody silly... you gotta put the name";} // Create counter for hugsconst hugCounter = api.kv.createScopedCounter("hugCounters"); // Increase the user hug counterconst userHugs = await hugCounter.increase(user.name, 1); return `${user.name} hugged ${targetUser}. They have given out ${userHugs} hugs.`;