@@ -41,17 +41,6 @@ class SuperScript {
41
41
} ) ;
42
42
}
43
43
44
- importJSON ( obj , callback ) {
45
- if ( typeof obj === 'string' ) {
46
- try {
47
- obj = JSON . parse ( obj ) ;
48
- } catch ( error ) {
49
- callback ( err ) ;
50
- }
51
- }
52
- Importer . importData ( this . chatSystem , obj , callback ) ;
53
- }
54
-
55
44
getUsers ( callback ) {
56
45
this . chatSystem . User . find ( { } , 'id' , callback ) ;
57
46
}
@@ -244,7 +233,6 @@ class SuperScriptInstance {
244
233
245
234
const defaultOptions = {
246
235
mongoURI : 'mongodb://localhost/superscriptDB' ,
247
- importJSON : null ,
248
236
importFile : null ,
249
237
factSystem : {
250
238
clean : false ,
@@ -265,8 +253,6 @@ const defaultOptions = {
265
253
* @param {Object } options - Any configuration settings you want to use.
266
254
* @param {String } options.mongoURI - The database URL you want to connect to.
267
255
* This will be used for both the chat and fact system.
268
- * @param {Object } options.importJSON - Use this if you want to re-import from JSON Object.
269
- * Otherwise SuperScript will use whatever it currently finds in the database.
270
256
* @param {String } options.importFile - Use this if you want to re-import your parsed
271
257
* '*.json' file. Otherwise SuperScript will use whatever it currently
272
258
* finds in the database.
@@ -317,9 +303,6 @@ const setup = function setup(options = {}, callback) {
317
303
if ( options . importFile ) {
318
304
return bot . importFile ( options . importFile , err => callback ( err , bot ) ) ;
319
305
}
320
- if ( options . importJSON ) {
321
- return bot . importJSON ( options . importJSON , err => callback ( err , bot ) ) ;
322
- }
323
306
return callback ( null , bot ) ;
324
307
} ) ;
325
308
} ;
0 commit comments