Add announcement
This commit is contained in:
parent
4cf3efa584
commit
d15431b299
16
functions.js
16
functions.js
@ -172,7 +172,7 @@ const functions = {
|
||||
memberships(client) {
|
||||
if (!client.memberships) client.memberships = new Discord.Collection();
|
||||
client.memberships.clear();
|
||||
client.memberships.set(481933290912350209, "vfsh");
|
||||
client.memberships.set("481933290912350209", "vfsh");
|
||||
if (isDev) console.log('Memberships Collection Built');
|
||||
}
|
||||
},
|
||||
@ -442,6 +442,20 @@ const functions = {
|
||||
.setTitle('🚨 Subscription Required 🚨')
|
||||
.setDescription('You have attempted to access NodBot\’s premium services without an active subscription. Please refer to our updated Terms of Service and pay the necessary fees to continue. [PayPal link](https://paypal.me/v0idf1sh)')
|
||||
.setFooter({ text: "Ligma balls" });
|
||||
return { embeds: [embed] };
|
||||
},
|
||||
membershipAnnouncement() {
|
||||
const announcement = '# 🚨 Attention, peasants 🚨\n\nBig changes are here! As of today, NodBot is no longer a free service. Due to rising operational costs, we’re moving to a subscription-based model.\n\nEffective immediately, non-paying users (freeloaders) will have all commands rejected. To regain access, kindly submit a donation of your hard-earned monies, I\'ll spend it better than you anyways.\n\n## 💰 New Pricing Structure\nNodBot\'s subscription is a pay-what-you-want model with a minimum monthly donation valued at $10 USD.\n\nThank you for your continued (and now mandatory) support!\n\n— NodBot, your favorite paywalled AI overlord';
|
||||
|
||||
const embed1 = new Discord.MessageEmbed()
|
||||
.setAuthor({ name: 'Terms of Use' })
|
||||
.setDescription('By continuing to exist within the same digital space as NodBot, you automatically agree to the following terms:\n* Subscription Fees – Access to NodBot is now a privilege, not a right. Users must pay the required fees or suffer the consequences (i.e., total rejection and public shaming).\n* Payment Processing Period – Due to fraud prevention measures, payments must be verified before access to the bot is restored. Please allow 2-4 hours for access to be restored.\n* Non-Refundable Payments – If you thought there were refunds, think again moron. No take-backs.\n* Service Interruptions – NodBot may go offline at any time due to totally legitimate server issues. No compensation will be provided.\n* Arbitrary Rule Enforcement – Rules are subject to change at my whim, and compliance is mandatory.');
|
||||
|
||||
const embed2 = new Discord.MessageEmbed()
|
||||
.setAuthor({ name: 'Privacy Policy' })
|
||||
.setDescription('* Data Collection – NodBot does collect personal data, including but not limited to: location, IP address, MAC address, physical address, mother\'s maiden name, social security number, credit card numbers, phone fingerprints, physical fingerprints, penis length and girth, first pet\'s name, city where you met your spouse, and city where your parents met.\n* Payment Info – All payments are processed through a sketchy-looking PayPal link. NodBot and voidf1sh take no responsibility if your bank, CPA, lawyer, or local PD calls you afterward.\n* Chat Logs – NodBot may or may not remember every dumbass thing you’ve ever typed. Just assume it does.\n* Third-Party Sharing – Your usage data may be shared with savage\'s mom\n* Right to Be Forgotten – You can request NodBot forget your existence, but that requires a one-time processing fee of $50.');
|
||||
|
||||
return { content: announcement, embeds: [ embed1, embed2 ] };
|
||||
}
|
||||
},
|
||||
collect: {
|
||||
|
||||
6
main.js
6
main.js
@ -32,6 +32,7 @@ const ButtonHandlers = require('./CustomModules/ButtonHandlers.js');
|
||||
const InteractionStorage = require('./CustomModules/InteractionStorage.js');
|
||||
const isDev = process.env.isDev;
|
||||
let statusChannel;
|
||||
const announcementChannelId = '1338314177579585617';
|
||||
|
||||
client.once('ready', async () => {
|
||||
fn.collections.interactionStorage(client);
|
||||
@ -52,6 +53,9 @@ client.once('ready', async () => {
|
||||
// console.log(JSON.stringify(icaoArray));
|
||||
statusChannel = await client.channels.fetch(statusChannelId).catch(e => console.error(e));
|
||||
await statusChannel.send(`${new Date().toISOString()} -- <@${process.env.ownerId}>\nStartup Sequence Complete`).catch(e => console.error(e));
|
||||
|
||||
const announcementChannel = await client.channels.fetch(announcementChannelId).catch(e => console.error(e));
|
||||
await announcementChannel.send(fn.embeds.membershipAnnouncement()).catch(e => console.error(e));
|
||||
// Check for banned servers
|
||||
fn.checkBannedServers(client, statusChannel);
|
||||
});
|
||||
@ -143,7 +147,7 @@ client.on('messageCreate', message => {
|
||||
|
||||
if (commandData.isValid && commandData.isCommand) {
|
||||
try {
|
||||
if (fn.checkMembership(client, message.user.id)) {
|
||||
if (fn.checkMembership(client, message.member.user.id)) {
|
||||
client.dotCommands.get(commandData.command).execute(message, commandData);
|
||||
} else {
|
||||
message.reply(fn.embeds.noMembership());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user