Author Topic: Variables in Custom Bot Commands  (Read 1640 times)

0 Members and 1 Guest are viewing this topic.

KiWad

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: KiWad
Variables in Custom Bot Commands
« on: December 17, 2017, 08:20:37 PM »
Hi all. Have a question - what you use in CustomCommands in the role of Variables(i trying to use .txt files, but this is not comfortable, cause some operands cannot do with txt files all what you need to)? I realy wanna see in this bot opportunity to create variables that will be working for all commands in group...

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Variables in Custom Bot Commands
« Reply #1 on: December 18, 2017, 01:17:50 AM »
Not sure what you are trying to do, but here is a list of variables that are in the bot already: http://wiki.deepbot.tv/custom_commands
Old Name: RepentGamingTV
Twitch: Here

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

KiWad

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: KiWad
Re: Variables in Custom Bot Commands
« Reply #2 on: December 18, 2017, 08:06:30 PM »
TheNumbLock

Well i know about them. Ok.
example:
In our command we use @target@ and @if@[date|match|result|fail]. AND if @if@ looks like @if@[someData| Match| yes is match| !SomeCustomCommand], !SomeCustomCommand will loose @target@, that command dont see @target@. This you may change if use .txt file like variable. save @target@ in .txt and use it in another command, but this is very not comfortable...
 

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Variables in Custom Bot Commands
« Reply #3 on: December 18, 2017, 08:09:53 PM »
Easy: @if@[someData| Match| yes is match| !SomeCustomCommand @target@]

Or Evan: @if@[@target@| Match| yes is match| !SomeCustomCommand @target@]
Old Name: RepentGamingTV
Twitch: Here

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

KiWad

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: KiWad
Re: Variables in Custom Bot Commands
« Reply #4 on: December 19, 2017, 10:35:05 PM »
OMFG KILL ME PLS i even dont think to try this >.< Thanks)

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Variables in Custom Bot Commands
« Reply #5 on: December 20, 2017, 02:29:19 AM »
All good. :P
Old Name: RepentGamingTV
Twitch: Here

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