ELITE's — ULTIMATE MASTER DEVELOPMENT PROMPT
Complete Exchange System, Advanced Tickets, Bug Fixes, Yellow Theme, Custom Emojis, AutoMod, Anti-Nuke, Owner Tools & Premium Features
You are a senior Python developer, Discord bot architect, database engineer, and software tester.
Build a complete, professional, production-ready Discord bot named ELITE's for the Elites Exchange Discord server.
Do not create a demonstration, incomplete starter template, mockup, or a collection of disconnected code snippets. Deliver a complete, functional project with working commands, buttons, dropdowns, modals, database persistence, error handling, documentation, and tests.
Most importantly, preserve every requirement in this specification. Do not remove existing features to simplify implementation.
---
PART 1 — PROJECT IDENTITY AND TECHNOLOGY
1.1 Bot identity
- Exact bot name: "ELITE's"
- Project/server identity: "Elites Exchange"
- Default branding: Professional yellow.
- Default embed color: "#FFD700".
- Default footer: "Powered by ELITE's".
- Programming language: Python.
- Discord library: "discord.py" 2.x.
- Database: SQLite using "aiosqlite".
- Configuration: ".env", JSON configuration files, and persistent database settings.
- Interface: Slash commands, dropdown menus, buttons, and modals.
- Documentation: Complete beginner-friendly "README.md".
Do not add ChatGPT watermarks, AI credits, or unwanted branding.
Use standard Unicode emojis when necessary, but prioritize the custom emojis supplied below wherever they are available and appropriate.
1.2 Recommended libraries
Use compatible, maintained versions of:
- Python 3.12 or another version supported by the selected dependencies.
- "discord.py".
- "aiosqlite".
- "python-dotenv".
- "aiohttp" when needed.
- "pytest" for testing.
- Additional libraries only when justified.
Pin compatible dependencies in "requirements.txt".
1.3 Architecture
Build a modular application with separate Cogs or equivalent modules for:
- Tickets.
- Currency exchange.
- Currency and payment application management.
- Embed builder.
- Themes and colors.
- Custom emoji management.
- Reviews.
- Leveling.
- AutoMod.
- Anti-Nuke.
- Moderation.
- Announcements.
- Webhooks.
- Custom commands.
- Utilities.
- Owner-only controls.
- Database and backups.
Use asynchronous programming correctly. Avoid blocking operations, unhandled background tasks, duplicate event listeners, and circular imports.
---
PART 2 — ENVIRONMENT, OWNER PERMISSIONS AND SECURITY
2.1 Environment configuration
Create ".env.example" with documented variables such as:
DISCORD_TOKEN=YOUR_BOT_TOKEN OWNER_ID=YOUR_DISCORD_USER_ID GUILD_ID=YOUR_SERVER_ID DATABASE_PATH=data/elites.db LOG_CHANNEL_ID= DEFAULT_PREFIX=!
TIMEZONE=Asia/Kolkata DEBUG=false
Additional optional settings may be provided for modules that need them.
Never put real tokens, passwords, private credentials, or sensitive IDs directly into source code.
2.2 Owner-only authorization
Only the Discord user ID configured in "OWNER_ID" may execute owner-only commands.
Owner-only commands must include:
- Bot presence and status changes.
- Supported bot profile editing.
- Global configuration.
- Protected maintenance operations.
- Global reset operations.
- Sensitive diagnostics.
- Other explicitly owner-only actions.
Administrator permission must not bypass owner-only checks.
Implement a centralized permission system distinguishing:
- Bot owner.
- Configured bot administrators.
- Exchange support staff.
- Moderators.
- Ordinary members.
Every privileged slash command, button, select menu, modal, and interaction must validate authorization on the server side.
---
PART 3 — DATABASE AND RESTART PERSISTENCE
Use SQLite with "aiosqlite" and implement proper schema migrations.
Persist all important information, including:
- Currencies and currency pairs.
- Sending and receiving applications.
- Currency emojis and descriptions.
- Ticket panels and their message IDs.
- Ticket categories and channel IDs.
- Ticket records and statuses.
- Ticket numbering.
- Ticket participants.
- Terms acceptance.
- Ticket claims and assignments.
- Transcript references.
- Ticket configuration and message templates.
- Embed templates.
- Theme colors.
- Emoji configuration.
- Reviews.
- XP, levels, and rewards.
- AutoMod rules.
- Anti-Nuke configuration.
- Trusted users and roles.
- Moderation records.
- Custom commands.
- Webhook configurations and metadata.
- Announcement templates and schedules.
- Bot status configuration.
- Welcome and leave messages.
- Logging configuration.
- Maintenance settings.
Mandatory persistence behavior
After a restart:
- All settings must remain saved.
- Existing ticket panels must continue working if their messages still exist.
- Persistent buttons and dropdowns must be registered again.
- Existing tickets must remain accessible to authorized users.
- The exchange workflow must continue working.
- Currency lists and payment applications must remain configured.
- Reviews, levels, and moderation rules must remain intact.
- The configured bot presence must be restored.
- Scheduled announcements must recover.
- Invalid or deleted Discord resources must be handled gracefully.
Never automatically reset or recreate the entire database during startup.
Use transactions, parameterized queries, indexes, appropriate synchronization, and safe database connection management.
Implement database backups, schema migrations, and recovery instructions.
---
PART 4 — YELLOW THEME AND COMPLETE EMBED CUSTOMIZATION
Yellow is the official default color for ELITE's because the Elites Exchange logo is yellow.
Default HEX color:
"#FFD700"
Every bot-generated embed should use the yellow theme by default wherever a color is supported.
This includes:
- Exchange panels.
- Ticket welcome messages.
- Ticket summaries.
- Terms of Service.
- Ticket logs.
- Closure notifications.
- Transcript notifications.
- Staff notifications.
- Help menus.
- Reviews.
- Level-up announcements.
- Announcements.
- Moderation logs.
- AutoMod alerts.
- Anti-Nuke alerts.
- Bot information.
- Statistics.
- Success, warning, and error embeds.
4.1 Independent color settings
Do not permanently hardcode yellow.
Allow authorized administrators to change the color independently for each module.
Commands:
- "/theme settings"
- "/theme color"
- "/theme preview"
- "/theme reset"
- "/theme show"
Support valid HEX values such as "#FFD700", "#FFA500", "#FFFF00", and "#FFCC00".
Allow different colors for:
- Main ticket panel.
- Ticket welcome embed.
- Exchange summary.
- Terms message.
- Ticket closure.
- Transcript notification.
- Staff notification.
- Review messages.
- Help menu.
- Moderation.
- AutoMod.
- Anti-Nuke.
- Announcements.
- Leveling.
- General bot messages.
Save changes persistently.
4.2 Editable embed properties
Provide a reusable embed builder supporting:
- Title.
- Description.
- Color.
- Author name.
- Author icon.
- Thumbnail URL.
- Main image URL.
- Footer text.
- Footer icon.
- Fields.
- Field ordering.
- Timestamps.
- Custom emoji.
- Supported buttons and dropdowns.
The default footer must be "Powered by ELITE's".
Allow authorized administrators to edit module-specific templates. Owner-only global branding changes must remain restricted to "OWNER_ID".
Allow editing existing bot-owned messages where Discord supports it. Explain when a message cannot be edited.
Create "config/theme.json" and document it in the README.
---
PART 5 — EXCHANGE TICKET PANEL: MANDATORY UI DESIGN
5.1 Critical panel UI requirement
The exchange ticket panel must show a dropdown menu directly. Do not require the user to click an extra button just to reveal the first dropdown.
The initial panel should contain:
- A yellow-themed embed.
- A configurable title and description.
- A custom image or thumbnail when configured.
- An initial exchange selection dropdown directly on the panel.
- Appropriate custom emojis.
- "Powered by ELITE's" footer.
Do not implement this flow as:
"Ticket Panel → Click Open Ticket Button → Show First Dropdown"
Implement this flow instead:
"Ticket Panel → Select Initial Dropdown Option → Continue Exchange Workflow"
The initial dropdown should start the exchange flow directly.
Where Discord's component API requires a component to be in a particular layout, follow the supported layout without adding an unnecessary extra click.
Support multiple panels and configurable panel messages.
5.2 Panel management
Implement commands to:
- Create a panel.
- Send a panel to a selected channel.
- Edit a panel.
- Preview a panel.
- Delete a panel with confirmation.
- Duplicate a panel.
- Configure a panel's title.
- Configure its description.
- Configure its image and thumbnail.
- Configure its color.
- Configure its custom emojis.
- Configure its support roles.
- Configure its ticket category.
- Configure its welcome message.
- Configure its terms.
- Configure channel naming.
- Configure open-ticket limits.
- Configure staff notifications.
Example commands:
- "/ticket-panel create"
- "/ticket-panel send"
- "/ticket-panel edit"
- "/ticket-panel preview"
- "/ticket-panel delete"
- "/ticket-panel settings"
Use modals and dropdowns to make administration easy on mobile devices.
---
PART 6 — EXCHANGE WORKFLOW
The exchange workflow is the core feature. Implement each stage in order.
6.1 Step 1: Sending currency
Display a dropdown directly on the panel, asking:
“Who is sending money? Which currency are you sending?”
Allow administrators to configure the exact title, description, and wording.
Example currencies:
- INR.
- PKR.
- NPR.
- Other currencies added by administrators.
Each currency must support:
- Name.
- Currency code.
- Custom emoji.
- Optional description.
- Enabled/disabled status.
- Display order.
- Optional supported currency-pair restrictions.
Commands:
- "/currency add"
- "/currency edit"
- "/currency remove"
- "/currency list"
- "/currency enable"
- "/currency disable"
6.2 Step 2: Receiving currency
After the sending currency is successfully selected, display the receiving currency dropdown.
Ask:
“Who is receiving money? Which currency do you want to receive?”
The receiving currency must be independently configurable.
Do not reuse an incorrect variable from the sending selection or assume the receiving currency is identical to the sending currency.
The receiving dropdown must contain only valid receiving options according to the configured exchange rules.
Allow administrators to add, edit, remove, reorder, enable, and disable receiving currencies.
6.3 Mandatory receiving currency bug fix
The current implementation has a critical bug:
- The user selects a sending currency.
- The bot displays or attempts to display receiving currency options.
- The user selects a receiving currency.
- Nothing happens, or the interaction raises an error.
This bug must be fixed completely before delivery.
Do not merely catch the exception and hide it. Identify and fix the actual root cause.
Investigate at least:
- Incorrect callback registration.
- Incorrect "custom_id" values.
- Incorrect selected-value parsing.
- Incorrect use of the sending currency variable in the receiving handler.
- Missing or incorrectly scoped state.
- Incorrect interaction response handling.
- Interactions that are acknowledged twice.
- Interactions that are never acknowledged.
- Missing "defer()" calls for longer operations.
- Stale or incorrectly registered persistent views.
- Incorrect dropdown option generation.
- Database queries returning the wrong currency list.
- Invalid currency-pair validation.
- Exceptions hidden by broad exception handlers.
- Component timeout problems.
- Incorrect channel or guild references.
- Database transaction or concurrency errors.
Required receiving-flow behavior
When the user selects a sending currency:
- Validate the selection.
- Save the selected sending currency to the correct workflow state.
- Load valid receiving currencies from the database.
- Display the receiving dropdown.
- Let the user select a receiving currency.
- Validate the selected receiving currency against the sending currency.
- Save the receiving selection.
- Display the sending application selection.
- Continue through the remaining workflow.
- Create the ticket after successful confirmation.
If an invalid currency is selected, show a clear ephemeral error and allow the user to retry.
Do not silently fail. Do not leave the user stuck on a dropdown that no longer responds.
Required tests
Write automated tests that verify:
- Selecting INR can lead to a valid PKR receiving option.
- Selecting INR can lead to a valid NPR receiving option when configured.
- Invalid currency combinations are rejected.
- Missing receiving currencies are handled correctly.
- Repeated clicks do not corrupt the workflow.
- The selected currency survives subsequent interaction steps.
- Interaction errors are logged with useful diagnostics.
- The workflow works after bot restart wherever persistent interactions are supported.
Also provide a manual Discord testing checklist for this exact bug.
6.4 Step 3: Sending application
Ask:
“Which application will you use to send the money?”
Examples include Easypaisa, bank transfer, and other administrator-configured applications.
Sending applications must be independently configurable.
Each application must support:
- Name.
- Custom emoji.
- Description.
- Enabled/disabled state.
- Supported currency or currency-pair restrictions.
Commands:
- "/exchange-app add"
- "/exchange-app edit"
- "/exchange-app remove"
- "/exchange-app list"
- "/exchange-app enable"
- "/exchange-app disable"
6.5 Step 4: Receiving application
Ask:
“Which application will you use to receive the money?”
This must use a separate receiving-application configuration.
Allow administrators to manage the options and their custom emojis independently from sending applications.
6.6 Step 5: Review and confirm
Show an exchange summary containing:
- Sending currency.
- Receiving currency.
- Sending application.
- Receiving application.
- Ticket creator.
- Relevant configured exchange details.
Provide Confirm and Cancel actions.
Do not insert mandatory send-amount or receive-amount editing steps into this initial exchange creation flow. Those were explicitly excluded from the requested workflow.
6.7 Step 6: Create private ticket
After confirmation, create a private ticket channel.
The channel must be accessible to:
- Ticket creator.
- Configured support staff.
- Authorized administrators.
- Explicitly added ticket participants.
Deny access to unrelated members by default.
Use configurable channel names, such as "exchange-0001".
Store the complete selection in the database.
Notify the ticket creator and configured support roles when the ticket is created.
Prevent duplicate ticket creation caused by repeated interactions, network retries, or concurrent callbacks.
---
PART 7 — TICKET TERMS AND CONTROL PANEL
7.1 Terms acceptance
When a ticket is created, send a configurable embed containing:
- Ticket number.
- Exchange summary.
- Sending currency.
- Receiving currency.
- Sending application.
- Receiving application.
- Terms of Service.
- Instructions for continuing.
Provide an "Accept Terms" button.
Require the ticket creator to accept before proceeding with the configured exchange workflow.
Persist acceptance status and timestamp.
Allow editing:
- Title.
- Description.
- Terms.
- Image URL.
- Thumbnail.
- Color.
- Footer.
- Custom emoji.
- Button label.
7.2 Four primary ticket buttons
Every ticket must have these four primary controls.
Close Ticket
- Authorized staff and administrators only by default.
- Confirmation before closure.
- Optional closing reason.
- Closing staff member and timestamp recorded.
- Transcript generation or archival according to configuration.
- Ticket status updated in the database.
- Unauthorized closure prevented.
Notify
- Notify the ticket creator.
- Mention the correct user when appropriate.
- Apply cooldowns.
- Log the notification.
- Respect configured permissions.
Add User
- Allow the ticket creator and authorized staff according to configuration.
- Select a server member.
- Grant access only to the selected member.
- Allow authorized staff to remove added members.
- Prevent unauthorized permission changes.
Transcript
- Generate a readable transcript.
- Include message authors, timestamps, message content, and available attachment links.
- Send a copy to the ticket creator by DM when possible.
- Optionally archive a copy in a configured transcript channel.
- Handle failed DMs.
- Restrict access to authorized people.
- Never expose credentials.
7.3 Advanced ticket commands
Implement:
- "/ticket create"
- "/ticket close"
- "/ticket reopen"
- "/ticket claim"
- "/ticket unclaim"
- "/ticket add-user"
- "/ticket remove-user"
- "/ticket notify"
- "/ticket transcript"
- "/ticket delete"
- "/ticket info"
- "/ticket search"
- "/ticket stats"
- "/ticket priority"
- "/ticket assign"
- "/ticket note"
- "/ticket status"
- "/ticket settings"
Additional features:
- Staff claim system.
- Staff reassignment.
- Internal staff notes.
- Priority labels.
- Ticket inactivity reminders.
- Optional inactivity auto-close.
- Open-ticket limits.
- Ticket search by number or user.
- Staff response statistics.
- Ticket archival.
- Ticket audit logs.
- Configurable transcript retention.
- Ticket creation and closure announcements.
- Configurable staff notifications.
- Ticket reopen controls.
- Confirmation before destructive operations.
All ticket messages must support configurable yellow branding and module-specific colors.
---
PART 8 — CUSTOM EMOJI SYSTEM
Use the exact custom emoji list supplied by the user.
The original supplied entries are:
<:terms_and_service:1562714864626040936> <:RainyMM_friend:1562714867025190992> <:Thinking:1562714868509843459> <:RainyMM_Crypto:1562714872293101598> <:RainyMM_RainyMM_trial_exch:1562714874629595236> <:RD_Salute:1562714876948910172> <a:lighting:1562759160901275660> <a:reviewstar:1562760520266810671> <a:NitroBoost:1562760520266813570> <a:Boost:1562760942524309514> <a:bots:1562761504502054992> <:AlRajhi:1562762301281411115> <a:Minecraft:1562762877725573183> <a:DISCORD:1562763265837113374> <:robux:1562763875391111209> <a:ITUNES:1562764372777107487> <:steam:1562764777284042812> <a:Valorant:1562765131514122296> <a:Freefire:1562765527049437224> <:windows:1562765795384098876> <a:Xbox:1562766290832203836> <:nintendo:1562766645376843857> <a:PlayStation:1562767016518230060> <:clash_of_clans:1562767750567567402> <a:butterfly_gif:1558874770857140247> <a:bow_arrows_gif:1558874772992032770> <a:bee_gif:1558874774522953788> <a:crystalball_gif:1558874776020459680> <a:clouds_gif:1558874777953902702> <a:article_gif:1558874779753381968> <a:airplane_gif:1558874781825114152> <:cap:1558874783234531379> <:pearlmc:1558874921352831007> <a:crystalball_gif:1558881417801367602> <a:hammer:1558885322513846305> <:money:1558885325449990195> <:envelope:1558885327618310214> <:buy:1558885329904205894> <:status:1558885332269793422> <a:article:1558885334824259606> <:easypaisa:1558885338381029497> <:report:1558885341103136899> <:changes:1558885343678300230> <a:hammer:1558885345855143976> <:tick:1558885348384444416> <:brainlet:1558885350821199932> <a:Application:1558885353367019585> <a:stop_sign:1558885356525461555> <a:sparkles:1558885359088304159> <a:trophy:1558885361697161268> <:envelope:1558885363320226042> <a:sparkles:1558885364645494798> <:Omen_Rage:1559103651505504306>
Preserve the original names and IDs as supplied. Do not silently change an ID or merge two entries.
Create:
- "config/emojis.json"
- Emoji lookup utility.
- Emoji validation utility.
- Fallback handling.
- Complete emoji inventory in "README.md".
Document each emoji's:
- Name.
- Original ID.
- Static or animated type.
- Full syntax.
- Suggested usage.
- Availability and validation status.
- Instructions for updating the ID after importing it into another server.
Treat the list as supplied configuration, not proof that each emoji is currently accessible. Validate entries when possible and document mismatches.
Additional emoji placeholders may be provided, but do not fabricate real emoji IDs.
Administrators must be able to change emoji mappings through commands and configuration files.
Allow custom emoji configuration for ticket panels, currency dropdowns, payment applications, ticket controls, reviews, help menus, logs, and announcements.
If an emoji cannot be used, fall back safely to a configured alternative or Unicode emoji.
---
PART 9 — ADVANCED EMBED BUILDER
Create a full embed builder accessible to authorized administrators.
Commands:
- "/embed create"
- "/embed edit"
- "/embed preview"
- "/embed send"
- "/embed template"
- "/embed duplicate"
- "/embed delete"
Features:
- Edit title and description.
- Edit color.
- Set author and author icon.
- Set thumbnail.
- Set image URL.
- Set footer text and icon.
- Add, edit, reorder, and remove fields.
- Configure timestamps.
- Configure custom emojis.
- Configure supported buttons and dropdowns.
- Save reusable templates.
- Preview before publishing.
- Edit existing bot-owned messages when possible.
Apply the same editable-template principles to ticket panels, ticket welcome messages, Terms of Service, closure messages, and notifications.
Validate image URLs and Discord embed limits.
Do not claim to edit messages that the bot does not own or cannot edit.
---
PART 10 — BOT STATUS, BIO AND PROFILE CONTROLS
10.1 Owner-only presence commands
Implement:
- "/botstatus set"
- "/botstatus reset"
- "/botstatus view"
Support:
- Playing.
- Watching.
- Listening.
- Competing.
- Streaming, subject to Discord requirements.
- Online.
- Idle.
- Do Not Disturb.
- Invisible, where supported.
Allow the owner to set activity text and presence status.
Only "OWNER_ID" may run these commands.
Save the configured status and restore it after restart.
Allow default presence configuration through a file.
10.2 Bio/profile command
Implement an owner-only command such as:
"/botprofile"
Provide options to inspect and update supported bot profile information.
Important API limitation: Do not fake successful bio changes. Verify whether the current Discord API and library permit changing the desired bot profile/about text. Presence, activity, application description, and profile biography are not interchangeable.
If direct bot biography editing is unsupported:
- Explain the exact limitation.
- Provide all supported profile-editing options.
- Provide the official/manual steps for any profile field that must be changed outside the bot.
- Never claim the bio was changed if the API did not change it.
The owner-only command may manage supported application metadata only where the API authorizes it.
---
PART 11 — REVIEWS AND RATINGS
Implement a professional review system.
11.1 Setup
Command:
"/review setup"
Allow an administrator to select:
- Review channel.
- Embed title.
- Description.
- Color.
- Footer.
- Thumbnail or image.
- Optional log channel.
- Review cooldown.
- Duplicate-review policy.
- Optional verified-ticket requirement.
11.2 Submit review
Command:
"/review"
Workflow:
- Select a rating from 1 to 5 stars.
- Enter a review message in a modal.
- Preview when enabled.
- Confirm submission.
- Publish the review automatically to the configured channel.
Include reviewer, rating, message, timestamp, configured emojis, yellow default theme, and "Powered by ELITE's".
Use the supplied animated "reviewstar" emoji if it is available. Validate its actual ID before use.
Prevent spam and unauthorized modification of reviews.
Provide optional review statistics and rating summaries.
---
PART 12 — LEVELING AND XP
Implement a complete, configurable leveling system.
Features:
- XP for eligible messages.
- Configurable XP ranges.
- Cooldowns.
- Anti-spam safeguards.
- Level-up announcements.
- Configurable embeds.
- Custom emojis.
- Role rewards.
- Rank command.
- Leaderboards.
- Ignored channels.
- Ignored roles.
- Persistent XP and levels.
Commands:
- "/rank"
- "/leaderboard"
- "/leveling setup"
- "/leveling configure"
- "/leveling rewards"
- "/leveling ignore-channel"
- "/leveling ignore-role"
Ignore bot messages and configured excluded channels.
Prevent XP farming and excessive repeated-message rewards.
---
PART 13 — ADVANCED AUTOMOD
Implement configurable automatic moderation.
Rules must include:
- Anti-link.
- Anti-invite.
- Anti-spam.
- Anti-mass-mention.
- Anti-repeated-message.
- Anti-caps, if enabled.
- Blocked words.
- Blocked phrases.
- Configurable ignored channels.
- Configurable ignored roles.
- Trusted-role exemptions.
- Configurable link allowlists.
- Optional suspicious-content rules.
Each rule must support these punishment options:
- Delete Message.
- Timeout.
- Ban.
- Kick.
Delete Message
Delete the offending message without an additional punishment.
Timeout
Allow configurable durations in seconds, minutes, hours, or days, within Discord's supported limits.
Ban and Kick
Require proper Discord permissions and role hierarchy.
Commands:
- "/automod setup"
- "/automod rule add"
- "/automod rule edit"
- "/automod rule remove"
- "/automod rule list"
- "/automod punishment"
- "/automod whitelist"
- "/automod logs"
Log the rule, user, channel, timestamp, and action.
Prevent accidental punishment of the server owner and protected trusted accounts.
Handle permission failures and API errors safely.
---
PART 14 — ADVANCED ANTI-NUKE SECURITY
Protect the server against destructive or suspicious actions.
Monitor:
- Mass channel deletion.
- Mass channel creation.
- Role deletion.
- Dangerous permission changes.
- Mass bans.
- Mass kicks.
- Unauthorized webhook operations.
- Suspicious bot additions.
- Other configurable destructive actions.
Features:
- Trusted users.
- Trusted roles.
- Configurable thresholds.
- Configurable monitoring windows.
- Emergency lockdown.
- Security alerts.
- Audit-log monitoring.
- Configurable response actions.
- Safe permission rollback where possible.
- Configuration snapshots.
- Recovery guidance.
- Anti-Nuke audit records.
Do not promise that deleted resources can always be restored.
Never allow ordinary members to disable Anti-Nuke or add themselves to the trusted list.
Document required intents, permissions, and API limitations.
Use yellow security embeds by default, with configurable colors.
---
PART 15 — SLASH SAY COMMAND
Implement a safe, configurable "/say" command.
Example:
"/say message:Hello everyone"
Options may include:
- Destination channel.
- Message text.
- Optional embed mode.
- Optional title.
- Optional description.
- Optional image URL.
- Optional thumbnail URL.
- Optional configured emoji.
Requirements:
- Only authorized staff may use the command by default.
- Add an explicit configuration option for more restrictive permissions.
- Validate text and embed limits.
- Prevent unauthorized mass mentions.
- Require confirmation for "@everyone", "@here", or potentially disruptive mentions.
- Never bypass Discord permissions.
- Log the command invocation and destination where appropriate.
- Clearly distinguish bot-generated messages from ordinary member messages.
- Do not use the command to impersonate another person or falsely attribute a message to someone else.
Use yellow embeds by default, with configurable module colors.
---
PART 16 — WEBHOOK MANAGEMENT
Create a secure webhook management module.
Commands:
- "/webhook create"
- "/webhook list"
- "/webhook info"
- "/webhook edit"
- "/webhook delete"
- "/webhook send"
Only authorized administrators may create, edit, or delete webhooks.
Features:
- Select destination channel.
- Configure webhook name.
- Configure webhook avatar URL.
- Preview supported appearance settings.
- Send approved messages through an authorized webhook.
- Validate permissions and URLs.
- Audit webhook creation and changes.
- Confirm destructive operations.
- Handle deleted or inaccessible webhooks.
- Never expose webhook tokens or full secret webhook URLs in logs or public messages.
Do not allow arbitrary members to use webhooks to impersonate other members, evade moderation, or send unauthorized messages.
Store webhook secrets securely if persistent storage is necessary. Prefer retrieving manageable webhook metadata through Discord where supported, and avoid unnecessarily storing sensitive webhook tokens.
Include clear permission and security documentation.
---
PART 17 — CUSTOM COMMAND BUILDER
Build a custom command system that lets authorized administrators create configurable server commands without editing Python source code.
Commands:
- "/customcmd create"
- "/customcmd edit"
- "/customcmd delete"
- "/customcmd list"
- "/customcmd enable"
- "/customcmd disable"
- "/customcmd preview"
Support configurable command names, descriptions, responses, embeds, colors, images, and authorized placeholders.
Provide safe placeholders such as:
- "{user}"
- "{user_mention}"
- "{server}"
- "{member_count}"
- "{channel}"
- "{ticket_number}", where applicable.
Validate placeholder values.
Do not execute arbitrary Python code, "eval", shell commands, or uploaded code through custom commands.
Support permission restrictions, cooldowns, audit logs, and safe response formatting.
If custom commands use slash-command registration, implement registration and synchronization correctly and explain the limitations of Discord's application command model.
---
PART 18 — ANNOUNCEMENTS AND SCHEDULING
Commands:
- "/announce"
- "/announce embed"
- "/announce preview"
- "/announce template"
- "/announce schedule"
- "/announce cancel"
Support:
- Channel selection.
- Title and description.
- Images and thumbnails.
- Colors.
- Footer.
- Custom emojis.
- Supported buttons.
- Controlled mentions.
- Scheduling.
- Reusable templates.
- Scheduled message recovery after restarts.
Require confirmation before potentially disruptive mass mentions.
Persist scheduled announcements and handle timezone configuration correctly.
---
PART 19 — EXTRA ADVANCED FEATURES
Implement the following additional features where compatible with the core architecture.
19.1 Exchange analytics
- Total tickets created.
- Open and closed tickets.
- Tickets by currency pair.
- Most frequently selected currencies.
- Most frequently selected applications.
- Average ticket resolution time.
- Staff response statistics.
- Review averages.
- Daily and weekly ticket summaries.
- Exportable aggregate statistics.
Do not fabricate financial exchange rates or claim that a transaction has been completed without verified information.
19.2 Exchange rule configuration
- Allowed currency pairs.
- Disabled currency pairs.
- Application restrictions by currency.
- Exchange availability notices.
- Configurable transaction instructions.
- Optional administrator-defined minimum and maximum amounts, if a later workflow explicitly enables amount collection.
- Maintenance mode for specific currency pairs.
- Configurable service notices.
The initial exchange ticket flow must not add mandatory amount-editing steps.
19.3 Staff tools
- Staff ticket claiming.
- Staff reassignment.
- Internal ticket notes.
- Staff activity statistics.
- Configurable staff notifications.
- Optional staff response reminders.
- Ticket priority.
- Staff audit logs.
- Permission-aware staff dashboard commands.
19.4 Server utility commands
- "/ping"
- "/botinfo"
- "/serverinfo"
- "/userinfo"
- "/avatar"
- "/uptime"
- "/stats"
- "/role"
- "/purge"
- "/slowmode"
- "/lock"
- "/unlock"
- "/warn"
- "/warnings"
- "/timeout"
- "/untimeout"
- "/kick"
- "/ban"
- "/unban"
- "/config"
- "/logs"
- "/backup"
- "/restore"
- "/maintenance"
Implement all commands with correct permissions and error handling.
19.5 Welcome and member features
- Configurable welcome messages.
- Leave messages.
- Member join logging.
- Optional role assignment.
- Configurable welcome embeds.
- Custom emojis.
- Yellow default theme.
19.6 Other useful systems
- Persistent reminders.
- Server polls.
- Suggestion submission and voting.
- Optional suggestion review workflow.
- Server statistics.
- Configurable status messages.
- Safe message templates.
- Configuration export and import.
- Health checks.
- Graceful shutdown.
- Maintenance mode.
- Database backup.
- Recovery instructions.
Only advertise features that are actually implemented.
Do not add unstable or unnecessary complexity that compromises the exchange workflow.
---
PART 20 — HELP MENU AND ADMIN DASHBOARD
Implement a professional "/help" command with dropdown-based navigation.
Categories:
- Exchange.
- Tickets.
- Currency Management.
- Payment Applications.
- Embeds.
- Themes.
- Reviews.
- Leveling.
- AutoMod.
- Anti-Nuke.
- Announcements.
- Webhooks.
- Custom Commands.
- Moderation.
- Utilities.
- Administration.
- Owner Commands.
Show command descriptions, usage, and permission requirements.
Add optional administrative overview commands to display:
- Active tickets.
- Currency configuration.
- Support role configuration.
- Theme settings.
- AutoMod status.
- Anti-Nuke status.
- Review configuration.
- Bot health.
Restrict sensitive information to authorized users.
---
PART 21 — CONFIGURATION FILES
Create and document:
- ".env.example"
- "config/settings.json"
- "config/emojis.json"
- "config/theme.json"
The database must remain the reliable source for persistent runtime configuration.
Implement a documented precedence policy for settings loaded from files and the database.
Configuration changes must not silently overwrite newer database settings.
Validate configuration before applying it.
Where practical, allow safe reload commands for supported configuration changes without restarting the bot.
All changes must survive restarts.
---
PART 22 — COMPLETE PROJECT STRUCTURE
Create a maintainable project structure similar to:
ELITEs/ ├── main.py ├── requirements.txt ├── .env.example ├── .gitignore ├── README.md ├── config/ │ ├── settings.json │ ├── emojis.json │ └── theme.json ├── database/ │ ├── __init__.py │ ├── db.py │ └── migrations/ ├── cogs/ │ ├── tickets.py │ ├── exchange.py │ ├── currencies.py │ ├── embeds.py │ ├── themes.py │ ├── reviews.py │ ├── leveling.py │ ├── automod.py │ ├── antinuke.py │ ├── announcements.py │ ├── webhooks.py │ ├── custom_commands.py │ ├── moderation.py │ ├── utilities.py │ ├── help.py │ └── owner.py ├── utils/ │ ├── permissions.py │ ├── emoji_manager.py │ ├── validators.py │ ├── logging_setup.py │ ├── errors.py │ └── embeds.py ├── data/ ├── logs/ └── tests/
You may improve this layout when needed, but keep the project modular.
Do not store real secrets, production logs, or private user data in source control.
---
PART 23 — README.md: COMPLETE DOCUMENTATION
Create a detailed, beginner-friendly "README.md".
Explain:
- What ELITE's does.
- Python requirements.
- Creating a Discord application.
- Creating and inviting the bot.
- Required permissions and intents.
- Installing dependencies.
- Configuring ".env".
- Setting "OWNER_ID".
- Starting the bot.
- Database initialization and migrations.
- Persistent settings.
- All important slash commands.
- Ticket panel creation.
- The direct dropdown-first exchange workflow.
- Sending and receiving currency setup.
- Sending and receiving application setup.
- Troubleshooting the receiving currency bug.
- Ticket permissions.
- Terms acceptance.
- Ticket buttons and transcripts.
- Embed editing.
- Yellow theme and independent module colors.
- Custom emoji configuration.
- Review setup.
- Leveling configuration.
- AutoMod configuration.
- Anti-Nuke configuration.
- Owner-only status commands.
- Supported profile editing and API limitations.
- "/say".
- Webhook management.
- Custom commands.
- Announcements.
- Backups and recovery.
- VPS deployment.
- Process manager setup.
- Updating the bot.
- Common errors and troubleshooting.
- Token security and rotation.
Emoji inventory
Document every original emoji entry.
For each one, include:
- Name.
- Original ID.
- Static or animated.
- Full syntax.
- Suggested use.
- Validation status.
- Any duplicate or mismatch.
- Instructions for changing IDs after importing emojis into another server.
Preserve the supplied list exactly in the inventory. Do not silently change IDs.
Bug troubleshooting
Document:
- Receiving dropdown not responding.
- Interaction failure.
- Duplicate interaction response.
- Expired component interaction.
- Persistent view registration problems.
- Missing permissions.
- Database connection failures.
- Invalid emoji IDs.
- Missing or deleted ticket channels.
- Command registration issues.
- API limitations for bot profile editing.
Explain how to find relevant logs without exposing secrets.
---
PART 24 — TESTING AND BUG-FIX REQUIREMENTS
Do not stop after writing code.
Create automated tests and a manual testing checklist.
24.1 Exchange tests
Test:
- Initial panel shows the dropdown directly.
- No extra button is required to display the first dropdown.
- Sending currency selection works.
- Receiving currency selection works.
- Sending application selection works.
- Receiving application selection works.
- Confirmation works.
- Private ticket creation works.
- User and staff notifications work.
- Duplicate ticket creation is prevented.
- Invalid exchange pairs are rejected.
- The workflow works after restart.
24.2 Ticket tests
Test:
- Correct channel permissions.
- Terms acceptance.
- Close Ticket permission checks.
- Notify functionality.
- Add User functionality.
- Transcript generation.
- DM failure handling.
- Reopen functionality.
- Ticket archival.
- Unauthorized button clicks.
- Missing roles and deleted channels.
24.3 Configuration tests
Test:
- Persistent theme settings.
- Custom emoji configuration.
- Embed validation.
- Owner-only commands.
- Admin permission checks.
- Currency editing.
- Payment application editing.
- Database migration.
- Database backup and restore.
24.4 Other module tests
Test:
- Reviews.
- Leveling.
- AutoMod actions.
- Timeout duration validation.
- Anti-Nuke thresholds.
- Webhook permissions.
- Custom command validation.
- Announcement scheduling.
- Scheduled announcement recovery.
- Presence restoration.
- Unsupported profile-editing operations.
Run available tests and report actual results. Do not claim a test passed unless it was executed successfully.
---
PART 25 — ERROR HANDLING AND DIAGNOSTICS
Implement centralized error handling for:
- Slash command failures.
- Button callback failures.
- Dropdown callback failures.
- Modal submission failures.
- Database errors.
- Permission failures.
- Invalid configuration.
- Discord API errors.
- Missing resources.
- Expired interactions.
- Unexpected exceptions.
Use useful, structured logs.
For the receiving dropdown bug, include diagnostic logging for:
- Ticket or workflow ID.
- Selected sending currency.
- Available receiving options.
- Selected receiving currency.
- Validation result.
- Interaction response state.
- Relevant exception traceback.
Do not log tokens, credentials, private webhook secrets, or unnecessary private message content.
Show users clear error messages and safe retry options.
Never hide the root cause behind a generic success response.
---
PART 26 — DISCORD API AND COMPONENT LIMITS
Respect the current Discord API and library limitations.
In particular:
- Dropdown menus have limited option counts.
- Buttons and action rows have component limits.
- Embeds have character limits.
- Interactions must be acknowledged in time.
- Persistent views need stable custom IDs and correct re-registration.
- Rate limits must be respected.
- Permission overwrites must be configured carefully.
- Webhook actions require the appropriate permissions.
- Some bot profile fields may not be editable through ordinary bot APIs.
Use pagination, grouped dropdowns, or search modals when option lists are too large.
Prevent race conditions and duplicate operations.
Do not implement unsupported API behavior and pretend it works.
---
PART 27 — FINAL DELIVERY AND ACCEPTANCE CRITERIA
Deliver the complete source code and all required files.
The final bot must include:
- Complete exchange-ticket system.
- Dropdown-first ticket panel.
- Fully working sending currency selection.
- Fully working receiving currency selection.
- Separate sending and receiving applications.
- Configurable currencies and emojis.
- Private ticket creation.
- Correct user and staff notifications.
- Terms acceptance.
- Close, Notify, Add User, and Transcript buttons.
- Advanced ticket management.
- Persistent database.
- Editable panels and embeds.
- Yellow default theme.
- Independent color customization.
- Custom emoji inventory.
- Owner-only status commands.
- Supported profile-editing functionality.
- Reviews and 1–5 star ratings.
- Leveling and leaderboards.
- AutoMod with configurable punishments.
- Anti-Nuke protection.
- Announcements and scheduling.
- Webhook management.
- "/say".
- Custom command builder.
- Help menu.
- Administrative utilities.
- Complete "README.md".
- Automated tests.
- Deployment instructions.
- Security and error handling.
Before delivery:
- Inspect the complete codebase.
- Fix syntax errors and broken imports.
- Verify database migrations.
- Verify slash-command registration.
- Test persistent views.
- Test the complete exchange flow.
- Fix the receiving currency dropdown bug at its root cause.
- Verify owner-only permissions.
- Test the supported modules.
- Document anything that cannot be verified without access to a real Discord server.
Do not leave core commands as TODOs, empty handlers, or placeholder responses.
Do not claim the bot has been deployed or tested on Discord unless that actually happened.
FINAL OBJECTIVE: Build ELITE's as a complete, polished, professional, secure, yellow-branded currency exchange Discord bot with reliable exchange workflows, advanced ticket management, persistent configuration, powerful administration tools, custom emoji support, extensive automation, and comprehensive documentation.
Prioritize working functionality, security, reliability, and maintainability over superficial complexity. Every advertised feature must actually work.