Author Topic: Command that choses randomly 1 word out of 20/50/100.  (Read 1654 times)

0 Members and 1 Guest are viewing this topic.

SoulS

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: iSoulSi
Command that choses randomly 1 word out of 20/50/100.
« on: June 11, 2017, 03:41:37 AM »
Hey together :)

is there a way to set up a command with Deep Bot that chooses a random Word out of 50.
For example:
(cola || beer || wine || water)
Me: !random
DeepBot: beer

Me: !random
DeepBot: wine

Maybe someone can help me out  :D.

Thanks a lot
SoulS
« Last Edit: June 11, 2017, 04:09:25 AM by SoulS »

TheNumbLock

  • Advisor
  • Councilor
  • **
  • Posts: 4776
  • Karma: +137/-5
    • View Profile
  • Twitch Name: TheNumbLock
Re: Command that choses randomly 1 word out of 20/50/100.
« Reply #1 on: June 11, 2017, 11:28:24 AM »
Each new line is considered a random response. ;). But could make 50 text files with a random word in it and use @readfile[Path/To/TextFile/@rand@[1|50].txt] Or even make use of @readfile@ with line numbers. @readfile@[@rand@[2|51],Path/To/TextFile.txt]
Old Name: RepentGamingTV
Twitch: Here

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

SoulS

  • Youngling
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
  • Twitch Name: iSoulSi
Re: Command that choses randomly 1 word out of 20/50/100.
« Reply #2 on: June 11, 2017, 06:11:27 PM »
Thank you @TheNumbLock. Both worked :-)