|
|
@ -302,7 +302,14 @@ let kara = new Vue({ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.includesAllOf(phrases, ['clear', 'chat'])) { |
|
|
|
if (this.includesAllOf(phrases, ['clear', 'chat'])) { |
|
|
|
this.clearChat() |
|
|
|
this.clearChat(); |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (this.includesAllOf(phrases, ['weather']) && |
|
|
|
|
|
|
|
this.includesOneOf(phrases, ['how', 'whats']) |
|
|
|
|
|
|
|
) { |
|
|
|
|
|
|
|
this.checkWeather(); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -473,7 +480,7 @@ let kara = new Vue({ |
|
|
|
this.location = this.settingsModal.location; |
|
|
|
this.location = this.settingsModal.location; |
|
|
|
this.updateStorage(); |
|
|
|
this.updateStorage(); |
|
|
|
|
|
|
|
|
|
|
|
this.botMessage('Settings saved! :)'); |
|
|
|
// this.botMessage('Settings saved! :)');
|
|
|
|
this.scrollDown(); |
|
|
|
this.scrollDown(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
clearChat() { |
|
|
|
clearChat() { |
|
|
|