Author Topic: @user@ no longer propogating between commands in a chain  (Read 2409 times)

0 Members and 1 Guest are viewing this topic.

EvilSqueegee

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: EvilSqueegee
@user@ no longer propogating between commands in a chain
« on: July 12, 2015, 07:41:10 PM »
Bug: Before this recent patch which fixed up bot/admin permissions in command chains, the @user@ variable from latter commands in a command chain was passed to them by the former commands in that command chain.

If a user triggered !command1, and command1 triggered command2 either through the text output field or through the command-chain box, then the bot would set off !command2 with the initial user as the @user@ variable.

Since this most recent patch, however, all 2ndary commands in the command chain are treating the bot as if it was the @user@.

I noticed this because I have several minigames I run in my channel, where !commands trigger random lists fo other !commands which then alter currencies and/or timeout users:

!dungeon triggers !dunwin1, !dunlose1. Dunwin1 outputs a random flavor text and then chains to a command which gives the user bonus currency. Dunlose1 posts a message, then chains to a command which posts a death message and costs them currency.

However, these chat games now always treat the bot as the player: When someone !dungeons, the !dunwin1 or !dunlose1 (which have always used @user@) now target the bot.

I asked in Streamer Chat and was told that this is actually a bug and not the intended functionality. Therefore I am posting here!

MercurY3rd

  • Councilor
  • *****
  • Posts: 652
  • Karma: +26/-1
    • View Profile
  • Twitch Name: mercury3rd
Re: @user@ no longer propogating between commands in a chain
« Reply #1 on: July 12, 2015, 07:46:39 PM »
still works as it should
Hier steht nichts Sinnvolles, dennoch freundliche Grüße. MercurY

MercurY3rd

  • Councilor
  • *****
  • Posts: 652
  • Karma: +26/-1
    • View Profile
  • Twitch Name: mercury3rd
Re: @user@ no longer propogating between commands in a chain
« Reply #2 on: July 12, 2015, 08:12:36 PM »
If you want, you can pm me screenshots of your commands so i can take a look at them.
Hier steht nichts Sinnvolles, dennoch freundliche Grüße. MercurY

EvilSqueegee

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: EvilSqueegee
Re: @user@ no longer propogating between commands in a chain
« Reply #3 on: July 13, 2015, 01:10:56 AM »
I know why you and I are getting different results. It's because I'm using the randomized line output for commands.

!command1 has the following lines:

!subcom1
!subcom2
!subcom3
!subcom4


That way it randomly selects the !command and executes it. Previous to patch, @user@ propogated like this. THAT may have been the bug, all I know is that it's not functioning now the way it was before this update.

Screenshots: i.imgur.com/SJqVUK4.png // i.imgur.com/1jPuBcG.png

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @user@ no longer propogating between commands in a chain
« Reply #4 on: July 13, 2015, 02:17:58 AM »
That's because you are running one of the commands as the bot.
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport

EvilSqueegee

  • Youngling
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
  • Twitch Name: EvilSqueegee
Re: @user@ no longer propogating between commands in a chain
« Reply #5 on: July 13, 2015, 09:30:14 AM »
You are correct, I did have some of the commands to run as bot. I have set these commands to run as User, however, and this did not alter the @user@ propogation behavior I am experiencing.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: @user@ no longer propogating between commands in a chain
« Reply #6 on: July 13, 2015, 10:11:11 AM »
Mind taking a screenshot of one of your commands like all the way thru?
Old Name: RepentGamingTV
Twitch: Here

Need help ASAP?
Join Deepbot's Discord: Discord.Deepbot.tv
Deepbot's Twitter: @DeepSupport