https://github.com/davyjonescodes/discordbotstarter
A starter template for creating a Discord bot in Python. Features include basic command handling, event listeners, automatic backups, a configurable dashboard, and utility functions for logging and configuration. Easily customizable for various bot functionalities.
https://github.com/davyjonescodes/discordbotstarter
boilerplate bot discord discord-bot discordpy starter-kit
Last synced: 5 months ago
JSON representation
A starter template for creating a Discord bot in Python. Features include basic command handling, event listeners, automatic backups, a configurable dashboard, and utility functions for logging and configuration. Easily customizable for various bot functionalities.
- Host: GitHub
- URL: https://github.com/davyjonescodes/discordbotstarter
- Owner: DavyJonesCodes
- License: mit
- Created: 2024-08-06T21:27:25.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T21:50:45.000Z (11 months ago)
- Last Synced: 2024-12-04T23:08:55.494Z (7 months ago)
- Topics: boilerplate, bot, discord, discord-bot, discordpy, starter-kit
- Language: Python
- Homepage:
- Size: 41 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DiscordBotStarter
![]()
![]()
![]()
![]()
A starter template for creating a Discord bot in Python. This template includes basic command handling, event listeners, automatic backups, a configurable dashboard, and utility functions for logging and configuration. Easily customizable for various bot functionalities.
## ✨ Features
- Basic command handling
- Event listeners
- Automatic backups
- Configurable dashboard
- Utility functions for logging and configuration## 🚀 Getting Started
Follow these instructions to get a copy of the project up and running on your local machine.
### 📋 Prerequisites
- Python 3.8+
- Discord bot token### 🛠️ Installation
1. **Clone the repository:**
```bash
git clone https://github.com/DavyJonesCodes/DiscordBotStarter.git
cd DiscordBotStarter
```2. **Create and activate a virtual environment:**
```bash
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
```3. **Install the dependencies:**
```bash
pip install -r requirements.txt
```4. **Create a `.env` file with your bot token and other configurations:**
```plaintext
TOKEN=your-bot-token-here
DEVELOPER=your-developer-id-here
DATABASE=your-database-file-here
```5. **Run the bot:**
```bash
python main.py
```## 📂 Project Structure
```
DiscordBotStarter/
│
├── .env.example # Example environment file with placeholder values
├── .gitignore # Specifies files and directories to ignore in Git
├── README.md # This README file
├── requirements.txt # Project dependencies
├── main.py # Main bot file
├── cogs/ # Directory for cog files
│ └── example_cog.py # Example cog file
├── jsonDB.py # JSON database handling script
└── data.json # JSON database file (if applicable)
```## 📚 Usage
### Slash Commands
- **/hello**: Sends a hello message with a button
- **/sync**: Syncs the commands (developer only)
- **/refresh**: Refreshes the commands (developer only)
- **/ping**: Checks the bot latency (developer only)
- **/dashboard**: Opens the dashboard (administrator only)### Configurable Dashboard
The dashboard allows you to view and update key settings for your server, including log channels and backup channels.
## 🛡️ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
## 🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
## 📞 Contact
For any inquiries or issues, please open an issue on the GitHub repository or contact the developer.
---
Happy coding! 🎉