• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

DE Datenbank Frage

Nisutec

Donor
is awesome!
Contributor
Wie kann ich überprüfen ob eine uuid nicht in einer Datenbank ist. Dieser code zeigt mir nur was an wenn die SQL Quarry was finden kann.
Kann man sich denn Inhalt von res irgendwie ausgeben so das man das verwerten kann.

JavaScript:
if (dbc) dbc.query("SELECT * FROM users WHERE uuid = '%n'".replace(/%n/g, ev.client.uid()), function(err, res) {
                    if (!err) {
                        engine.log('nice')
                         res.forEach(function(row) {
                             engine.log(helpers.toString(row.uuid));
                             engine.log(helpers.toString(row.rank));
                             user = helpers.toString(row.uuid)
                             rank = helpers.toString(row.rank)
                             engine.log('LOG ' + user)
                             if (user == '') {
                                 engine.log('nooo')
                             }
                         });
                    }
                });
 
Last edited:
Top