Install Local
💻 Installation on Local / VPS / Other Hosting
Clone or Download the Project
git clone https://github.com/YOUR_REPO/discord-code-bot.git cd discord-code-botInstall Dependencies
pip install -r requirements.txtConfigure the Bot
Open
bot.pyand replace placeholders:YOUR_BOT_TOKEN_HERE→ Your bot tokenYOUR_GUILD_ID→ Your server IDYOUR_CODES_CHANNEL_ID→ Channel ID for codesYOUR_LOG_CHANNEL_ID→ Channel ID for logs
⚡ Alternatively, you can store these values in a
.envfile and load them withpython-dotenv.Run the Bot
python bot.pyKeep it Running (for VPS or dedicated servers)
Use screen or tmux to keep it running in the background:
screen -S discordbot python bot.py(Press
CTRL + A + Dto detach the session.)
Last updated