mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
fix: readme && add proper licensing
This commit is contained in:
27
LICENSE
Normal file
27
LICENSE
Normal file
@@ -0,0 +1,27 @@
|
||||
Syntrel Discord Bot
|
||||
Copyright (c) 2025 neoarz
|
||||
|
||||
This project contains code from multiple sources under different licenses:
|
||||
|
||||
THIRD-PARTY SOFTWARE:
|
||||
|
||||
Python Discord Bot Template
|
||||
Copyright © Krypton 2019-Present
|
||||
Licensed under the Apache License, Version 2.0
|
||||
Source: https://github.com/kkrypt0nn/Python-Discord-Bot-Template
|
||||
|
||||
The original Apache License, Version 2.0 applies to these components.
|
||||
See [LICENSE-APACHE](licenses/LICENSE-APACHE) for the full license text.
|
||||
|
||||
NEW CONTRIBUTIONS:
|
||||
|
||||
Original code and modifications by neoarz are licensed under the MIT License.
|
||||
See [LICENSE-MIT](licenses/LICENSE-MIT) for the full license text.
|
||||
|
||||
This includes but is not limited to:
|
||||
Custom commands and cogs not present in the original template
|
||||
Modifications and enhancements to existing functionality
|
||||
New features and integrations
|
||||
Documentation and configuration files created by neoarz
|
||||
|
||||
|
||||
162
README.md
162
README.md
@@ -1,141 +1,37 @@
|
||||
# Python Discord Bot Template
|
||||
<div align="center">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="assets/bannerdark.png">
|
||||
<source media="(prefers-color-scheme: light)" srcset="assets/bannerlight.png">
|
||||
<img alt="Syntrel Discord Bot Banner" src="assets/bannerlight.png" style="width: 80%; height: auto;">
|
||||
</picture>
|
||||
</div>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://discord.gg/xj6y5ZaTMr"><img src="https://img.shields.io/discord/1358456011316396295?logo=discord"></a>
|
||||
<a href="https://github.com/kkrypt0nn/Python-Discord-Bot-Template/releases"><img src="https://img.shields.io/github/v/release/kkrypt0nn/Python-Discord-Bot-Template"></a>
|
||||
<a href="https://github.com/kkrypt0nn/Python-Discord-Bot-Template/commits/main"><img src="https://img.shields.io/github/last-commit/kkrypt0nn/Python-Discord-Bot-Template"></a>
|
||||
<a href="https://github.com/kkrypt0nn/Python-Discord-Bot-Template/blob/main/LICENSE.md"><img src="https://img.shields.io/github/license/kkrypt0nn/Python-Discord-Bot-Template"></a>
|
||||
<a href="https://github.com/kkrypt0nn/Python-Discord-Bot-Template"><img src="https://img.shields.io/github/languages/code-size/kkrypt0nn/Python-Discord-Bot-Template"></a>
|
||||
<a href="https://conventionalcommits.org/en/v1.0.0/"><img src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white"></a>
|
||||
<a href="https://github.com/psf/black"><img src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
|
||||
</p>
|
||||
<br>
|
||||
|
||||
> [!IMPORTANT]
|
||||
> **Dual Licensing**
|
||||
>
|
||||
> Alot of the inspiration for this code is from the [Python Discord Bot Template](https://github.com/kkrypt0nn/Python-Discord-Bot-Template) by [kkrypt0nn](https://github.com/kkrypt0nn). Please check out their repo for more information. I have made many changes to the code and havent explicitly stated in most files, that why I have thought it would be best to keep this note at the top of the README.md file.
|
||||
|
||||
<br>
|
||||
|
||||
> [!NOTE]
|
||||
> This project is in a **feature-freeze mode**, please read more about it [here](https://github.com/kkrypt0nn/Python-Discord-Bot-Template/issues/112). It can be summed up in a few bullet points:
|
||||
> **New Project**
|
||||
>
|
||||
> * The project **will** receive bug fixes
|
||||
> * The project **will** be updated to make sure it works with the **latest** discord.py version
|
||||
> * The project **will not** receive any new features, **unless one of the following applies**:
|
||||
> * A new feature is added to Discord and it would be beneficial to have it in the template
|
||||
> * A feature got a breaking change, this fits with the same point that the project will **always** support the latest discord.py version
|
||||
> This project is still in the making!!! I would appreciate if you gave this repo a star, that would mean a lot to me!
|
||||
|
||||
This repository is a template that everyone can use for the start of their Discord bot.
|
||||
|
||||
When I first started creating my Discord bot it took me a while to get everything setup and working with cogs and more.
|
||||
I would've been happy if there were any template existing. However, there wasn't any existing template. That's why I
|
||||
decided to create my own template to let **you** guys create your Discord bot easily.
|
||||
|
||||
Please note that this template is not supposed to be the best template, but a good template to start learning how
|
||||
discord.py works and to make your own bot easily.
|
||||
|
||||
If you plan to use this template to make your own template or bot, you **have to**:
|
||||
|
||||
- Keep the credits, and a link to this repository in all the files that contains my code
|
||||
- Keep the same license for unchanged code
|
||||
|
||||
See [the license file](https://github.com/kkrypt0nn/Python-Discord-Bot-Template/blob/master/LICENSE.md) for more
|
||||
information, I reserve the right to take down any repository that does not meet these requirements.
|
||||
|
||||
## Support
|
||||
|
||||
Before requesting support, you should know that this template requires you to have at least a **basic knowledge** of
|
||||
Python and the library is made for **advanced users**. Do not use this template if you don't know the
|
||||
basics or some advanced topics such as OOP or async. [Here's](https://pythondiscord.com/pages/resources) a link for resources to learn python.
|
||||
|
||||
If you need some help for something, do not hesitate to create an issue over [here](https://github.com/kkrypt0nn/Python-Discord-Bot-Template/issues), but don't forget the read the [frequently asked questions](https://github.com/kkrypt0nn/Python-Discord-Bot-Template/wiki/Frequently-Asked-Questions) before.
|
||||
|
||||
All the updates of the template are available [here](UPDATES.md).
|
||||
|
||||
## Disclaimer
|
||||
|
||||
Slash commands can take some time to get registered globally, so if you want to test a command you should use
|
||||
the `@app_commands.guilds()` decorator so that it gets registered instantly. Example:
|
||||
|
||||
```py
|
||||
@commands.hybrid_command(
|
||||
name="command",
|
||||
description="Command description",
|
||||
)
|
||||
@app_commands.guilds(discord.Object(id=GUILD_ID)) # Place your guild ID here
|
||||
```
|
||||
|
||||
When using the template you confirm that you have read the [license](LICENSE.md) and comprehend that I can take down
|
||||
your repository if you do not meet these requirements.
|
||||
|
||||
## How to download it
|
||||
|
||||
This repository is now a template, on the top left you can simply click on "**Use this template**" to create a GitHub
|
||||
repository based on this template.
|
||||
|
||||
Alternatively you can do the following:
|
||||
|
||||
- Clone/Download the repository
|
||||
- To clone it and get the updates you can definitely use the command
|
||||
`git clone`
|
||||
- Create a Discord bot [here](https://discord.com/developers/applications)
|
||||
- Get your bot token
|
||||
- Invite your bot on servers using the following invite:
|
||||
https://discord.com/oauth2/authorize?&client_id=YOUR_APPLICATION_ID_HERE&scope=bot+applications.commands&permissions=PERMISSIONS (
|
||||
Replace `YOUR_APPLICATION_ID_HERE` with the application ID and replace `PERMISSIONS` with the required permissions
|
||||
your bot needs that it can be get at the bottom of a this
|
||||
page https://discord.com/developers/applications/YOUR_APPLICATION_ID_HERE/bot)
|
||||
|
||||
## How to set up
|
||||
|
||||
To set up the token you will have to make use of the [`.env.example`](.env.example) file; you should rename it to `.env` and replace the `YOUR_BOT...` content with your actual values that match for your bot.
|
||||
|
||||
Alternatively you can simply create a system environment variable with the same names and their respective value.
|
||||
|
||||
## How to start
|
||||
|
||||
### The _"usual"_ way
|
||||
|
||||
To start the bot you simply need to launch, either your terminal (Linux, Mac & Windows), or your Command Prompt (
|
||||
Windows)
|
||||
.
|
||||
|
||||
Before running the bot you will need to install all the requirements with this command:
|
||||
|
||||
```
|
||||
python -m pip install -r requirements.txt
|
||||
```
|
||||
|
||||
After that you can start it with
|
||||
|
||||
```
|
||||
python bot.py
|
||||
```
|
||||
|
||||
> **Note**: You may need to replace `python` with `py`, `python3`, `python3.11`, etc. depending on what Python versions you have installed on the machine.
|
||||
|
||||
### Docker
|
||||
|
||||
Support to start the bot in a Docker container has been added. After having [Docker](https://docker.com) installed on your machine, you can simply execute:
|
||||
|
||||
```
|
||||
docker compose up -d --build
|
||||
```
|
||||
|
||||
> **Note**: `-d` will make the container run in detached mode, so in the background.
|
||||
|
||||
## Issues or Questions
|
||||
|
||||
If you have any issues or questions of how to code a specific command, you can:
|
||||
|
||||
- Join my Discord server [here](https://discord.gg/xj6y5ZaTMr)
|
||||
- Post them [here](https://github.com/kkrypt0nn/Python-Discord-Bot-Template/issues)
|
||||
|
||||
Me or other people will take their time to answer and help you.
|
||||
|
||||
## Versioning
|
||||
|
||||
We use [SemVer](http://semver.org) for versioning. For the versions available, see
|
||||
the [tags on this repository](https://github.com/kkrypt0nn/Python-Discord-Bot-Template/tags).
|
||||
|
||||
## Built With
|
||||
|
||||
- [Python 3.12.9](https://www.python.org/)
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under the Apache License 2.0 - see the [LICENSE.md](LICENSE.md) file for details
|
||||
This project uses a dual licensing approach due to its mixed heritage:
|
||||
|
||||
### Third-Party Components (Apache 2.0)
|
||||
- Code derived from the [Python Discord Bot Template](https://github.com/kkrypt0nn/Python-Discord-Bot-Template) by [kkrypt0nn](https://github.com/kkrypt0nn) remains under the Apache License 2.0
|
||||
- See [LICENSE-APACHE](licenses/LICENSE-APACHE) for the full Apache 2.0 license text
|
||||
|
||||
|
||||
### Original Contributions (MIT)
|
||||
- New code, modifications, and enhancements by neoarz are licensed under the MIT License
|
||||
- See [LICENSE-MIT](licenses/LICENSE-MIT) for the full MIT license text
|
||||
|
||||
See [LICENSE](LICENSE) file for detailed attribution information
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 536 KiB After Width: | Height: | Size: 539 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 539 KiB After Width: | Height: | Size: 536 KiB |
@@ -141,4 +141,4 @@ License. You may obtain a copy of the License at
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "
|
||||
AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
|
||||
language governing permissions and limitations under the License.
|
||||
language governing permissions and limitations under the License.
|
||||
7
licenses/LICENSE-MIT
Normal file
7
licenses/LICENSE-MIT
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright 2025 neoarz
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
Reference in New Issue
Block a user