Author Topic: Substitute @user@ for @target@ in same command line  (Read 963 times)

0 Members and 1 Guest are viewing this topic.

TheHaruFenix

  • Youngling
  • *
  • Posts: 25
  • Karma: +0/-0
    • View Profile
  • Twitch Name: TheHaruFenix
Substitute @user@ for @target@ in same command line
« on: August 13, 2017, 04:44:49 AM »
I have this:
Cmd name: !test1
Cmd Msg: Hello @user@/@target@


I need anyway to make this example in chat:
User1: !test1
Bot: Hello @User1
User1: !test1 @User2
Bot: Hello @User2


In other words, i needed to figure out a way of bot to switch @user@ to @target@ if the command user has put a @target@ before the command...
Anyway? @if@? I dnt know :(
« Last Edit: August 13, 2017, 05:00:07 AM by TheHaruFenix »

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Substitute @user@ for @target@ in same command line
« Reply #1 on: August 13, 2017, 05:53:44 AM »
@if@[@target@||||Hello @user@||Hello @target@]
Old Name: RepentGamingTV
Twitch: Here

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