When someone posts a voice-chat ping in a channel I choose, reply with a sunny morning picture between 8am and 8pm UTC and a calm night picture otherwise; make the two pictures with the image model
When someone posts a voice-chat ping in your configured channel, this creation replies with a time-appropriate picture: a sunny morning scene between 8am–8pm UTC, or a calm night scene at other times.
Setup: Choose which channel to monitor in the dashboard settings.
The creation automatically detects channel mentions (<#...>) in messages and responds with the appropriate picture based on the current UTC hour.
Made by MEE6. Remix it to get a copy of your own and change anything you like.
🌙 Good evening!

☀️ Good morning!

// Day or night pictures — answers a voice-chat ping with a picture that fits the hour
mee6.settings({
channel: {
type: 'channel',
label: 'Channel to monitor for VC pings',
required: true,
sample: 'general',
},
});
// Only messages in the configured channel that ping a channel wake the module.
// Voice chat pings look like: <#channelId> where the channel is a voice channel
mee6.on('message', { channels: [mee6.setting('channel')], contains: ['<#'] }, async (ctx) => {
// Get current hour in UTC
const now = new Date();
const utcHour = now.getUTCHours();
// Determine which picture to show: morning (8am-8pm UTC) or night (8pm-8am UTC)
const isDaytime = utcHour >= 8 && utcHour < 20;
const assetName = isDaytime ? 'morning_sunny' : 'night_calm';
const timeLabel = isDaytime ? '☀️ Good morning!' : '🌙 Good evening!';
// Get the picture URL
const imageUrl = await mee6.assets.get(assetName);
if (!imageUrl) {
mee6.log(`Asset ${assetName} not found`);
return;
}
// Reply with the time-appropriate picture
await ctx.reply({
content: timeLabel,
embed: {
image_url: imageUrl,
color: isDaytime ? 0xffd700 : 0x1e3a8a,
},
});
});
The pictures this example ships with. Remix it to change them or add your own.
morning_sunnynight_calm