https://github.com/person0z/discord.py-template
Discord Python Bot Template, for those looking for ideas or starting to learn Python!
https://github.com/person0z/discord.py-template
bot discord discord-bot discordapp disnake person0z python python-bot python-discord-bot python3 slash-commands user-discord
Last synced: about 1 year ago
JSON representation
Discord Python Bot Template, for those looking for ideas or starting to learn Python!
- Host: GitHub
- URL: https://github.com/person0z/discord.py-template
- Owner: Person0z
- License: apache-2.0
- Created: 2022-05-18T00:08:38.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-03T16:35:40.000Z (about 3 years ago)
- Last Synced: 2023-03-09T07:32:42.351Z (about 3 years ago)
- Topics: bot, discord, discord-bot, discordapp, disnake, person0z, python, python-bot, python-discord-bot, python3, slash-commands, user-discord
- Language: Python
- Homepage:
- Size: 14.8 MB
- Stars: 18
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Discord Python Bot Template
Discord Python Bot Template, for those looking for ideas or starting to learn Python!
## Features
- Slash Commands (Slash commands: /help, /radio.. etc)
- Prefix Used Commands (Owners Only: !update. Updates the bot via git)
- Text to Image Generator (/generate: Generate a AI made image of whatever you want)
- Invite Command (will be cleaned up and more info added on the embed)
- Fun Commands (/help fun: Commands like 8ball, bitcoin etc if you wanna mess around.)
- Moderation (/ban, /warn, /kick.. etc: Smart warns - 3 warns = kick, 5 = ban.)
- Tickets (/tickets: needs to be redone)
- Radios (Play radio's from online sources)
- Pastebin (uploads files to a pastebin so you dont have to download files that you dont trust)
## Coming Soon
- better optimized code
- per server tags + warns
- logging messages + more
- Someway to make updating the bot faster
If you have suggestions on adding something, feel free to ask and or make a PR!
### Install the dependencies
```sh
pip install -r requirements.txt
```
### Setting up the bot properties
> When setting up the bot remove "example" from example.config.py!!
```python
# Imports
import disnake
# Discord Token
token = 'TOKEN'
# Version
version = '1.5.5'
# Your Discord Server ID Will Go Here
guild = 'GUILD ID'
# The Prefix You Want For Your Discord Bot
prefix = '!'
# Bot Status
activity = ["/help", "discord.py", "With Python", "Made by Person0z", "v1.5.6"]
# Colors
Success = disnake.Color.green
Error = disnake.Color.red
Random = disnake.Color.random
# Owner ID
owner_ids = [000000000000000, 000000000000000] # You can add more owner ids by adding a comma and the id
# Welcomes & Goodbyes Channel ID
welcome_channel = 0000000000000000
join_role = 'Member' # The role you want to give to new members
# Logging Channel ID
logs = [0000000000000000] # You can add more channels by doing this: [channel_id, channel_id, channel_id]
```
# How to run
The bot can be started with a python command:
```sh
python main.py OR python3 main.py OR .sh/bat files
```
# Sponsers
[Zluqe, Experience hassle-free bot hosting with Zluqe. Our platform offers free hosting for both Python, Java and JavaScript bots, making it the one-stop solution for all your Discord needs.](https://zluqe.com/)