• TeamSpeak has reported a vulnerability in it's client that can potentially lead to RCE. A new version has been released that fixes it. So please update the client in your bot installation as soon as possible as well. Click here for more information.
  • If you need help or want to discuss things, you now can also join us on our Discord Server!

Database errors since 1.0-b1

Mmoi

Member
Contributor
Hi,

Got a problem with the database with the 1.0b1.

I get the Uncaught exception: TypeError: Cannot read property 'connect' that says that the db = require('db') went wrong.
-> The confg should allow the usage of the db, tho.

[Scripts.Privileges]
sconomy-ng-db = ["db"]


Could you confirm it's a bug pls?

EDIT: moreover, the doc don't seem to have changed and the code should work; https://sinusbot.github.io/scripting-docs/#db.

Mmoi
 

Multivitamin

Well-Known Member
Tier III
V.I.P.
Contributor
Insider
[Scripts.Privileges]
sconomy-ng-db = ["db"]

is not needed anymore since the first 1.0.0 alpha
instead use the script header for it
3265
 
Top