Browse Source

default for newRating. the bot went in an error loop all night

master
Morgan Bazalgette 4 years ago
parent
commit
76f93930ca
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      index.js

+ 3
- 0
index.js View File

@@ -118,6 +118,9 @@ var slashGet = function(userID, chatID, command) {
};
var changeRating = function(userID, chatID, newRating) {
getUserInMemory(userID);
if (typeof rating === undefined) {
newRating = "dadoasidahermemlai13";
}
newRating = newRating.trim();
if (newRating !== "everything" && newRating !== "explicit"
&& newRating !== "questionable" && newRating !== "safe")

Loading…
Cancel
Save