Author Topic: Auto Command Spam  (Read 2662 times)

0 Members and 1 Guest are viewing this topic.

L3tM31n_N0w

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
  • Twitch Name: L3tM31n_N0w
Auto Command Spam
« on: December 19, 2016, 11:20:49 PM »
I'm hoping to be able to write a command that allows me to type something simple like !host <username> and have the bot repeat the command 10-15 times without me needing to repost it a bunch.
Is there any way of doing this?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Auto Command Spam
« Reply #1 on: December 20, 2016, 12:16:51 AM »
You can make a command and chain it to itself to run every x seconds.
Old Name: RepentGamingTV
Twitch: Here

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

L3tM31n_N0w

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
  • Twitch Name: L3tM31n_N0w
Re: Auto Command Spam
« Reply #2 on: December 22, 2016, 09:05:18 PM »
Thanks Repent, next question is can i set it to only chain say 10 times?
I tested and it works well, problem is that i can see my bot getting a global timeout at some point lol
Ideally i'l like to chain it so the command runs every second for 10 seconds or 10 consecutive calls.

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Auto Command Spam
« Reply #3 on: December 23, 2016, 01:18:26 AM »
Well it wouldn't be banned in your channel unless you ban it.

A simple version of something you could do: (Basically this chains itself to run every second once it has been set off the first time. It checks the counter (which counts how many times the command has been ran) and if the counter is at 10 or below, it will run it till it hits 10. )


Old Name: RepentGamingTV
Twitch: Here

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

L3tM31n_N0w

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
  • Twitch Name: L3tM31n_N0w
Re: Auto Command Spam
« Reply #4 on: December 23, 2016, 01:58:17 PM »
So just to confirm, i would use this method but every time i stream and plan to host at the end i would need to reset the commands counter?
Or is there a way i can write a counter reset into the start of the command so that when i type !host it clears the counter to 0 then runs the command upto a limit of 10 and stops?

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Auto Command Spam
« Reply #5 on: December 23, 2016, 11:45:43 PM »
So you can do this then: !resetcounter !host
Old Name: RepentGamingTV
Twitch: Here

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

L3tM31n_N0w

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
  • Twitch Name: L3tM31n_N0w
Re: Auto Command Spam
« Reply #6 on: December 24, 2016, 08:42:42 AM »
Thanks Repent.
Is there any way i can get a copyable command?
Just to make sure I'm putting spaces characters in the correct place?
Is the !resetcounter a default command and how do i point it at the !host command counter?
I might need some help getting this setup i think lol.

Could be a good idea for a hard coded option though, i think it would certainly get used.
Just a radio button you can select in the command window for repeat command and an input for how many times to repeat... i don't know how hard or easy that would be to write...

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Auto Command Spam
« Reply #7 on: December 24, 2016, 10:06:37 AM »
@if@[<=||@counter@||10||Running This every second till counter hits 10.||]

Yes, the resetcounter is a default command is by default.

You can export and import commands. o.o
Old Name: RepentGamingTV
Twitch: Here

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

L3tM31n_N0w

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
  • Twitch Name: L3tM31n_N0w
Re: Auto Command Spam
« Reply #8 on: December 27, 2016, 10:21:11 AM »
Hey Repent,
Thanks for the help, this seems to be working pretty well now but unfortunately it doesnt look like the variable carries across to the chained messages. Is there any way i can get the viable to carry through to the chained command?

L3tM31n_N0w

  • Youngling
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
  • Twitch Name: L3tM31n_N0w
Re: Auto Command Spam
« Reply #9 on: December 27, 2016, 10:38:18 AM »
All good, didnt realise i'd missed the @target@ on the chained command line