Skip to content

Commit 27260ea

Browse files
authored
Merge pull request #14 from r-liner/develop
Develop v0.7.7
2 parents 28082f9 + cd6af34 commit 27260ea

File tree

16 files changed

+283
-226
lines changed

16 files changed

+283
-226
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @r-liner

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: 🐛 Bug Report
2+
description: Create a bug report
3+
labels:
4+
- 'bug'
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: >
9+
Thanks for taking the time to fill out this bug report!
10+
⚠️ If you do not use this template, we will simply close your issue.
11+
- type: textarea
12+
id: summary
13+
attributes:
14+
label: Description
15+
description: >
16+
Please provide a detailed description of the bug.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: howtoreproduce
21+
attributes:
22+
label: How to Reproduce
23+
description: >
24+
Describe steps to reproduce the issue.
25+
validations:
26+
required: true
27+
- type: textarea
28+
id: expected
29+
attributes:
30+
label: Expected behaviour
31+
description: >
32+
Describe what was expected to happen.
33+
validations:
34+
required: true
35+
- type: textarea
36+
id: results
37+
attributes:
38+
label: Actual results
39+
description: >
40+
Describe what actually happened.
41+
validations:
42+
required: true
43+
- type: textarea
44+
id: code
45+
attributes:
46+
label: Minimal code example
47+
description: >
48+
If applicable, provide a minimal code example to reproduce the bug.
49+
- type: textarea
50+
id: output
51+
attributes:
52+
label: Error messages
53+
description: >
54+
If applicable, provide any error messages or output related to the bug.
55+
- type: input
56+
id: os
57+
attributes:
58+
label: Operation System
59+
description: >
60+
Specify the operating system you are using.
61+
validations:
62+
required: true
63+
- type: input
64+
id: python
65+
attributes:
66+
label: Python version
67+
description: >
68+
Specify the version of Python you are using.
69+
validations:
70+
required: true
71+
- type: input
72+
id: nextcord
73+
attributes:
74+
label: Nextcord version
75+
description: >
76+
Specify the version of Nextcord you are using.
77+
validations:
78+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Ask a question
4+
url: https://github.com/r-liner/discord-commands-bot/discussions
5+
about: Ask questions and discuss with others

.github/pull_request_template.md

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
1-
## Changes:
2-
- Added something..
3-
- Changed something..
4-
- Removed something..
5-
- Bug fixed..
6-
7-
<!-- Describe changes by form above (Adding, deletion of something is also change)
8-
Also mention bug fixes if it fixed
9-
Remove this comment -->
1+
### Description
2+
Describe the changes in this pull request.
3+
4+
### Related Issue
5+
- Mention the related issue here (if applicable).
6+
7+
### Type of Change
8+
- [ ] Bug fix
9+
- [ ] New feature
10+
- [ ] Code quality improvements
11+
- [ ] Refactoring
12+
- [ ] Documentation update
13+
- [ ] Other (please specify)
14+
15+
### Checklist
16+
- [ ] I have performed a self-review of my own code.
17+
- [ ] I have written unit tests and/or e2e tests.
18+
- [ ] My code follows the project's code style guidelines.
19+
- [ ] I have made corresponding changes to the documentation.
20+
- [ ] My changes do not produce any new warnings or errors.
21+
- [ ] I have tested my changes.
22+
23+
### Screenshots (if applicable)
24+
Please attach any relevant screenshots or images if applicable.

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Discord Commands Bot - Changelog
2+
- [v0.7.6](#v076-2024-01-19)
3+
- [v0.7.5](#v075-2023-10-01)
4+
5+
6+
## v0.7.6 (2024-01-19)
7+
8+
### Tweaks
9+
- **change:** comments translated in `moderation.py` (ba8814fe3ce0e9a680652313f4cbe9e371d710a9)
10+
11+
## v0.7.5 (2023-10-01)
12+
13+
### Features
14+
- **main.py:** Added `if name main` construction
15+
16+
### Chores
17+
**newfile:** `setup.py` for better setup the bot
18+
19+
### Tweaks
20+
- **main.py:** switched to slash commands
21+
- **main.py:** translated one comment
22+
- **main.py:** added `if name main` construction
23+
- **tweak:** `start_win.bat` for better setup the bot
24+
- **tweak:** changed `config.ini.sample`

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2023 liner
3+
Copyright (c) 2022-2024 liner
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 149 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,152 @@
1-
# discord-commands-bot [![CodeFactor](https://www.codefactor.io/repository/github/r-liner/discord-commands-bot/badge)](https://www.codefactor.io/repository/github/r-liner/discord-commands-bot)
1+
# Discord Commands Bot [![Code Factor](https://www.codefactor.io/repository/github/r-liner/discord-commands-bot/badge)](https://www.codefactor.io/repository/github/r-liner/discord-commands-bot)
2+
![GitHub Release](https://img.shields.io/github/v/release/r-liner/discord-commands-bot?style=for-the-badge&logo=github&color=efa94a)
3+
![GitHub issues](https://img.shields.io/github/issues-raw/r-liner/discord-commands-bot?style=for-the-badge)
4+
[![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg?logo=python&logoColor=ffffff&style=for-the-badge)](https://www.python.org/downloads/)
5+
[![Nextcord Version](https://img.shields.io/badge/nextcord-2.4.2+-blue.svg?logo=pypi&logoColor=ffffff&style=for-the-badge)](https://pypi.org/project/nextcord/)
6+
![GitHub License](https://img.shields.io/github/license/r-liner/discord-commands-bot?style=for-the-badge&color=blue)
27

3-
## Choose your language / Выберите язык
8+
# Description
9+
An another yet Discord multipurposal bot written in Python.
10+
11+
## Table of Contents
12+
- [Discord Commands Bot](#discord-commands-bot-code-factor)
13+
- [Description](#description)
14+
- [Table of Contents](#table-of-contents)
15+
- [Key Features](#key-features)
16+
- [Installation](#installation)
17+
- [Prerequisites](#prerequisites)
18+
- [API Keys](#api-keys)
19+
- [Requirements](#requirements)
20+
- [Installing - Self Hosting](#installing---self-hosting)
21+
- [Launch](#launch)
22+
- [Roadmap](#roadmap)
23+
- [Changelog](#changelog)
24+
- [Support](#support)
25+
- [Contribution](#contribution)
26+
- [Contact](#contact)
27+
- [License](#license)
28+
29+
## Key Features
30+
- Async-await syntax
31+
- Slash commands partial-ready
32+
- Easy installation, setup
33+
- Use the same bot instance on multiple guilds
34+
- Regurarly updates
35+
36+
## Installation
37+
### Prerequisites
38+
#### API Keys
39+
- Discord - https://discord.com/developers
40+
- Openweather (Optional) - https://openweathermap.org/api
41+
42+
##### How to get discord token?
43+
1. Go to [Discord Developer Portal](https://discord.com/developers).
44+
2. Press **New Application**.
45+
46+
<details>
47+
<summary>Hint</summary>
48+
<img src='./assets/discord developer portal/setup_01.png' alt='setup_01.png'>
49+
</details>
50+
3. Enter application name and press **Create**.
51+
<details>
52+
<summary>Hint</summary>
53+
<img src='./assets/discord developer portal/setup_02.png' alt='setup_02.png'>
54+
</details>
55+
4. Go to tab **Bot**.
56+
5. Reset and **Copy** bot token.
57+
<details>
58+
<summary>Hint</summary>
59+
<img src='./assets/discord developer portal/setup_03.png' alt='setup_03.png'>
60+
</details>
61+
62+
Obtained keys must be entered while setup the bot through `setup.py`.
63+
64+
#### Requirements
65+
- Installation of Python 3.8+ - https://www.python.org/downloads/
66+
67+
##### Install nextcord:
68+
```sh
69+
# Linux/macOS
70+
python3 -m pip install -U nextcord
71+
72+
# Windows
73+
pip install -U nextcord
74+
```
75+
##### Install dependencies:
76+
```
77+
pip install -r requirements.txt
78+
```
79+
80+
### Installing - Self Hosting
81+
82+
**Manual Installation**
83+
1. Complete [prerequisites](#prerequisites).
84+
2. [Download latest release](https://github.com/r-liner/discord-bot-ru/releases).
85+
3. Launch `setup.py` and complete setup procces.
86+
4. Done. Now you can launch the bot.
87+
88+
**Installation via Git**
89+
1. Complete [prerequisites](#prerequisites).
90+
2. Clone repository using:
91+
```sh
92+
git clone https://github.com/r-liner/discord-commands-bot
93+
```
94+
3. Launch `setup.py` and complete setup procces.
95+
4. Done. Now you can launch the bot.
96+
97+
## Launch
98+
You can run the bot through the `start_win.bat` for Windows
99+
or directly through the `main.py`. <br>
100+
During run the bot you must see:
101+
* Bot username (format: name#discrim).
102+
* Count of bot servers.
103+
104+
## Roadmap
105+
- Feb - Migration to slash commands.
106+
- March - Code simplify.
107+
108+
## Changelog
109+
You can find it [here]().
110+
111+
## Support
112+
❓ If you have a **question** ask it [here](https://github.com/r-liner/discord-commands-bot/issues).
113+
114+
🐛 If you found a **bug** have a look at the [issue list](https://github.com/r-liner/discord-commands-bot/issues/new/choose) before you [create a new issue](https://github.com/r-liner/discord-commands-bot/issues/new/choose). Please provide as much information as possible to help us understand and reproduce your issue.
115+
116+
## Contribution
117+
If you would like to contribute to this project, fork repository, add your changes and then create pull request.
118+
Please ensure that you have thoroughly tested all your changes.
119+
120+
Even if you`re not the programmer, you can contribute to this project by reporting bugs, requesting new features, fixing typos, etc.
121+
122+
## Contact
123+
If you have a question regarding the project, [open new issue](https://github.com/r-liner/discord-commands-bot/issue/new/choose).
124+
125+
If your request would contain confidentional information, [please send me an email](mailto:contact.liner999@gmail.com).
126+
127+
## License
128+
[MIT](https://opensource.org/license/mit/)
4129

5-
<img class="us" src="https://flagpedia.net/data/flags/w580/us.webp" width=30 align="center"> [English](https://github.com/r-liner/discord-commands-bot/blob/master/readme%60s/EN.MD)
6-
<br>
7-
<img src="https://flagpedia.net/data/flags/w580/ru.webp" width=30 align="center"> [Русский](https://github.com/r-liner/discord-commands-bot/blob/master/readme%60s/RU.MD)
8-
<br>
9-
<img src="https://flagpedia.net/data/flags/w580/fr.webp" width=30 align="center"> [Français](https://github.com/r-liner/discord-commands-bot/blob/master/readme%60s/FR.MD)
10130
<br>
11-
<img src="https://flagpedia.net/data/flags/w580/de.webp" width=30 align="center"> [Deutsch](https://github.com/r-liner/discord-commands-bot/blob/master/readme%60s/DE.MD)
131+
132+
Copyright &copy; 2022-2024 [liner](https://github.com/r-liner)
133+
134+
Permission is hereby granted, free of charge, to any person obtaining a copy
135+
of this software and associated documentation files (the "Software"), to deal
136+
in the Software without restriction, including without limitation the rights
137+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
138+
copies of the Software, and to permit persons to whom the Software is
139+
furnished to do so, subject to the following conditions:
140+
141+
The above copyright notice and this permission notice shall be included in all
142+
copies or substantial portions of the Software.
143+
144+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
145+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
146+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
147+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
148+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
149+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
150+
SOFTWARE.
151+
152+
[(Back to top)](#table-of-contents)
75 KB
Loading
55.4 KB
Loading
59.9 KB
Loading

0 commit comments

Comments
 (0)