update
This commit is contained in:
@ -6,7 +6,7 @@ const wolfChars = ['w', 'o', 'l', 'f'];
|
||||
|
||||
client.on("messageCreate", async (message) => {
|
||||
if (message.author.bot) return;
|
||||
if (message.content.includes(">>")) return;
|
||||
if (message.content.includes(">>") || message.content.includes(">r>")) return;
|
||||
|
||||
// convert the message to lowercase
|
||||
const lowerMsg = message.content.toLowerCase();
|
||||
@ -27,6 +27,21 @@ client.on("messageCreate", async (message) => {
|
||||
|
||||
console.log('');
|
||||
console.log('Live wolf count:', newcount);
|
||||
|
||||
if (newcount == 69) {
|
||||
message.react("1103666748592488549").catch(err=>console.log(err)); // pogslide
|
||||
message.react("1103673748466434140").catch(err=>console.log(err)); // 69nice
|
||||
}
|
||||
|
||||
if (newcount == 100) {
|
||||
message.react("💯").catch(err=>console.log(err));
|
||||
message.react("1103666748592488549").catch(err=>console.log(err)); // pogslide
|
||||
}
|
||||
|
||||
if (newcount == 420) {
|
||||
message.react("1103666748592488549").catch(err=>console.log(err)); // pogslide
|
||||
message.react("1103675067054948392").catch(err=>console.log(err)); // pepe_high
|
||||
}
|
||||
|
||||
// update the wolf count
|
||||
wolfcount.findByIdAndUpdate("6447da87681fd1bc486a4923", {count: newcount}).then(() => {
|
||||
|
@ -1,15 +1,51 @@
|
||||
const client = require("../index");
|
||||
const { ActivityType } = require('discord.js');
|
||||
const { EmbedBuilder, ActivityType } = require('discord.js');
|
||||
|
||||
|
||||
client.on("ready", () => {
|
||||
console.clear();
|
||||
console.log(`${client.user.tag} is up and ready to go!`);
|
||||
|
||||
// set the status to do not disturb
|
||||
// client.user.setStatus('dnd')
|
||||
client.user.setPresence({
|
||||
activities: [{ name: `over msgs for certain letters`, type: ActivityType.Watching }],
|
||||
// client.user.setPresence({
|
||||
// activities: [{ name: `over msgs for certain letters`, type: ActivityType.Watching }],
|
||||
// status: 'dnd',
|
||||
// });
|
||||
|
||||
client.user.setPresence({
|
||||
activities: [{ name: `RIP #1123`, type: ActivityType.Playing }],
|
||||
status: 'dnd',
|
||||
});
|
||||
|
||||
// Function to convert RGB to hex
|
||||
function convertToHex(rgb) {
|
||||
// Extract the RGB values using a regex pattern
|
||||
const rgbValues = rgb.match(/\d+/g);
|
||||
|
||||
// Convert each RGB value to a hexadecimal string
|
||||
const hexValues = rgbValues.map((value) => {
|
||||
// Convert the value to a number
|
||||
const intValue = parseInt(value);
|
||||
|
||||
// Convert the number to a hexadecimal string
|
||||
const hexString = intValue.toString(16);
|
||||
|
||||
// Pad the string with zero if needed
|
||||
return hexString.padStart(2, '0');
|
||||
});
|
||||
|
||||
// Return the hex color string
|
||||
return `#${hexValues.join('')}`;
|
||||
};
|
||||
|
||||
const readyEmbed = new EmbedBuilder()
|
||||
.setTitle('Now online!')
|
||||
.setColor(convertToHex('rgb(119, 152, 229)'))
|
||||
.setAuthor({ name: client.user.tag, iconURL: client.user.avatarURL() })
|
||||
.setTimestamp()
|
||||
.setDescription(`${client.user.tag} is nu online`);
|
||||
|
||||
// client.channels.cache.get(`967754078438449192`).send(`${client.user.tag} is nu online.`);
|
||||
client.channels.cache.get(`967754078438449192`).send({ embeds: [readyEmbed] })
|
||||
|
||||
});
|
||||
|
Reference in New Issue
Block a user