1
0
Markus-Rost 4 жил өмнө
parent
commit
e6fee496f0
3 өөрчлөгдсөн 3 нэмэгдсэн , 4 устгасан
  1. 1 2
      bot.js
  2. 1 1
      cmds/verify.js
  3. 1 1
      dashboard/settings.js

+ 1 - 2
bot.js

@@ -316,8 +316,7 @@ client.on( 'message', msg => {
 			if ( dberror ) {
 				console.log( '- Error while getting the wiki: ' + dberror );
 				if ( permissions.has('SEND_MESSAGES') ) {
-					msg.sendChannel( '⚠️ **Limited Functionality** ⚠️\nNo settings found, please contact the bot owner!\n' + process.env.invite, {}, true );
-					newMessage(msg, new Lang(msg.guild.preferredLocale));
+					msg.sendChannel( new Lang(msg.guild.preferredLocale, 'general').get('database') + '\n' + process.env.invite, {}, true );
 				}
 				return dberror;
 			}

+ 1 - 1
cmds/verify.js

@@ -14,7 +14,7 @@ var db = require('../util/database.js');
  * @param {String} [old_username] - The username before the search.
  */
 function cmd_verify(lang, msg, args, line, wiki, old_username = '') {
-	if ( !msg.channel.isGuild() ) return this.LINK(lang, msg, line, wiki);
+	if ( !msg.channel.isGuild() || msg.defaultSettings ) return this.LINK(lang, msg, line, wiki);
 	if ( !msg.guild.me.permissions.has('MANAGE_ROLES') ) {
 		if ( msg.isAdmin() ) {
 			console.log( msg.guild.id + ': Missing permissions - MANAGE_ROLES' );

+ 1 - 1
dashboard/settings.js

@@ -3,7 +3,7 @@ const {defaultSettings} = require('../util/default.json');
 const Lang = require('../util/i18n.js');
 const allLangs = Lang.allLangs();
 const Wiki = require('../util/wiki.js');
-const {got, db, sendMsg, hasPerm} = require('./util.js');
+const {got, db, sendMsg, createNotice, hasPerm} = require('./util.js');
 
 const fieldset = {
 	channel: '<label for="wb-settings-channel">Channel:</label>'