|
@@ -685,7 +685,7 @@ client.on('message', msg => {
|
|
|
var cont = msg.content;
|
|
|
var author = msg.author;
|
|
|
var channel = msg.channel;
|
|
|
- if ( cont.indexOf( process.env.prefix ) != -1 && !msg.webhookID && author.id != client.user.id && ( channel.type != 'text' || channel.permissionsFor(client.user).has(['SEND_MESSAGES','ADD_REACTIONS','USE_EXTERNAL_EMOJIS']) ) ) {
|
|
|
+ if ( cont.toLowerCase().indexOf( process.env.prefix ) != -1 && !msg.webhookID && author.id != client.user.id && ( channel.type != 'text' || channel.permissionsFor(client.user).has(['SEND_MESSAGES','ADD_REACTIONS','USE_EXTERNAL_EMOJIS']) ) ) {
|
|
|
if ( settings == defaultSettings ) getSettings(setStatus);
|
|
|
var setting = settings['default'];
|
|
|
if ( channel.type == 'text' && msg.guild.id in settings ) setting = settings[msg.guild.id];
|