Create me a Discord Bot | Called SMP Portal | Manner that tracks partnerships in a channel so when you do /SP [Channel] and make sure you only count the partnerships that People do and do not include bots also add /SL which is a leaderboard no buttons on it it just spawns in and anyone can see and make sure these 2 commands are Code only so to actually activate it when you do the command it shows a code thing only for you enter the correct code which is WPcmnvaw and the command starts working for you only and make sure the Partnership tracker only tracks Things with Links
I’ve started SMP Portal as a Python Discord bot. It’s being set up with /SP channel tracking, a link-only leaderboard, and private per-user code authorization.
Created bot.py, requirements.txt, and .env. The bot provides /sp to configure a partnership channel and /sl for a public, button-free leaderboard. It counts one qualifying message per real user post with a valid link, and persists settings, counts, and per-user authorization in SQLite. First-time users enter the code privately in a modal; successful entry runs their requested command.
Discord requires slash-command names to be lowercase, so the commands are /sp and /sl. Replace the placeholder token in .env, and enable Message Content Intent in the Discord Developer Portal so the bot can check for links. No build or tests were run.
SMP Portal is ready with /sp to set the partnership channel and /sl to show the public leaderboard. It counts only non-bot messages containing links, and saves tracking data and per-user authorization across restarts. First-time users are prompted privately for the access code.
Discord requires slash-command names to be lowercase, so use /sp and /sl. Before deploying, add your bot token to .env and enable Message Content Intent in the Discord Developer Portal. The project isn’t a compilable type, so I couldn’t run a compile check.
No files in this session