Skip to content

Commit dd25386

Browse files
authored
Merge pull request #22 from r-liner/develop
v0.8.1
2 parents ccf3d37 + 584bf6c commit dd25386

File tree

7 files changed

+85
-6
lines changed

7 files changed

+85
-6
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: 🐛 Bug Report
22
description: Create a bug report
33
labels:
4-
- 'bug'
4+
- 'Bug :bug:'
55
body:
66
- type: markdown
77
attributes:
8-
value: >
8+
value: |
99
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.
10+
⚠️ If you do not use this template, we will simply close your issue. ⚠️
1111
- type: textarea
1212
id: summary
1313
attributes:
@@ -74,5 +74,13 @@ body:
7474
label: Nextcord version
7575
description: >
7676
Specify the version of Nextcord you are using.
77+
validations:
78+
required: true
79+
- type: input
80+
id: dcb-ver
81+
attributes:
82+
label: Discord Commands Bot version
83+
description: >
84+
Specify the version of Discord Commands Bot you are using.
7785
validations:
7886
required: true

.github/ISSUE_TEMPLATE/feature.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: ✨ Feature request
2+
description: Create a feature request
3+
labels:
4+
- 'Feature :sparkles:'
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thanks for taking the time to fill out this feature request!
10+
⚠️ If you do not use this template, we will simply close your issue. ⚠️
11+
- type: textarea
12+
attributes:
13+
label: Is your feature request related to a problem?
14+
description: A clear and concise description of what the problem is.
15+
placeholder: Ex. I'm always frustrated when ...
16+
- type: textarea
17+
attributes:
18+
label: Possible Solution
19+
description: Describe the solution you'd like.
20+
validations:
21+
required: true
22+
- type: textarea
23+
attributes:
24+
label: Alternatives
25+
description: A clear and concise description of any alternative solutions or features you've considered.
26+
- type: textarea
27+
attributes:
28+
label: Additional Context
29+
description: If applicable, add any other context or screenshots about the feature request here.

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Discord Commands Bot - Changelog
22

3+
## [v0.8.1](https://github.com/r-liner/discord-commands-bot/releases/tag/v0.8.1) (2024-02-17)
4+
5+
[Full Changelog](https://github.com/r-liner/discord-commands-bot/compare/v0.8.0...v0.8.1)
6+
7+
### Features
8+
- Added `/cogs list` command
9+
10+
### Documentation
11+
- **cogs/discord.py:** Added docstring to `/avatar` command
12+
- **README.md:** Roadmap updated
13+
14+
### GitHub
15+
- **bug.yml:** Fixed indent, added `Discord Commands Bot` version input
16+
- **feature.yml:** Added feature request template
17+
318
## [v0.8.0](https://github.com/r-liner/discord-commands-bot/releases/tag/v0.8.0) (2024-02-14)
419

520
[Full Changelog](https://github.com/r-liner/discord-commands-bot/compare/v0.7.8...v0.8.0)

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ During run the bot you must see:
102102
* Count of bot servers.
103103

104104
## Roadmap
105-
- Feb - Migration to slash commands.
106-
- March - Code simplify.
105+
**Q2:**
106+
- Code simplify.
107+
- Add i18n
107108

108109
## Changelog
109110
You can find it [here](https://github.com/r-liner/discord-commands-bot/blob/master/CHANGELOG.md).

cogs/discord.py

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ def __init__(self, client):
99
@application_checks.guild_only()
1010
@nextcord.slash_command()
1111
async def avatar(self, interaction, user: nextcord.Member = nextcord.SlashOption(default=None)):
12+
"""
13+
Get avatar of certain user.
14+
15+
Parameters
16+
----------
17+
interaction: Interaction
18+
user: nextcord.Member
19+
Choose an user.
20+
"""
1221
user = user or interaction.user
1322

1423
if user.avatar or user.guild_avatar:

main.py

+17
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,23 @@ async def reload(interaction, extension):
108108
print(error)
109109
await interaction.send("Incorrect name or not able to reload")
110110

111+
@application_checks.is_owner()
112+
@cogs.subcommand()
113+
async def list(interaction):
114+
"""
115+
Get extensions list.
116+
"""
117+
embed = nextcord.Embed(title="Cogs list", color=nextcord.Color.blue())
118+
119+
description = []
120+
for filename in os.listdir("./cogs"):
121+
if filename.endswith(".py"):
122+
description.append(f"- {filename[:-3]}")
123+
124+
embed.description = "\n".join(description)
125+
await interaction.send(embed=embed)
126+
127+
111128
for filename in os.listdir("./cogs"):
112129
if filename.endswith(".py"):
113130
client.load_extension(f"cogs.{filename[:-3]}")

version.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.8.0
1+
0.8.1

0 commit comments

Comments
 (0)