mIRC Home    About    Download    Register    News    Help

Print Thread
#255261 03/10/15 10:56 PM
Joined: Jul 2015
Posts: 9
F
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jul 2015
Posts: 9
For my Twitch bot I have this !songrequest command taking requests.
It puts the requests in a .txt file, a !next command gives them to me in the chat and removes the last one from the playlist.

The only problem is that some people are used to other bots that allow Youtube links.
Since I guess there is no easy way to connect mIRC with Youtube and get the title of the video, I am going to need a statement that checks if it is actually a link.

Or maybe if it contains youtube

How do I get that statement?
I tried
Code:
if !($strip($1) == youtube) {

but whenever someone uses youtube.com, it will allow it once again.


Digital Rocker on Twitch TV - Bassist
Joined: Jul 2015
Posts: 9
F
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: Jul 2015
Posts: 9
I got it working, thanks anyway.

Code:
if (youtube !isin $strip($2)) {


Digital Rocker on Twitch TV - Bassist

Link Copied to Clipboard