Author Topic: Custom commands with variables  (Read 16216 times)

0 Members and 1 Guest are viewing this topic.

DeadairX

  • Youngling
  • *
  • Posts: 12
  • Karma: +3/-0
    • View Profile
  • Twitch Name: deadairx
Custom commands with variables
« on: May 09, 2014, 06:22:36 PM »
Unless it's already a feature and I'm missing it, can we have the ability to make our own commands that use variables?

For example:
!follow $user = "Go follow $user at www.twitch.tv/$user"


And also, the ability to see other people's point balance
!points $user = "Points: $user 10"

I can see why the points command might be a problem but I figured it was worth asking.

Thank you!

drunkyoda

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Custom commands with variables
« Reply #1 on: May 10, 2014, 01:27:52 AM »
The deepbot as far as i know does not have the touser command.

If you wanted to set it up so whoever typed the command would have their twitch go out it would be setup like this:

!addcmd !follow Go follow @user@ at www.twitch.tv/@user@

For instance if I typed that in chat it would look like this:

Drunkyoda: !follow
DeepBot: Go follow Drunkyoda at ww.twitch.tv/Drunkyoda


The command to check peoples coins or points is !check

So you could do !check Drunkyoda

ExpertsOnline

  • Creator
  • Councilor
  • *****
  • Posts: 2656
  • Karma: +289/-24
    • View Profile
  • Twitch Name: expertsonline
Re: Custom commands with variables
« Reply #2 on: May 10, 2014, 12:38:56 PM »
This does already exist.

Listed below are the dynamic variables that work with DeepBot.

@user@ = User Name
@target@ = First Parameter of channel message ( E.g. message : http://twitch.tv/@target@, "!twitch experts" will give a message http://twitch.tv/experts )
@points@ = User Points
@joindate@ = Date user joined the channel.
@hours@ = Number of hours watched.
@streamrank@ = User stream rank.
@hrstolevelup@ = Hours till user reaches next stream rank.
@last5follows@ = Last 5 users who have followed the stream [Also works on timed messages]
@last10follows@ = Last 10 users who have followed the stream [Also works on timed messages]

UnragedGamer

  • Youngling
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
  • Twitch Name: UnragedGamer
Re: Custom commands with variables
« Reply #3 on: July 03, 2014, 10:49:08 AM »
is there a @game@ that queries the game you are playing to add it to a command? I know there is a !game one but I need to know how to query it myself

ziteseve

  • Youngling
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
  • Twitch Name: www.twitch.tv/ziteseve
Re: Custom commands with variables
« Reply #4 on: August 31, 2014, 05:34:40 PM »
This does already exist.

Listed below are the dynamic variables that work with DeepBot.

@user@ = User Name
@target@ = First Parameter of channel message ( E.g. message : http://twitch.tv/@target@, "!twitch experts" will give a message http://twitch.tv/experts )
@points@ = User Points
@joindate@ = Date user joined the channel.
@hours@ = Number of hours watched.
@streamrank@ = User stream rank.
@hrstolevelup@ = Hours till user reaches next stream rank.
@last5follows@ = Last 5 users who have followed the stream [Also works on timed messages]
@last10follows@ = Last 10 users who have followed the stream [Also works on timed messages]


First of all i want to say Hell of a bot good sir! i love it!

My question! is there a way to do a click to tweet command like i have with Nightbot? (id like to migrate everything over as nightbot is completely unreliable)

Ex. " Please make sure to tweet out the stream: $(tweet $(twitch status) @Ziteseve twitch.tv/ziteseve) "

IanChandler1990

  • Padawan
  • **
  • Posts: 84
  • Karma: +0/-0
    • View Profile
    • Twitch
  • Twitch Name: Ianchandler1990
Re: Custom commands with variables
« Reply #5 on: August 31, 2014, 06:55:52 PM »
is there a @game@ that queries the game you are playing to add it to a command? I know there is a !game one but I need to know how to query it myself
there is a @game@ it will pull the game you have in your twitch title

kyroskoh

  • Padawan
  • **
  • Posts: 53
  • Karma: +0/-0
    • View Profile
  • Twitch Name: kyroskoh
Re: Custom commands with variables
« Reply #6 on: December 13, 2014, 04:19:30 AM »
There's some variables have been added but it has not been updated to the list yet:

@uptime@ - Display the bot/stream uptime
@game@ - Display the streamer's stream game
@title@ - Display the streamer's stream title