Kik bot will not reply

pjtnt11

I have a Kik bot that I am hosting on my computer. I setup the configureation with the following code:

let request = require('request')

request.post('https://api.kik.com/v1/config',
             {
             "auth":{
             "user":"bhs************",
             "pass":"*******-*****-*****-****"
             },
             "headers":{
             "User-Agent":"request"
             },
             "form":{
             "webhook":"https://(my public ip):8080",
             "features":{
             "manuallySendReadReceipts":false,
             "receiveReadReceipts":false,
             "receiveDeliveryReceipts":false,
             "receiveIsTyping":false
             }
             }
             });

And here is the code for my actual bot:

'use strict';

let util = require('util');
let https = require('https');
let Bot  = require('@kikinteractive/kik');

// Configure the bot API endpoint, details for your bot
let bot = new Bot({
                  username: 'bhs************',
                  apiKey: '*******-*****-*****-****',
                  baseUrl: 'https://(my public ip):8080'
                  });

bot.updateBotConfiguration();

bot.onTextMessage((message) => {
                  console.log("New Message")
                  message.reply(message.body);
                  });

// Set up your server and start listening
let server = https
.createServer(bot.incoming())
.listen(8080);
console.log("Server Running on port 8080")

I have setup port forwarding on my router to redirect to my computer with the internal and external port of 8080. I also have the protocol set to both TCP and UDP. Here is a photo if that setup:

Kik Bot port forwarding My bot has stopped telling me that I need to Finnish setting it up every time I text it, but now it never says anything. Is there something that I'm doing wrong here?

quikst3r

It sounds like its not hitting your endpoint properly. I would suggested using ngrok to give yourself a public URL and it will forward to your local IP.

https://ngrok.com/

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How to make a discord bot reply what you have said?

Reply QR Code on Bot framework with MessagingToolkit.QRCode

Bot Framework: How to make an OpenUrl button on a herocard in Kik

How to reply to any DMs sent to the bot?

Facebook Messenger bot: postback.reply webhook mismatch with db query

Telegram bot does nothing after one reply

Reddit bot: random reply to comments

Getting reddit bot to generate a random reply to submission

PHP - Bot Telegram sends message to Channel and Reply in the Chat

How to add buttons to KIK bot to capture user input?

Getting onStartChattingMessage to fire in a Kik bot

Kik Bot keyboard items not changing

deploying kik bot to heroku not working

kik channel rejection for not handling scan-data and stickers using Microsoft Bot framework

Messenger Bot does not reply to random user?

How to send and receive a reply to the bot

Discord.py Make bot wait for reply

Send video from kik bot

How to make my Discord Bot reply with a mention?

How to make telegram bot reply with a photo?

How to recognize on which message is this reply? Python Telegram Bot

Bot responding on mention and also when anyone reply bot message

Possible for discord bot to reply to message that the message calling the bot replied too?

How to make a bot reply depending on the ping? (text message)

Not getting expected reply from telegram bot

How to make bot reply in a single message?

How can Telegram Bot reply a specific commandusing Bot API?

How to make bold italics of a discord bot reply?

Discord Bot Defer Reply in Node js