• Discord Web Hook at login

    From R3c0n #1@126.Wwivnet@11:1/101 to All on Sun Feb 16 18:41:34 2025

    Hi all,

    So I'm working on adding a BBS last caller for my Discord Server. I have the .sh file working and have it working in chains. I can post when complete. The one thing I can't figure out is the best way to execute it at login. I'm using a login.bas file for oneliners made by Eli, and thought I'd add it to that. I noticed I can use a:

    wwiv.command("RunDoorNumberFree:36")

    WWIVbasic command, which I really like because it ensures the .sh file has the needed info from the drop file such as user name and node number.

    However, I can't get it to do anything. It just sort of ignores it.

    Is there a better way to run a .SH script from chains being from within the .bas file as a login event, or ?

    Idea is:
    User logs in
    Script calls Door 36 to run during login process (lilo)
    Door 36 is a discord.sh %U %N %R command line
    discord.sh hooks an ANSI file over to my "last caller" channel
    Login process continues

    Only not working:
    Execution of Door 36 at login
    Excluding sl255.

    Currently have it as
    wwiv.command("RunDoorNumberFree:36")

    in my login.bas script
    my login.bas script is the logon event in wwiv.ini

    Any ideas would be appreciated.



    |08r|153|08c|150|08n



    |08Gh|150|08sts |07in the |15Machine
    |08ghostmachine.ddns.net|15:|08 t|151717 |08ssh|157777


    ÿÿÿÿÿÿÿÿÿÿÿÿÿ
    --- WWIVToss v.1.52
    * Origin: http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)
  • From Rushfan #1@513.Wwivnet@11:1/101 to R3c0n #1 on Tue Feb 18 09:59:24 2025


    Currently have it as
    wwiv.command("RunDoorNumberFree:36")

    I think the format is wwiv.command("RunDoorNumberFree", "36")

    The docs should be improved here.
    Here's the code to run the door: https://github.com/wwivbbs/wwiv/blob/8ed6b69f89faecb5b9947e48c0cd89d98f107bbb/bb s/menus/menucommands.cpp#L148

    Here's where the wwiv.command is implemented: https://github.com/wwivbbs/wwiv/blob/8ed6b69f89faecb5b9947e48c0cd89d98f107bbb/bb s/basic/wwiv.cpp#L50

    It checks for an argument after the command and passes it to menus::interpret_command

    here's the documentation, this would be a good first change project. https://github.com/wwivbbs/docs/blob/main/docs/cfg/wwivbasic.md

    -r


    --- WWIVToss v.1.52
    * Origin: http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)
  • From R3c0n #1@126.Wwivnet@11:1/101 to Rushfan #1 on Tue Feb 18 19:41:27 2025



    I think the format is wwiv.command("RunDoorNumberFree", "36")


    Thank you! I'll give that a shot. I also don't want it to include S255, I'll try to find that in the docs.

    The docs should be improved here.
    Here's the code to run the door: https://github.com/wwivbbs/wwiv/blob/8ed6b69f89faecb5b9947e48c0cd89d98f1 07bbb/bb s/menus/menucommands.cpp#L148

    This link gives me:

    The 8ed6b69f89faecb5b9947e48c0cd89d98f107bbb branch of wwiv does not contain the path b b s/menus/menucommands.cpp.



    Here's where the wwiv.command is implemented: https://github.com/wwivbbs/wwiv/blob/8ed6b69f89faecb5b9947e48c0cd89d98f1 07bbb/bb s/basic/wwiv.cpp#L50


    Same here:

    Cannot find a valid ref in 8ed6b69f89faecb5b9947e48c0cd89d98f1 07bbb/bb s/basic/wwiv.cppM

    It checks for an argument after the command and passes it to menus::interpret_command

    here's the documentation, this would be a good first change project. https://github.com/wwivbbs/docs/blob/main/docs/cfg/wwivbasic.md


    The last link works. I ran into troubles with links off the docs page also, for example the examples link for example.bas files. Something about "for admins only." Fyi.

    |08r|153|08c|150|08n


    |08Gh|150|08sts |07in the |15Machine
    |08ghostmachine.ddns.net|15:|08 t|151717 |08ssh|157777


    p Æ"
    --- WWIVToss v.1.52
    * Origin: http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)
  • From Rushfan #1@513.Wwivnet@11:1/101 to R3c0n #1 on Wed Feb 19 07:44:18 2025


    The last link works. I ran into troubles with links off the docs page
    also, for example the examples link for example.bas files. Something
    about "for admins only." Fyi.

    Not sure why the links got garbled, jsut search for the filename in the git repo. The #LXXX is just the line number


    
    --- WWIVToss v.1.52
    * Origin: http://www.weather-station.org * Bel Air, MD -USA (11:1/101.0)