File tree 7 files changed +85
-6
lines changed
7 files changed +85
-6
lines changed Original file line number Diff line number Diff line change 1
1
name : 🐛 Bug Report
2
2
description : Create a bug report
3
3
labels :
4
- - ' bug'
4
+ - ' Bug : bug: '
5
5
body :
6
6
- type : markdown
7
7
attributes :
8
- value : >
8
+ value : |
9
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.
10
+ ⚠️ If you do not use this template, we will simply close your issue. ⚠️
11
11
- type : textarea
12
12
id : summary
13
13
attributes :
74
74
label : Nextcord version
75
75
description : >
76
76
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.
77
85
validations :
78
86
required : true
Original file line number Diff line number Diff line change
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.
Original file line number Diff line number Diff line change 1
1
# Discord Commands Bot - Changelog
2
2
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
+
3
18
## [ v0.8.0] ( https://github.com/r-liner/discord-commands-bot/releases/tag/v0.8.0 ) (2024-02-14)
4
19
5
20
[ Full Changelog] ( https://github.com/r-liner/discord-commands-bot/compare/v0.7.8...v0.8.0 )
Original file line number Diff line number Diff line change @@ -102,8 +102,9 @@ During run the bot you must see:
102
102
* Count of bot servers.
103
103
104
104
## Roadmap
105
- - Feb - Migration to slash commands.
106
- - March - Code simplify.
105
+ ** Q2:**
106
+ - Code simplify.
107
+ - Add i18n
107
108
108
109
## Changelog
109
110
You can find it [ here] ( https://github.com/r-liner/discord-commands-bot/blob/master/CHANGELOG.md ) .
Original file line number Diff line number Diff line change @@ -9,6 +9,15 @@ def __init__(self, client):
9
9
@application_checks .guild_only ()
10
10
@nextcord .slash_command ()
11
11
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
+ """
12
21
user = user or interaction .user
13
22
14
23
if user .avatar or user .guild_avatar :
Original file line number Diff line number Diff line change @@ -108,6 +108,23 @@ async def reload(interaction, extension):
108
108
print (error )
109
109
await interaction .send ("Incorrect name or not able to reload" )
110
110
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
+
111
128
for filename in os .listdir ("./cogs" ):
112
129
if filename .endswith (".py" ):
113
130
client .load_extension (f"cogs.{ filename [:- 3 ]} " )
Original file line number Diff line number Diff line change 1
- 0.8.0
1
+ 0.8.1
You can’t perform that action at this time.
0 commit comments