Hello lads! How difficult is it to import information to file, and put into irc. reddit / irc ---------------------------------------------------------------------- officialwitness · 2017-03-29 08:27 Hello fellow irc users. I'm using a "bot" on my mediacomputer in my channels that responds to certain inputs for example If anyone types !commands It responds with list of commands using this string; on *:TEXT:!commands:#channel: { msg $chan 5!reddit1. 5!about1. 5!admin1. 5!help1. } I'm interested in putting this bot in one of my other sports channel. I have a channel for New York Rangers fans #nyrangers, where I luckily have a few US mates that helps update the channel and keep discussions going. However, I want to implement so that whenever someone types for instance !result , It will import a line from a text file listing the information. How hard is it to automaticaly save this information from the web? If not possible, is it possible to use some sort of cloudbased texteditor, so that I can let other mods edit the file, that the bot is importing? Best regards, ---------------------------------------------------------------------- damiankw · 2017-03-29 11:55 I don't know what you're using the word 'importing' for, I don't think you're importing, you're just reading a text file to the channel, right? In any case, with mIRC you can either read from a local .txt file and spit out a line, or you can download content from a website and read a line of that to the channel, the second option may be a LOT harder though, because you'd have to first create the downloader. Anyway, when you do !result, what part of the text file do you need to push to the channel? Is it just a RANDOM line? Is it a specific line, like the third one? Is it the last one? Is it a line that starts with a specific piece of text like 'Result: ...'? You will need to know at least how to find the information if you hope to push it to the channel. Next, what you're trying to achieve is simple, just look up how to use $read(), with this you can do all of the above: - Read a random line? $read(textfile.txt) - Read a specific line? $read(textfile.txt, 3) - Read the last line? $read(textfile.txt, $lines(textfile.txt)) - Read a line that starts with 'Result:': $read(textfile.txt, w, Result:*) If you /help $read you'll find out everything you can do with it :) ---------------------------------------------------------------------- officialwitness · 2017-03-29 17:29 Hey, Thanks for a response. When I mentioned import I basicly ment recieving information from a file / or the web to a txt while that mircs reads and spits out (import / export) sounds like a accurate statement, but could just be me =) I want for instance find the latest results on the web, and make it automatic but maybe thats hard. Worst case scenario, I want to make a shared file, that my mods can change. So basicly first mod available edits the file. Which will change the outcome of the !results command. Otherwise, I'll just edit, the text file manually, but yeah, lame if I happend to be 7 hours late due to timezone e.tc ---------------------------------------------------------------------- officialwitness · 2017-03-29 17:30 for exempel Siri in iPhone gets the latest results when you ask her. "whats the latest results for the new york rangers" then she reply's with it, so I was thinking maybe there is a public API to use for it but hmm.. maybe its tons of shits harder than I thought.