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
{{ message }}
This repository was archived by the owner on Mar 25, 2023. It is now read-only.
awaitmsg.channel.send(embed=fromdict({"title":"No Content","description":"Nothing under this catagory","color":colours["warning"]}),delete_after=15)
57
57
else:
58
-
getMegaTable(msg).ProtectedMessages.append((awaitcreatePagedEmbed(msg.author,msg.channel,"List of moderation content",finalString,8,(section=="QueuedChannels"and"(This is how long until the next cycle)") or"")).id)
58
+
getMegaTable(msg).ProtectedMessages.append((awaitcreatePagedEmbed(msg.author,msg.channel,"List of moderation content",finalString,8,(section=="QueuedChannels"and"(How long until the next cycle)") or"")).id)
59
59
Command("list",list_func,0,"View the list of settings to do with the server's administration",{"subsection":False},None,"admin")
60
60
61
61
asyncdefrefilter(msg,args):
@@ -84,7 +84,7 @@ async def protectMessage(msg,args): #Prevents a message from being filtered
84
84
awaitmsg.channel.send(embed=fromdict({"title":"Error","description":"You must provide the message ID to protect","color":colours["error"]}),delete_after=10)
85
85
return
86
86
try:
87
-
msgid=int(msgid)//1
87
+
msgid=int(msgid)
88
88
except:
89
89
awaitmsg.channel.send(embed=fromdict({"title":"Error","description":"message ID must be a number","color":colours["error"]}),delete_after=10)
awaitchannel.send(embed=fromdict({"title":"Success","description":f"All messages after #{str(msgLimit)} will be auto-deleted","color":colours["success"]}))
199
+
awaitchannel.send(embed=fromdict({"title":"Success","description":f"All messages after #{msgLimit} will be auto-deleted","color":colours["success"]}))
awaitmsg.channel.send(embed=fromdict({"title":"Success","description":f"{str(successRate)} out of {str(totalCount)} invites were successfully cleared","color":colours["success"]}))
227
+
awaitmsg.channel.send(embed=fromdict({"title":"Success","description":f"{successRate} out of {totalCount} invites were successfully cleared","color":colours["success"]}))
awaitmsg.channel.send(embed=fromdict({"title":"Post Blocked","description":"The recieved post contained one or more blocked tags","color":colours["error"]})) #No
94
+
awaitmsg.channel.send(embed=fromdict({"title":"Post Blocked","description":"The recieved post contained one or more blocked tags","color":colours["error"]}),delete_after=15) #No
95
95
else:
96
-
awaitmsg.channel.send(embed=fromdict({"title":"No Posts","description":"No posts were found under your requested tags","color":colours["error"]})) #Consider adding delete_after
96
+
awaitmsg.channel.send(embed=fromdict({"title":"No Posts","description":"No posts were found under your requested tags","color":colours["error"]}),delete_after=15)
97
97
return
98
98
returnreturnContent
99
99
asyncdefnsfwScrape(msg,args,sitetype): #I spent hours on this and idk if i should be happy about it
100
100
ifnotmsg.channel.is_nsfw():
101
101
awaitmsg.channel.send(embed=fromdict({"title":"Disallowed","description":"You can only use NSFW commands in channels marked as NSFW","color":colours["error"]}),delete_after=10)
102
102
return
103
-
tags=""
104
-
foriinargs[1:]: #Avoid calling command
105
-
tags=tags+i+"+"#A trailing + is fine
106
103
try:
107
-
postList=awaitgetPostList(msg,sitetype,tags) #HTTP Requests, therefore try: it
104
+
postList=awaitgetPostList(msg,sitetype,"+".join(args[1:])) #HTTP Requests, therefore try: it
awaitmsg.channel.send(embed=fromdict({"title":"Unexpected Error","description":"Something unexpected went wrong, hopefully it wont happen again","color":colours["error"]}),delete_after=10)
0 commit comments