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
"Side note: Read r!econotice because I still need suggestions for the eco system.",
39
44
"Commands:",
40
-
"+ roleid",
45
+
"+ editmessage",
46
+
"+ rank",
47
+
"+ rankuproles",
48
+
"+ addrankuprole",
49
+
"+ removerankuprole",
50
+
"+ topranked",
51
+
"+ reverse",
52
+
"+ react",
53
+
"+ intellect",
41
54
"Other things:",
42
-
"Instead of defining an nsfw channel, now the channel must be named \"nsfw\" or start with the \"nsfw-\" prefix for nsfw commands to work in them"
55
+
"Added the ranking system",
56
+
"Reworked the terminal command so it performs better",
57
+
"Added a missing invalid type message to the joinleave command",
58
+
"Re-worked my check functions to be less confusing",
59
+
"- Removed the mod-log channel feature as audit logs are a better alternative. If you wish for users to see audit logs just give them the `View Audit Log` permission.",
60
+
"",
61
+
"Added a ranking system, it is disabled by default and can be enabled with the config command. You can gain xp from sending messages after a 2 minute interval from recieving xp from a previous message. You can add and remove roles to be added after achieving a certain level with the addrankuprole and the removerankuprole commands."
43
62
]
44
63
45
64
asyncdef_restart_bot():
@@ -128,8 +147,6 @@ async def on_ready():
128
147
log.info("Carbonitex stats updated")
129
148
else:
130
149
log.error("Failed to update the carbonitex stats, double check the key in the config!")
awaitbot.send_message(ctx.message.channel, "This command has been disabled")
140
157
return
141
-
158
+
ifisinstance(error, checks.dev_only):
159
+
awaitbot.send_message(ctx.message.channel, "This command can only be ran by the bot developers")
160
+
return
161
+
ifisinstance(error, checks.owner_only):
162
+
awaitbot.send_message(ctx.message.channel, "This command can only be ran by the bot owner")
163
+
return
164
+
ifisinstance(error, checks.not_nsfw_channel):
165
+
awaitbot.send_message(ctx.message.channel, "This command can only be ran in NSFW enabled channels. It must either be named `nsfw` or the name must start with `nsfw-`")
166
+
return
167
+
ifisinstance(error, checks.not_server_owner):
168
+
awaitbot.send_message(ctx.message.channel, "Only the server owner (`{}`) can use this command".format(ctx.message.server.owner))
169
+
return
170
+
ifisinstance(error, checks.no_permission):
171
+
awaitbot.send_message(ctx.message.channel, "You do not have permission to use this command".format(ctx.message.server.owner))
172
+
return
142
173
ifctx.message.channel.is_private:
143
-
awaitbot.send_message(ctx.message.channel, "An error occured while trying to run this command, this is most likely because it was ran in this private message channel. Please try running this command on a server.")
174
+
awaitbot.send_message(ctx.message.channel, "An error occured while trying to run this command, this is most likely because it was ran in a private message channel. Please try running this command on a server.")
144
175
return
145
176
146
177
# In case the bot failed to send a message to the channel, the try except pass statement is to prevent another error
awaitchannel_logger.mod_log(after, "Server verification level was changed from `{}` to `{}`".format(before.verification_level, after.verification_level))
192
-
ifbefore.owner!=after.owner:
193
-
awaitchannel_logger.mod_log(after, "Server ownership was transferred from `{}` to `{}`".format(before.owner, after.owner))
0 commit comments