EASILY use random words or phrases in commands with StreamElements

Поділитися
Вставка
  • Опубліковано 10 сер 2023
  • Want to have some commands where the output isn't always the same?
    With the help of the random.pick function in stream elements, we easily make commands that will use one of many words or phrases as part of the response.
    This video will walk us through how to get this set up.
    If you haven't set up stream elements chatbot yet, watch this video first: • Setting Up StreamEleme...
    for copy/pasta needs, here's the command:
    ${user} loots the ${random.pick 'goblin' 'cultist' 'bandit'} and finds ${random.pick 'a Bronze Hourglass' 'a tattered Letter' 'a jar of dirt' 'a handbell' 'a signet ring' 'an unholy symbol' 'a mysterious map' 'a pet squirrel' 'a jar of pickled toes' 'sand - SO much sand'}
    🔥 Subscribe here! bit.ly/phlare_subscribe
    🔴 Watch Phlare Live: bit.ly/phlare_twitch
    ===== Quick Links =====
    StreamElements Homepage: streamelements.com...
    📼 More Streamer Tutorials: bit.ly/phlare_tutorials
    🤖 Streamer.bot software: streamer.bot/
    ➤ OBS Studio: obsproject.com/
    ♪ Epidemic Sound - Royalty Free Music + SFX: bit.ly/phlare_es
    ===== Socials =====
    🔥 Join Phlare's Discord: bit.ly/phlare_discord
    👕 Phlare's Merch: bit.ly/phlare_shop
    👑 Phlare's Throne Wishlist: bit.ly/phlare_throne
    🐦 Twitter: bit.ly/phlare_twitter
    🗪 Phlare's other socials: bit.ly/phlare_linktre
    ===== Affordable Streaming Gear for Beginners* =====
    🎥 Elgato FaceCam: amzn.to/3KDqJjb
    🎤 HyperX Solocast: amzn.to/3ONUD6F
    🎤 Cheap Boom Arm: amzn.to/47pwYRf
    🎤 Pop Filter for Mic: amzn.to/3DTWcKe
    🚨 Programmable RGB Floodlights: amzn.to/3QS6pP5
    *As an Amazon Associate I earn from qualifying purchases.
    Music provided by Monstercat:
    Tut Tut Child - Idyll
    / monstercatinsti. .
    #streamelements #chatbot #randomwords
  • Навчання та стиль

КОМЕНТАРІ • 31

  • @Phlare
    @Phlare  10 місяців тому +1

    what have you built with the random.pick function? what else would you like to learn how to do with stream elements chatbot? subscribe for more tutorials on all sorts of chat bots: bit.ly/phlare_subscribe

  • @HeyEngelly
    @HeyEngelly Місяць тому +1

    Thank you so much this was incredibly helpful and easy to follow.

    • @Phlare
      @Phlare  Місяць тому

      You're very welcome!

  • @blueboxpirate3601
    @blueboxpirate3601 10 місяців тому +1

    so easy to follow along, with clear directions and simple explanations!

    • @Phlare
      @Phlare  10 місяців тому

      thanks blue

  • @vassalex2414
    @vassalex2414 2 місяці тому +1

    This was really awesome!! Thank you so much!

  • @kendraskorner_4
    @kendraskorner_4 9 місяців тому +1

    Omg this was so helpful, thank you!

    • @Phlare
      @Phlare  9 місяців тому

      You’re welcome!

  • @Maxim.Nazarenko
    @Maxim.Nazarenko 5 місяців тому +1

    Thanks.

    • @Phlare
      @Phlare  5 місяців тому

      You're welcome!

  • @potatosqueeze3727
    @potatosqueeze3727 7 місяців тому +1

    I kept getting "Parsing error at position 285: Mismatched quotation mark." So i changed the brackets from { } to ( ) and it fixed it. I probably messed the brackets up somewhere before and just didnt notice till i changed them. Hopefully this helps anyone that gets that error.

    • @Phlare
      @Phlare  7 місяців тому +1

      Good job sorting it out!

  • @beermanstan
    @beermanstan 4 місяці тому +1

    Are there any methods to support lists of options that exceed the character limit?

    • @Phlare
      @Phlare  4 місяці тому +2

      You will need to use a more sophisticated bot for this like streamer bot

    • @Phlare
      @Phlare  4 місяці тому +1

      Here’s and example of using random data from longer lists in streamer bot
      (Video is a bit older so some UI elements have changed)
      Use Streamer.bot to Roll Random D&D Characters on Twitch
      ua-cam.com/video/vaoeBYtrYes/v-deo.html

    • @beermanstan
      @beermanstan 4 місяці тому

      @@PhlareThank you so much for this!

  • @JakeMo_
    @JakeMo_ 3 місяці тому +1

    I want to go a step further and be able to have the command know what to choose and what not to choose depending on the previous choice that was randomly selected.
    I’m gonna use your system, say I used the command and was given “goblin” and now since I’ve gotten goblin the next random objects that can randomly be selected are only let’s say “a jar of dirt” and “a mystery map”
    And now depending on which item was chosen be given different “sentences”
    Could this be done or would it be too complicated at that point :P

    • @Phlare
      @Phlare  3 місяці тому

      This could be done with a more complex bot like streamer bot, but not gonna happen in streamelements.

    • @JakeMo_
      @JakeMo_ 3 місяці тому +1

      ⁠@@PhlareDo you have a video or an example of how this could be created on streamer bot? I’m unfamiliar with these things but I’ve had this idea for a while but didn’t know to integrate it and ide still like to create it

  • @Scaveets
    @Scaveets 3 місяці тому

    What would be the command of if I just wanted the command to say a random phrase?

    • @Phlare
      @Phlare  3 місяці тому

      This is more about selecting one of several options randomly. What do you have in mind?

  • @Unicorn_queen84
    @Unicorn_queen84 3 місяці тому +1

    My problem is I use this to try and add random choices but it only lets me have one word as an option, if I use more words it only shows the last word in the groups of words I add. It’s frustrating as the api I had for nightbot no longer works and I want these commands for streamelents

    • @Phlare
      @Phlare  3 місяці тому

      Can you send me an example of what you’re trying to do? Discord might be an easier place for copy/paste

    • @Unicorn_queen84
      @Unicorn_queen84 3 місяці тому +1

      This is what I have been trying
      !command add !jump ${sender} was caught jumping on ${random.chatter} and ${random.pick 'had no clothes on' 'stuck a finger in their ear' 'squished them flat’ 'licked their face'}.

    • @Phlare
      @Phlare  3 місяці тому

      I found a mismatched quotation mark... copy/paste from youtube into nightbot/streamelements can sometimes mess with quote marks.
      this worked fine for me, but i had to delete and re-type each of the single quote marks
      ${sender} was caught jumping on ${random.chatter} and ${random.pick 'had no clothes on' 'stuck a finger in their ear' 'squished them flat' 'licked their face'}.

    • @Unicorn_queen84
      @Unicorn_queen84 3 місяці тому +1

      @@Phlareare yes I noticed the quotation mark.. after much mucking around I FINALLY have it working. Thank you !

    • @Phlare
      @Phlare  3 місяці тому

      ​@@Unicorn_queen84 Glad it's sorted!
      Something about copying and pasting stuff with quotation marks from one program/browser/tab to another can always cause trouble. It's one of the first things i check these days since it comes up so often.

  • @manbearperson7060
    @manbearperson7060 Місяць тому +1

    keeps saying this in my chat '$ Loots the $ and finds $'

    • @manbearperson7060
      @manbearperson7060 Місяць тому +1

      Fixed it

    • @Phlare
      @Phlare  Місяць тому

      Sounds like a copy paste issue. Sometimes the special characters like parentheses or quotes or brackets get corrupted for people when copying and pasting for whatever reason.
      Can be useful to try retyping those characters.

    • @Phlare
      @Phlare  Місяць тому

      Yay! What was the issue?