a discord.py bot for my itch.io game jam Micro Jam, where anyone can help with development!
git clone https://github.com/t33devv/jhonmicro.git- Fork the repository
Start by clicking the "fork" button on github
git clone https://github.com/your_username/jhonmicro.git
cd jhonmicro- Create a new feature branch
git checkout -b feat/your-feature-name- Commit your changes
# check where you made edits
git status
# stage changes
git add main.py # or anywhere else you made changes
# write a good commit message
git commit -m "added slash command to view all micro jams"- Push to the branch
git push origin feat/your-feature-name- Open a Pull Request from Github
- Create a Discord bot from the Discord Developer Portal
- Add the bot to any server you like (create a new one for testing purposes)
- Make sure the bot has the server members intent and the message content intent
- Make sure the bot has slash commands and show messages permissions in the server
- Create a .env file:
- Create a file in the jhonmicro folder called .env
- Add these lines in the file, replacing the values as needed for your bot and server
TOKEN = your_token_here
GUILD_ID = your_discord_server_id_here
WELCOME_CHANNEL_ID = your_welcome_channel_id_here
LEAVE_CHANNEL_ID = your_leave_channel_id_here
LEVEL_CHANNEL_ID = your_level_channel_id_hereto get the guild_id you'll need discord developer mode which can be turned on in your profile settings
- If you don't have UV, run:
pip install uv
uv version- Navigate to your project folder, and run:
uv run main.py- Now the bot should be live in the server you put as the GUILD_ID, have fun testing!
This bot was made with discord.py, so to help with development, please refer to the Discord.py documentation. They have tons of examples of code for existing features.
If you have any questions about this, feel free to join our Discord Server and ping me (@t33dev) or any other staff!