External Database
- Android
what-the-dog-doin will it work for my brutal mayhem remix
- Android
what-the-dog-doin school or at break still?
- Windows
miztis finished
- Android
what-the-dog-doin summer???
- Windows
miztis nono, i only finished school
- Android
what-the-dog-doin hold on ill ask u on discord since im not going to spaz out
- Android
what-the-dog-doin hold on ill ask u on discord since im not going to spaz out
DragonFireGamesLvl 11
Heh, I use a very similar system for codemon's shared account system. Do you have it in an actual database like Mongodb like I do or do you just use fs and get stuff from a json file stored locally.
- Edited
- Windows
DragonFireGames it doesn't use any of the actual main databases. its all hosted on a website
DragonFireGamesLvl 11
- Edited
what-the-dog-doin Send code
For reference I use this:
https://firewalledreplit.com/@DragonFireGames/cdo-backend
- Edited
- Windows
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
DragonFireGamesLvl 11
what-the-dog-doin Neat!
- Windows
DragonFireGames you could use axios for your backend HTTPS request
DragonFireGamesLvl 11
- Edited
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.
- Edited
- Windows
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?
DragonFireGamesLvl 11
what-the-dog-doin I got it from him with jimplify
- Windows
DragonFireGames affirmative
DragonFireGamesLvl 11
- Edited
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.