- Edited
- Windows
DragonFireGames it doesn't use any of the actual main databases. its all hosted on a website
DragonFireGames it doesn't use any of the actual main databases. its all hosted on a website
what-the-dog-doin Send code
For reference I use this:
https://firewalledreplit.com/@DragonFireGames/cdo-backend
DragonFireGames it uses sqlite
if(typeof(success) != "function") success = function(){};
if(typeof(failure) != "function") failure = function(){};
if(!Array.isArray(columns)) return console.error("'keys' is not an array!");
sql = `CREATE TABLE ${name}(id PRIMARY KEY NOT NULL unique, ${columns.join(",")})`
database.run(sql, (err) => {
if(err) {failure(`failed to create table "${name}": ${err}`); return console.error(err)}
success(`successfully created table "${name}"`);
});
this is just for creating a table
what-the-dog-doin Neat!
DragonFireGames you could use axios for your backend HTTPS request
what-the-dog-doin True, but it's easy enough to use app.get
, I also got most of the code from @Varrience and that was what he did.
DragonFireGames before you made the backend have jimpify, did you use Varrience's request service? and if you did, did you have any trouble transferring JSON between them?
what-the-dog-doin I got it from him with jimplify
DragonFireGames affirmative
Half of me wants to write a discord bot that interacts with code.org using requests and stores messages in a discord server, would that be a good idea? It'd be something similar to widgetbot.
DragonFireGames oh yeah, but you'll have to learn python (unless you already know it)
I won't make it for a while, considering my plate is quite full at the moment, but it is an interesting idea.
DragonFireGames indeed, indeed.
what-the-dog-doin My discord is dragonfire7z
btw (I can't use it until later today)
DragonFireGames transfa ! .skulldd