Author Topic: Command stacking/nesting  (Read 1380 times)

0 Members and 1 Guest are viewing this topic.

BoredPleasure

  • Youngling
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
  • Twitch Name: BoredPleasure
Command stacking/nesting
« on: November 27, 2015, 10:55:54 AM »
Hello there!


At first, I'm pretty new to this, so excuse my noobish terms if they occur.

I was wondering if it is possible to add a command to Deepbot where you can make it request a certain song, as well as making it add a line to the chat, for example:

Using !party would result in the bot adding a song using !songrequest, as well as saying "Let's party!!" in the chat.
<User>: !party
<Bot> : !songrequest <youtube link>
<Bot> : Let's party!!

Is there any way this is possible with the current deepbot?

Thank you in advance for your constructive answers :)


BoredPleasure

P.S. Attached you'll find a small example I quickly edited up.

[EDIT]: Also put it below vvvv

« Last Edit: November 27, 2015, 11:04:22 AM by BoredPleasure »

TheRealAlixe

  • Knight
  • ***
  • Posts: 106
  • Karma: +5/-2
    • View Profile
    • Ninetales.us
  • Twitch Name: TheRealAlixe
Re: Command stacking/nesting
« Reply #1 on: December 31, 2015, 12:06:20 AM »
u can just do or something along the lines of this

!party
      !requestsong <link>
           Chain !party_2

!party_2
       Its Party Time
Twitter: @TheRealAlixe | Web: Ninetales.us | Twitch: @TheRealAlixe | Discord: join