You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Added a check for `commands.MissingRequiredArgument` in the error handler
* Added a disclaimer section in the [README](README.md) file
* Added the latency of the bot in the `ping` command
* Created the [TODO list](TODO.md) file
* Fixed some error embeds having success (green) colors
* Removed an unnecessary `self.bot.logout()` statement
* Removed the `dick` command, as I want to keep this template safe for work
* Renamed the names of the arguments in some commands
* The bot now **tries** to send an embed in the private message of the command author for the `invite` and `server` commands, if this was not successful it will be sent in the channel
Copy file name to clipboardExpand all lines: UPDATES.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,19 @@
2
2
3
3
Here is the list of all the updates that I made on this template.
4
4
5
+
### Version 2.7
6
+
7
+
* Added a check for `commands.MissingRequiredArgument` in the error handler
8
+
* Added a disclaimer section in the [README](README.md) file
9
+
* Added the latency of the bot in the `ping` command
10
+
* Created the [TODO list](TODO.md) file
11
+
* Fixed some error embeds having success (green) colors
12
+
* Removed an unnecessary `self.bot.logout()` statement
13
+
* Removed the `dick` command, as I want to keep this template safe for work
14
+
* Renamed the names of the arguments in some commands
15
+
* The bot now **tries** to send an embed in the private message of the command author for the `invite` and `server` commands, if this was not successful it will be sent in the channel
16
+
17
+
5
18
### Version 2.6
6
19
7
20
* Added new `dailyfact` command that gives a random fact every day, using cool down
description=f"The bot latency is {round(self.bot.latency*1000)}ms.",
111
121
color=config["success"]
112
122
)
113
-
embed.add_field(
114
-
name="Pong!",
115
-
value=":ping_pong:",
116
-
inline=True
117
-
)
118
-
embed.set_footer(
119
-
text=f"Pong request by {context.message.author}"
120
-
)
121
123
awaitcontext.send(embed=embed)
122
124
123
125
@commands.command(name="invite")
124
126
asyncdefinvite(self, context):
125
127
"""
126
128
Get the invite link of the bot to be able to invite it.
127
129
"""
128
-
awaitcontext.send("I sent you a private message!")
129
-
awaitcontext.author.send(
130
-
f"Invite me by clicking here: https://discordapp.com/oauth2/authorize?&client_id={config.APPLICATION_ID}&scope=bot&permissions=8")
130
+
embed=discord.Embed(
131
+
description=f"Invite me by clicking [here](https://discordapp.com/oauth2/authorize?&client_id={config['application_id']}&scope=bot&permissions=470150263).",
132
+
color=config['main_color']
133
+
)
134
+
try:
135
+
# To know what permissions to give to your bot, please see here: https://discordapi.com/permissions.html and remember to not give Administrator permissions.
136
+
awaitcontext.author.send(embed=embed)
137
+
awaitcontext.send("I sent you a private message!")
description=f"**{member}'s** new nickname is **{name}**!",
77
+
description=f"**{member}'s** new nickname is **{nickname}**!",
73
78
color=config["success"]
74
79
)
75
80
awaitcontext.send(embed=embed)
76
81
except:
77
82
embed=discord.Embed(
78
83
title="Error!",
79
-
description="An error occurred while trying to change the nickname of the user.",
80
-
color=config["success"]
84
+
description="An error occurred while trying to change the nickname of the user. Make sure my role is above the role of the user you want to change the nickname.",
0 commit comments