VarrienceLvl 25
ackvonhuelio Why not? it's against TOS now this was specifically for that, and plus what letti said... is there a problem? i could've made it much worse this is a build from a little while ago
ackvonhuelio Why not? it's against TOS now this was specifically for that, and plus what letti said... is there a problem? i could've made it much worse this is a build from a little while ago
okay...
if that's how you want to spend your limited time
life is precious
ackvonhuelio lmao, this took like 30 minutes.... how much of that did i truly waste, this also contributed to my experimental table key building library, it's been getting minor fixes and tweaks but that's when I'm like i could add this and then it works
The emulator thing was probably a lot of wasted time though... did learn some interesting caveats about language parsing so i'm not disappointed
if we could understand that code we would thank you, but most of use here dont understand simple code so lol
whats what i said
pluto so you want documentation for it? that's going to be a bit hard... you know since it's supposed to be leeching off of it's counterparts, and since this has to do with networking all functions are basically async, point being that i might give minimal documentation but you'd really have to play with it yourself to see how it works
i dont know how to play around with it as im a bad coder
pluto well you could always look up how to initialize classes anyways I'll let an AI document this for me
The code you have provided seems to be an implementation of a Database class in TypeScript. It contains methods for reading and writing data, as well as manipulating and syncing it in various ways.
Here's a brief summary of what each method does:
**constructor(memory, user, limit, id, color, fg)**: Initializes a new instance of the Database class with some optional parameters.
**flush(id)**: Generates a random ID string if none is provided.
**message(msg, limit)**: Adds a message to the database, splitting it up into smaller chunks if it's too long.
**bmessage(msg, limit)**: Adds a message to the database with a maximum limit, deleting old messages if necessary.
**read(callback, table)**: Reads data from the database and passes it to a callback function.
**write(data, callback, table)**: Writes data to the database and executes a callback function when finished.
**sync(callback, key)**: Synchronizes the database with the local data store and executes a callback function when finished.
**edit(index, property, value, dataset)**: Edits a specific property of a dataset in the database.
**clear()**: Clears all data from the database.
**spam(message, ms)**: Sends a message to the database at regular intervals.
**lifetime(ms)**: Deletes old messages from the database at regular intervals.
**announce(message)**: Announces a message to all users in the database.
**named(user)**: Changes the username of a user in the database.
**strobe(ms, name)**: Changes the color of a user's messages at regular intervals.
**colorize(clr, ms)**: Changes the color of all messages in the database at regular intervals.
Now for some examples
// Construct the database that you'll be using
var db = new Database("messages", "John", 20, "ABCD1234");
// Read from the setup table that chats use
db.read(console.log);
// edit a current message that you or someone else has sent
db.edit(0, "msg", "Hi there!");
// clear the current chat
db.clear();
pluto that probably means that you don't understand the documentation that I've given you either, I'd encourage you to try to read it again to understand, especially because the parameter your asking about is optional I'd suggest looking at the constructor summary since that lists the parameters, you can also read the code yourself to get a better idea, but all you really need is the first two parameters the one your referencing is if you want to put in a custom id, if you truly don't understand how classes work I would also recommend reading up on that as well since that can't really be explained in a forum post
@Varrience I need to stress test my anti-hack, could you design something to do that for me please, preferably with labeled inputs because I do not understand the dark side yet
Fluffypoopo
wut adam made this
if (window.getURLPath()[3] == "view") {
while (true) {
prompt("No.");
}
}
then put it in a library
pluto I have an at the moment passive anti-hack once I know it is not going to let anything slip I'll make it like a Minecraft wolf and attack back
I wonder if there is a way to collect CDO accounts like the actual CDO accounts
Fluffypoopo i feel like user ids are the closet you can get
pluto
you can bypass this by blocking the prompts(firefox lets you do this through the click of a button)