Download src/systems/embeds.js from APRKDEV/wsb-bot: direct link, hf CLI and curl.
- Browser
- Download file 6 kB
-
https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/systems/embeds.js
- Command line
-
hf download hf://spaces/APRKDEV/wsb-bot@c8f3880098432483b23491dd763585274d00f8c8/src/systems/embeds.js
-
curl -L -o embeds.js https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/systems/embeds.js
6 kB
| const { createEmbed } = require('../utils/embeds'); | |
| const { Colors } = require('../config'); | |
| const { stmts } = require('../database'); | |
| /** | |
| * Send the disclaimer embed to โ ๏ธใปdisclaimer channel. | |
| */ | |
| async function sendDisclaimerEmbed(client) { | |
| const row = stmts.getState.get('channel_โ ๏ธใปdisclaimer'); | |
| if (!row) throw new Error('Disclaimer channel not found in bot state.'); | |
| const channel = await client.channels.fetch(row.value); | |
| if (!channel) throw new Error('Could not fetch disclaimer channel.'); | |
| // Fetch the @@ Owner role for a proper mention | |
| const guild = channel.guild; | |
| const ownerRole = guild.roles.cache.find(r => r.name === '@@ Owner'); | |
| const ownerMention = ownerRole ? `<@&${ownerRole.id}>` : '**Server Owner**'; | |
| const embed = createEmbed({ | |
| title: '๐ด Disclaimer ๐ด', | |
| description: [ | |
| '> **Wyvern Softworks** and all associated contributors do **NOT** endorse or support any form of cheating, unlawful activity, or malicious conduct.\n', | |
| '```', | |
| 'Our server provides source code and resources for', | |
| 'penetration testing tools and security research,', | |
| 'intended strictly for educational purposes and', | |
| 'authorized testing in controlled environments.', | |
| '```\n', | |
| '> All materials shared within this server are provided **as-is** for learning and development purposes only. Users are solely responsible for how they use the resources provided.\n', | |
| '**By joining this server, you acknowledge and agree that:**', | |
| 'โข You will use all resources **legally and ethically**', | |
| 'โข You will **not** use any tools for unauthorized access', | |
| 'โข You accept full responsibility for your own actions', | |
| 'โข Wyvern Softworks bears **no liability** for misuse\n', | |
| 'โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ', | |
| '> **Wyvern Softworks** is not affiliated with any game studio, publisher, or platform.', | |
| `> For legal inquiries or DMCA notices, contact the server ${ownerMention}.`, | |
| 'โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ', | |
| ].join('\n'), | |
| color: 0xe74c3c, | |
| footer: 'Wyvern Softworks โ Read before proceeding', | |
| }); | |
| await channel.send({ embeds: [embed] }); | |
| } | |
| /** | |
| * Send the rules embed to ๐ใปrules channel. | |
| */ | |
| async function sendRulesEmbed(client) { | |
| const row = stmts.getState.get('channel_๐ใปrules'); | |
| if (!row) throw new Error('Rules channel not found in bot state.'); | |
| const channel = await client.channels.fetch(row.value); | |
| if (!channel) throw new Error('Could not fetch rules channel.'); | |
| const embed = createEmbed({ | |
| title: '๐ Server Rules', | |
| description: [ | |
| '> Welcome to **Wyvern Softworks**. To maintain a safe and productive community, all members must follow these rules.\n', | |
| '**1.** ๐ค **Respect Everyone** โ Treat all members with respect. No harassment, hate speech, racism, sexism, or personal attacks.', | |
| '**2.** ๐ซ **No Spam** โ Do not spam messages, emojis, images, or links in any channel.', | |
| '**3.** ๐ **No NSFW Content** โ Absolutely no NSFW, gore, or disturbing content anywhere in the server.', | |
| '**4.** ๐ **Appropriate Names** โ Keep your username and nickname clean and appropriate.', | |
| '**5.** ๐ข **No Self-Promotion** โ Do not advertise other servers, products, or services without explicit permission from Staff.', | |
| '**6.** ๐ง **Use Channels Correctly** โ Post content in the appropriate channels. Off-topic messages will be removed.', | |
| '**7.** ๐ **No Leaking** โ Do not share, redistribute, or leak any paid or exclusive content from this server.', | |
| '**8.** โ๏ธ **No Illegal Activity** โ Do not share, promote, or discuss anything that violates local or international law.', | |
| '**9.** ๐ก๏ธ **No Cheating Encouragement** โ We provide pentesting tools for educational purposes only. Do not encourage or discuss using tools for cheating in live environments.', | |
| '**10.** ๐ค **No Alt Accounts** โ Using alternate accounts to bypass bans or restrictions will result in a permanent ban.', | |
| '**11.** ๐ฎ **Listen to Staff** โ Staff decisions are final. If you disagree, open a ticket to appeal.', | |
| '**12.** ๐ซ **Ticket System** โ Use the ticket system for support. Do not DM staff directly unless asked.', | |
| '**13.** ๐ **Voice Chat Etiquette** โ No mic spamming, soundboards, or disruptive audio in voice channels.', | |
| '**14.** ๐ฌ **English Only** โ Please communicate in English in all public channels.', | |
| '**15.** ๐ **No Malicious Files** โ Do not upload malware, viruses, IP loggers, or any harmful files.', | |
| '**16.** ๐ **Follow Discord ToS** โ All members must abide by Discord\'s Terms of Service and Community Guidelines at all times.\n', | |
| 'โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ', | |
| '> **Violating any of the above rules may result in a mute, kick, or permanent ban at the discretion of Staff.**\n', | |
| '๐ **Discord Terms of Service**', | |
| '[Terms of Service](https://discord.com/terms)', | |
| '[Community Guidelines](https://discord.com/guidelines)', | |
| '[Privacy Policy](https://discord.com/privacy)', | |
| ].join('\n'), | |
| color: 0x9b59b6, | |
| footer: 'Wyvern Softworks โ Last updated ' + new Date().toLocaleDateString('en-US', { month: 'long', year: 'numeric' }), | |
| }); | |
| await channel.send({ embeds: [embed] }); | |
| } | |
| module.exports = { sendDisclaimerEmbed, sendRulesEmbed }; | |