mIRC Home    About    Download    Register    News    Help

Print Thread
#257446 09/04/16 09:57 AM
Joined: Apr 2016
Posts: 7
W
Weenig Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Apr 2016
Posts: 7
Heyo

Im looking to make a command like this

!oddshot [insert oddshot here] [text]

and then it saves the oddshot URL with a timestamp and a bit of text, eg. the name of the guy who sent me the oddshot to a .txt file.
i have no idea on how to make it work, and have been browsing the forums unsuccessfully, can you guys help me? laugh

/Weenig

Joined: Apr 2016
Posts: 7
W
Weenig Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
W
Joined: Apr 2016
Posts: 7
-- UPDATE --

I messed around with this one too, but i still cant make it work.. this is what i got so far:

This is the command to write the stuff to the txt file

Code:
on *:TEXT:!oddshotadd *:#: {
if ($nick !isop #) { remote }
/write oddshot.txt $2- $+
msg $chan Added: $2-
}


to get a random oddshot in the chat.
Code:
on *:TEXT:!oddshot:#: {
msg $chan $read(oddshot.txt)
}



//Weenig


Link Copied to Clipboard