Browse Source

change userID to chatID

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

+ 1
- 1
index.js View File

@@ -54,7 +54,7 @@ var sendWelcomeUser = function(chatID) {
var sendPic = function(userID, chatID) {
// Get the user preferences
var user = getUserInMemory(userID);
console.log("[BOT STATUS] Sending hentai picture to {0}...".format(userID));
console.log("[BOT STATUS] Sending hentai picture to {0}...".format(chatID));
// First request, just to get the count of posts.
request("http://gelbooru.com/index.php?page=dapi&s=post&q=index&limit=0&tags=" + encodeURIComponent((user.last_tags === null? "" : user.last_tags) + " -webm " + (user.rating != "everything"? "rating:" + user.rating : "")), function(err, re, body) {
if (err)

Loading…
Cancel
Save