Browse Source

Hopefully fix #1

master
Morgan Bazalgette 4 years ago
parent
commit
19ac2c2b9f
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      index.js

+ 2
- 4
index.js View File

@@ -122,8 +122,8 @@ var changeRating = function(userID, chatID, newRating) {
newRating = "dadoasidahermemlai13";
}
newRating = newRating.trim();
if (newRating !== "everything" && newRating !== "explicit"
&& newRating !== "questionable" && newRating !== "safe")
if (newRating == "everything" || newRating == "explicit"
|| newRating == "questionable" || newRating == "safe")
memoryData.users[userID].rating = newRating;
else
bot.sendMessage({
@@ -145,8 +145,6 @@ var multiple = function(userID, chatID, times) {
}
sendPic(userID, chatID);
}
// reminder to self: in sendPic, add a try {} catch (e) {sendpic again} or whatever system
// reminder to self: setting to just give url to gelbooru pic, that is default to true because it reduces bandwith, a lot.
var getUserInMemory = function(user) {
if (typeof memoryData.users[user] === "undefined") {
// default values

Loading…
Cancel
Save