mirror of
https://github.com/Ninluc/Dat_Boi.git
synced 2025-08-09 23:26:13 +02:00
Added timed messages
This commit is contained in:
30
timedMessages/hellcase.js
Normal file
30
timedMessages/hellcase.js
Normal file
@ -0,0 +1,30 @@
|
||||
const { MessageEmbed, Message } = require("discord.js");
|
||||
const config = require("../botconfig/config.json");
|
||||
const ee = require("../botconfig/embed.json");
|
||||
const { sendNinluc } = require("../handlers/functions");
|
||||
|
||||
const RAPPEL_CHANNEL_ID = "1296051297262370866";
|
||||
|
||||
module.exports = {
|
||||
name: "Hellcase",
|
||||
time: "21:30",
|
||||
run: async (client) => {
|
||||
try {
|
||||
client.channels.fetch(RAPPEL_CHANNEL_ID)
|
||||
.then(channel => channel.send({
|
||||
embeds: [
|
||||
new MessageEmbed()
|
||||
.setColor(ee.color)
|
||||
.setFooter({ text: ee.footertext, iconURL: ee.footericon })
|
||||
.setTitle(`Rappel : Caisse gratuite Hellcase`)
|
||||
.setDescription("[Hellcase](https://hellcase.com/)")
|
||||
],
|
||||
})
|
||||
);
|
||||
} catch (e) {
|
||||
console.log(String(e.stack).bgRed);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
/** Template by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template */
|
29
timedMessages/snap.js
Normal file
29
timedMessages/snap.js
Normal file
@ -0,0 +1,29 @@
|
||||
const { MessageEmbed, Message } = require("discord.js");
|
||||
const config = require("../botconfig/config.json");
|
||||
const ee = require("../botconfig/embed.json");
|
||||
const { sendNinluc } = require("../handlers/functions");
|
||||
|
||||
const RAPPEL_CHANNEL_ID = "1296051297262370866";
|
||||
|
||||
module.exports = {
|
||||
name: "Shop Marvel Snap",
|
||||
time: "21:00",
|
||||
run: async (client) => {
|
||||
try {
|
||||
client.channels.fetch(RAPPEL_CHANNEL_ID)
|
||||
.then(channel => channel.send({
|
||||
embeds: [
|
||||
new MessageEmbed()
|
||||
.setColor(ee.color)
|
||||
.setFooter({ text: ee.footertext, iconURL: ee.footericon })
|
||||
.setTitle(`Rappel : Shop Marvel Snap`)
|
||||
],
|
||||
})
|
||||
);
|
||||
} catch (e) {
|
||||
console.log(String(e.stack).bgRed);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
/** Template by Tomato#6966 | https://github.com/Tomato6966/Discord-Js-Handler-Template */
|
Reference in New Issue
Block a user