We value your privacy
We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.
We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
The cookies that are categorized as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ...
Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.
Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.
No cookies to display.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
/hug, /pat and /slap a member with a random line from lists in the code, and count how many of each a member has received, shown by /affection
Four fun interaction commands for your server:
/hug @member — Give someone a warm hug/pat @member — Pat someone on the head/slap @member — Slap someone (playfully!)/affection [@member] — View affection stats (leave blank to see your own)Each interaction uses a random message from several options, and all hugs, pats, and slaps are counted per member. Check the stats anytime with /affection!
Made by MEE6. Remix it to get a copy of your own and change anything you like.
Alex has been hugged by You!
pats Sam on the head
Sam gives Alex a big hug! 🤗
Jordan slaps Sam! 👋💥
pats Alex on the head
Here's how much love (and slaps) they've received!
2
1
0
Here's how much love (and slaps) they've received!
0
1
1
// Affection commands: /hug, /pat, /slap with random messages and counters
const HUGS = [
'*hugs {target} warmly*',
'{author} gives {target} a big hug! 🤗',
'{target} has been hugged by {author}!',
'*{author} wraps {target} in a warm embrace*',
'{author} hugs {target} tightly! 💙',
];
const PATS = [
'*pats {target} on the head*',
'{author} gently pats {target} 👋',
'*{author} gives {target} comforting head pats*',
'{target} received head pats from {author}!',
'{author} pats {target} affectionately!',
];
const SLAPS = [
'*slaps {target}*',
'{author} slaps {target}! 👋💥',
'*{author} delivers a slap to {target}*',
'{target} got slapped by {author}!',
'{author} slaps {target} across the face!',
];
function randomMessage(list: string[], author: string, target: string): string {
const template = list[Math.floor(Math.random() * list.length)];
return template.replace(/{author}/g, author).replace(/{target}/g, target);
}
mee6.command(
'hug',
{
description: 'Give someone a warm hug',
options: [{ name: 'member', type: 'user', description: 'Who to hug', required: true }],
},
async (ctx) => {
const targetId = ctx.option<string>('member');
const target = await mee6.getMember(targetId);
if (!target) {
await ctx.reply('I could not find that member.');
return;
}
const m = mee6.store.member(targetId);
await m.incr('hugs', 1);
const message = randomMessage(HUGS, ctx.author.displayName, target.displayName);
await ctx.reply(message);
}
);
mee6.command(
'pat',
{
description: 'Pat someone on the head',
options: [{ name: 'member', type: 'user', description: 'Who to pat', required: true }],
},
async (ctx) => {
const targetId = ctx.option<string>('member');
const target = await mee6.getMember(targetId);
if (!target) {
await ctx.reply('I could not find that member.');
return;
}
const m = mee6.store.member(targetId);
await m.incr('pats', 1);
const message = randomMessage(PATS, ctx.author.displayName, target.displayName);
await ctx.reply(message);
}
);
mee6.command(
'slap',
{
description: 'Slap someone',
options: [{ name: 'member', type: 'user', description: 'Who to slap', required: true }],
},
async (ctx) => {
const targetId = ctx.option<string>('member');
const target = await mee6.getMember(targetId);
if (!target) {
await ctx.reply('I could not find that member.');
return;
}
const m = mee6.store.member(targetId);
await m.incr('slaps', 1);
const message = randomMessage(SLAPS, ctx.author.displayName, target.displayName);
await ctx.reply(message);
}
);
mee6.command(
'affection',
{
description: 'View affection stats for yourself or someone else',
options: [{ name: 'member', type: 'user', description: 'Whose stats to view (leave blank for yourself)' }],
},
async (ctx) => {
const targetId = ctx.option<string>('member', ctx.author.id);
const target = await mee6.getMember(targetId);
if (!target) {
await ctx.reply('I could not find that member.');
return;
}
const m = mee6.store.member(targetId);
const data = await m.all();
const hugs = (data.hugs as number) || 0;
const pats = (data.pats as number) || 0;
const slaps = (data.slaps as number) || 0;
await ctx.reply({
embed: {
title: `💙 ${target.displayName}'s Affection Stats`,
description: `Here's how much love (and slaps) they've received!`,
fields: [
{ name: '🤗 Hugs', value: `${hugs}`, inline: true },
{ name: '👋 Pats', value: `${pats}`, inline: true },
{ name: '💥 Slaps', value: `${slaps}`, inline: true },
],
color: '#ff69b4',
},
});
}
);