Skip to content

Latest commit

 

History

History
63 lines (45 loc) · 2.48 KB

File metadata and controls

63 lines (45 loc) · 2.48 KB

stars forks issues version discuss lastcommit lang

🎉 This is now on NPM! 🎉

Accreate is an account creator/manager that's really easy to use. To use Accreate, simply fork the repl on repl.it or download the zip in the GitHub, then follow this simple tutorial below.

How to use

Installation is simple. Use const acc = require("accreate"); for Node.JS.

To create an account, use acc.create().

Attributes:

  • acc - account name
  • pass - password

Return values:

  • null - means it worked
  • "ERR" - failed
  • nothing - internal error
To edit/manage an account, use acc.request().

Attributes:

  • acc - account name
  • pass - password

Objects/functions:

  • changePass - changes password. (Attributes: x = new password)
  • pfp - returns profile picture
  • del - deletes account

Coin Management (optional coin money):

  • input - adds coins to your account
  • coins - returns coins amount
  • withdraw - decreases coins amount

Followers (optional):

  • followControl - controls followers. (Objects/functions: add (Attributes: user), sum, remove (Attributes: user))

File storage (optional):

  • file - gets a file. (attributes: command = [GET, EDIT, CREATE], filename, data (use data only when needed))

Return values:

  • null - means it worked
  • nothing - internal error
  • other - probably worked.

Getting user data without functions

Accreate uses repl.it's database for Node.JS. So, to get user data use:

db.get(<accountname> + "-data-" + <datatype>).then(value => {});

If that doesn't work, use Node.JS to install the database.


Conclusion

I have worked very hard on creating this. Please star this project on GitHub and if there are any errors/something isn't working please create an issue on the GitHub. Thanks and I hope you use it!

run on repl.it