mIRC Home    About    Download    Register    News    Help

Print Thread
#261377 19/09/17 01:25 PM
Joined: Sep 2017
Posts: 1
F
freddie Offline OP
Mostly harmless
OP Offline
Mostly harmless
F
Joined: Sep 2017
Posts: 1
After 15 years, I dusted off a trivia script and restarted my trivia channel. Problem is that all my questions are more than 15 years old.
So I want to give players the opportunity to send in their own questions and answers through the irc channel.
Anyone who can help me out with this?
Users should use !addquestion {their question + answer} And that should be written in a text file on my computer, if possible with the inclusion of their nickname before the question
Running mirc on windows 10

Joined: Aug 2016
Posts: 36
Ameglian cow
Offline
Ameglian cow
Joined: Aug 2016
Posts: 36
Code:
on *:TEXT:!addquestion*:#: { write questions.txt $nick $2- }


Text file will be created if it doesn't exist, otherwise the line will be appended to the end.


Link Copied to Clipboard