• Ideas on sending out daily ANSIs

    From Adept@21:2/108 to All on Fri Aug 7 23:16:34 2020
    Just to check before I bother to write things, but do people have a good way for automatically adding something to their ANSIs that are posted with automation? Or general thoughts on posting generated ANSIs?

    I was thinking that I could post my calendar ANSIs as a BBS ad, adding a
    line at top and/or bottom with "telnet.stormbbs.com" or something, and
    figured I'd do a Mystic Python script to do that, call my calendar script to get the correct ANSI, and write out that line and the ANSI to calendar.ans
    (or something), and use mutil to post that output.

    But I know people have done this sort of thing before, and wondered if anyone had any better ideas.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Storm BBS (21:2/108)
  • From Al@21:4/106 to Adept on Fri Aug 7 23:05:36 2020
    Hello Adept,

    Just to check before I bother to write things, but do people have a
    good way for automatically adding something to their ANSIs that are
    posted with automation? Or general thoughts on posting generated
    ANSIs?

    You could use cat or something similar to combine your input files into a single file to import.

    I was thinking that I could post my calendar ANSIs as a BBS ad, adding
    a line at top and/or bottom with "telnet.stormbbs.com" or something,
    and figured I'd do a Mystic Python script to do that, call my calendar script to get the correct ANSI, and write out that line and the ANSI
    to calendar.ans (or something), and use mutil to post that output.

    Mystic does some kind of magic when you import an ansi into a message when you are online. It uses some kind of block mode (not sure that's the correct term) when it saves the message so lines are not longer that 79 or 80 characters.

    That doesn't happen with mutil. Lines longer than 79 or 80 characters will be truncated at that point. So be sure that your input file is formatted within those limits and you should have no problem.

    I have never tried it but I wonder if the ansi editor in ./mystic -cfg will save an ansi in that format.

    But I know people have done this sort of thing before, and wondered if anyone had any better ideas.

    Not me. I have no ansi art ability. I can appreciate but not create ansi art. I think that thedraw (and possibly other editors) can save an ansi in this format but I'm not sure since I don't have any ansi files so it's off my radar.

    Ttyl :-),
    Al

    --- GoldED+/LNX
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From Adept@21:2/108 to Al on Sat Aug 8 18:38:52 2020
    You could use cat or something similar to combine your input files into a single file to import.

    Ah, okay, so header file + chosen daily ANSI file in a script.

    That doesn't happen with mutil. Lines longer than 79 or 80 characters
    will be truncated at that point. So be sure that your input file is formatted within those limits and you should have no problem.

    Hmm. That does sound like something that I'll try, and then see how it blows up.

    Not me. I have no ansi art ability. I can appreciate but not create ansi

    Thanks for the advice anyway. And I do tend to figure that art, in general,
    is more skill than talent, but that's probably true of a lot of things.

    Even still, I don't consider myself particularly artistic or creative. But if
    I think about something, I can kinda-sorta get an image in my mind, and
    slowly make the thing kinda-sorta look like that image.

    But it requires making a lot of terrible art as part of that process.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Storm BBS (21:2/108)
  • From Alpha@21:4/158 to Adept on Sat Aug 8 09:25:56 2020
    Just to check before I bother to write things, but do people have a good way for automatically adding something to their ANSIs that are posted
    with automation? Or general thoughts on posting generated ANSIs?

    I use python to do this. I have 2 'mods' (really just python scripts) that
    can add ANSI to an existing ANSI file -- whether it's a header/footer, or writing something in a particular X/Y location.

    For me, I use the python script to grab data from an external API (news) and then format/write the headlines with an ANSI header and footer. It runs as a Mystic event.


    |14▐ |07Alpha
    |14▄▌ |13Card & Claw BBS
    |06▐ |05cardandclaw.com:8888

    --- Mystic BBS v1.12 A46 2020/04/26 (Linux/64)
    * Origin: Card & Claw BBS (21:4/158)
  • From Alpha@21:4/158 to Adept on Sat Aug 8 09:28:18 2020
    Just to check before I bother to write things, but do people have a good way for automatically adding something to their ANSIs that are posted
    with automation? Or general thoughts on posting generated ANSIs?

    Here's a link to the code I use -- it's not perfect, but shows how I tackle it...

    https://github.com/robbiew/mystic-external-api-examples


    |14▐ |07Alpha
    |14▄▌ |13Card & Claw BBS
    |06▐ |05cardandclaw.com:8888

    --- Mystic BBS v1.12 A46 2020/04/26 (Linux/64)
    * Origin: Card & Claw BBS (21:4/158)
  • From Adept@21:2/108 to Alpha on Sat Aug 8 18:49:26 2020
    https://github.com/robbiew/mystic-external-api-examples

    Interesting! Thank you for your explanation on how you did it, and it sounds along the lines of what I was thinking, so hopefully looking at your code
    will help me get the syntax correct more quickly.

    --- Mystic BBS v1.12 A45 2020/02/18 (Linux/64)
    * Origin: Storm BBS (21:2/108)
  • From paulie420@21:2/150 to Alpha on Sat Aug 8 12:17:11 2020
    I use python to do this. I have 2 'mods' (really just python scripts)
    that can add ANSI to an existing ANSI file -- whether it's a header/footer, or writing something in a particular X/Y location.

    For me, I use the python script to grab data from an external API (news) and then format/write the headlines with an ANSI header and footer. It runs as a Mystic event.

    So I've been trying to learn SOME MPL or python in order to create mods that are exactly the data that I want... The CNN new mod is great; the FOX one always messes up because of the ascii characters that FOX uses... however, I really want to get daily hacker news stories into a (bigger list... longer
    than the CNN one page mod) file to display on my bbs... its really for ME;
    but I'll always share if i come up with anything good.

    Do you possibly have any scripts, MPL, or info that you might share with me
    as I try to learn how to do it myself? I certainly would be appreciative. My email is paulie420@gmail.com ...

    w00t w00t



    |07p|15AULIE|1142|07o
    |08.........

    --- Mystic BBS v1.12 A45 2020/02/18 (Raspberry Pi/32)
    * Origin: American Pi BBS (21:2/150)