Basically, I'd like to do something along the lines of the bot posts I see in the various messages areas, except as either part of the login sequence or as auto created Bulletins.
So I'm guessing the first thing is howw do do you do bot posts?
So I'm guessing the first thing is howw do do you do bot posts?
... Diets are for those who are thick and tired of it.
... Diets are for those who are thick and tired of it.
I resemble that remark... ;)
So I'm guessing the first thing is howw do do you do bot posts?
Mutil has a handy PostTextFiles option you can use to do that.
Make sure your posts are no more than 79 characters wide. Anything
beyond that will get truncated.
So I'm guessing the first thing is howw do do you do bot posts?
I use mutil's PostTextFiles stanza to post weather & horoscopes:
e.g: ./mutil weather.ini
[General]
PostTextFiles = true
[PostTextFiles]
totalfiles = 1
file1_name = weather.txt
file1_baseidx = 125
file1_from = Northern Realms
file1_to = All
file1_subj = Southern Ontario Weather
file1_addr = 1:229/664
file1_delfile = true
I have a bash script that downloads the weather data and strips out the HTML, etc and then posts the data.
So how do you get the data that you use to create them? Or rather from where?
So how do you get the data that you use to create them? Or rather fro where?
I get my weather data from here: https://weather.gc.ca/forecast/public_bulletins_e.html?Bulletin=fpcn11.cwt
You'd of course have to find where to get weather local to your region.
And I get my Horoscope data from here:
https://nypost.com/horoscopes
Basically I just use wget to download the .html file and use grep or sed to cut
out the pieces I need. The weather was easier to than the horoscope
page due to the number of images.
And as Al mentioned, you need to make sure the text is not more than 79 characters wide otherwise Mystic will just cut it off.
Another thing I discovered is that Mystic doesn't like UTF8 text when posting via mutil. I had to figure out how to convert UTF8 text to
CP437 using iconv so that every hyphen or apostrophe didn't come out
weird in the bot post. It was an interesting exercise and I'm glad I got it working. I learned a little more about using linux by going through it, though I'm not sure anyone ever reads them... lol
I had seen that option, just not real sure how to implement it. I'm guessing it posts to whatever message area it's directed to.
Would it also autopost/create Bulletins or the like?
I suppose a conversion to CP437 is a better overall solution.
weird in the bot post. It was an interesting exercise and I'm glad I got it working. I learned a little more about using linux by going through it, though I'm not sure anyone ever reads them... lol
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,056 |
Nodes: | 17 (0 / 17) |
Uptime: | 41:40:35 |
Calls: | 501,039 |
Calls today: | 5 |
Files: | 109,385 |
D/L today: |
1,224 files (1,427M bytes) |
Messages: | 305,175 |