sag-enhanced / sage-issues

Issue tracker for SAGE
1 stars 0 forks source link

save accounts to txt file in custom format #24

Closed aysx closed 5 months ago

aysx commented 5 months ago

Describe the feature

Add a function for saving accounts in txt file with custom format such as: "login:" {username} "pass:" {password} e-mail: {email}

Use case

no needs to use discord webhooks, easier to save somewhere on pc, easier to manage those accounts compare on discord and prolly more

Additional context

No response

Le0Developer commented 5 months ago

Export as raw JSON and then process that? Like adding a custom function feature to exporting would do the exact same thing.

Le0Developer commented 5 months ago

This is now implemented.

image

Example script for your format:

return (ctx) => {
  return ctx.accounts.map(x => [
    `login: ${x.user.username}`,
    `pass: ${x.user.password}`,
    `email: ${(x.vault || x.email).address}`,
  ].join("\n")).join("\n\n");
}