mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2014
Posts: 19
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Apr 2014
Posts: 19
Like, i wanna make a !quotes command. the command would be used like "!quotes NICKNAME" and it'd read a file and chose a random quote from NICKNAME. I have no clue how to go about doing this.

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
You need to check an ini file with $ini for a number with quotes that are under the section $nick and then add a random a number from 1 to max of those, using $rand. Then you gotta use $ini again to get the value from said randomed number and use that to message whatever it is you wish to message, I assume channel.

The help files will come in handy now that you know what you're looking for.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Apr 2014
Posts: 19
D
Pikka bird
OP Offline
Pikka bird
D
Joined: Apr 2014
Posts: 19
Thanks. that should point me in the right direction.


Link Copied to Clipboard