• 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.

Solved Database errors since 1.0-b1

Mmoi

Active 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
is awesome!
V.I.P.
is uber awesome!
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