Skip to content

Commit ff0a965

Browse files
committed
Add "textall" command (save list to file on server)
1 parent 11bdf44 commit ff0a965

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spam/spam.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ async def textall(self, ctx):
130130
msg += "**{}** ({}) \n".format(key, strings[key])
131131
if not msg:
132132
await ctx.maybe_send_embed("List is empty.")
133-
msg = "**Blocked Text:**\n"+msg
134-
await menu(ctx, list(pagify(text=msg, page_length=999999999)), DEFAULT_CONTROLS)
133+
with open("/data/cogs/CogManager/cogs/spam/blocked_text.txt", "w") as text_file:
134+
text_file.write("%s" % msg)
135+
await ctx.maybe_send_embed("List saved to file.")
135136

136137
@_list.command()
137138
async def server(self, ctx):

0 commit comments

Comments
 (0)