!account link via whisper is inconsistent


#1

PhantomBot Version: 2.3.8
OS Version: Raspbian Jessie (Raspberry Pi 3) - Same happens on W10 PC
Java Version: 1.8.0_144
Stock PhantomBot: Yes
Any Recent Changes to Your System: No

I got this happening trying with different random accounts, if I try to whisper “!account link” directly to the bot on discord the console outputs the full message with all the instructions as a [DM] but I can’t actually see it on discord, I only see the next one after I retype !account link in the private conversation (discord bug?). Something similar happens on the twitch part of the linking process, if I send “/w mybot !account link xxxxxxx” it reads the message (can see it on console), but it doesn’t trigger the command (that’s with any command actually, it only answers - sending the output in public stream chat - when I am the one whispering the command). I wanted to make so that the linking process wasn’t resulting in a twitch chat flood of commands by making my viewers whisper the command to the bot

I’m copy pasting one of the console outputs of the last try with a friend’s account:

Nov 25 15:13:28 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:13:28.872 GMT] [DISCORD] [#Mätte] mätte: !account link
Nov 25 15:13:28 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:13:28.900 GMT] [DISCORD] [@mätte#0190] [DM] **NOTE: This expires in 10 minutes**.
Nov 25 15:13:28 raspberrypi launch-service.sh[24913]: To complete the process of linking your Discord and Twitch accounts, please login to Twitch, go to **https://twitch.tv/mavri**, and send the command **!account link Xx5gh3Jy5H**
                    ^ ^ ^ THIS MESSAGE WAS NOT SEEN ^ ^ ^

Nov 25 15:14:07 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:14:07.481 GMT] [DISCORD] [#Mätte] mätte: !account link
Nov 25 15:14:07 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:14:07.495 GMT] [DISCORD] [@mätte#0190] [DM] **NOTE: This expires in 10 minutes**.
Nov 25 15:14:07 raspberrypi launch-service.sh[24913]: To complete the process of linking your Discord and Twitch accounts, please login to Twitch, go to **https://twitch.tv/mavri**, and send the command **!account link +4968pi9BT**
                    ^ ^ ^ HE SAW THIS ONE ^ ^ ^

Nov 25 15:15:31 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:15:31.433 GMT] [WHISPER] lilmatte69: !account link +4968pi9BT
Nov 25 15:16:47 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:16:47.896 GMT] [WHISPER] lilmatte69: !account link
Nov 25 15:17:11 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:17:11.305 GMT] [WHISPER] lilmatte69: !account link +4968pi9BT
Nov 25 15:17:47 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:17:47.288 GMT] lilmatte69: !account link +4968pi9BT
Nov 25 15:17:47 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:17:47.320 GMT] [DISCORD] [@mätte#0190] [DM] Your Discord account has been successfully linked to **https://twitch.tv/mavri**.
Nov 25 15:17:47 raspberrypi launch-service.sh[24913]: Please note that if you change your name on Twitch, you will have to redo this.
Nov 25 15:21:30 raspberrypi launch-service.sh[24913]: [11-25-2017 @ 14:21:30.553 GMT] [WHISPER] lilmatte69: !youtube
                    ^ ^ ^ NO ANSWER FROM ANY COMMAND ^ ^ ^

#2

Only moderators and higher can whisper the bot, to avoid trolls, and a flood spam from users in your channel. As for the Discord DMs, make sure that the user does allow DMs for everyone and not just friends.


#3

Oh, I see why the whispers could result in a flood spam, but I can’t find any other way to make them link discord without having to type it in the public chat. As for the DMs, even my account allows whispers from anyone but the very first message when I type !account link is not visible from discord itself, I can only know it is sent (it seems?) from the console, all the other tries after the first one - being them dms or normal chat messages - are normally sent and received


#4

Every time I use the !account link command I get a message from the bot, are you seeing any errors in your logs about the bot failing to send a private message?


#5

Nope, that’s the point, as you can see in the log I sent the console says that the message is actually sent, just like the second one, but only the second one actually went through


#6

I don’t think we can do much about this sadly. If no errors are showing up, that means Discord returned the response code that the message was successfully sent to the user.


#7

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.