• Synchronet API Documentation?

    From Jagossel@VERT/DISCREAL to All on Sun May 5 19:21:53 2019
    Would anyone have a link to some sort of API or SDK documentation? I have anãidea for a project in Synchronet for an ad bot. I think it might be possible toãdo it in JavaScript.ããThank you in advance!ãã-jagãCode it, Script it, Automate it!ãã---ã þ Synchronet þ -- You've arrived! Disconnected Reality BBS -- discreal.ddns.netã
  • From echicken@VERT/ECBBS to Jagossel on Sun May 5 19:52:55 2019
    Re: Synchronet API Documentation?ã By: Jagossel to All on Sun May 05 2019 19:21:53ãã Ja> Would anyone have a link to some sort of API or SDK documentation? I haveã Ja> an idea for a project in Synchronet for an ad bot. I think it might beã Ja> possible to do it in JavaScript.ããhttp://synchro.net/docs/jsobjs.htmlãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.com - 416-425-5435ã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From Nightfox@VERT/DIGDIST to Jagossel on Sun May 5 20:49:33 2019
    Re: Synchronet API Documentation?ã By: Jagossel to All on Sun May 05 2019 07:21 pmãã Ja> Would anyone have a link to some sort of API or SDK documentation? I haveã Ja> an idea for a project in Synchronet for an ad bot. I think it might beã Ja> possible to do it in JavaScript.ããGeneral JavaScript information:ãhttp://wiki.synchro.net/custom:javascriptããSynchronet JavaScript API documentation:ãhttp://www.synchro.net/docs/jsobjs.htmlããGeneral Baja information:ãhttp://wiki.synchro.net/util:bajaããSynchronet Baja API documentation:ãhttp://synchro.net/docs/baja.htmlããNightfoxãã---ã þ Synchronet þ Digital Distortion: digitaldistortionbbs.comã
  • From Mortifis@VERT/ALLEYCAT to echicken on Sat Jul 13 13:16:05 2019
    Re: Synchronet API Documentation?ã > By: Jagossel to All on Sun May 05 2019 19:21:53ãã > Ja> Would anyone have a link to some sort of API or SDK documentation? Iã > Ja> have an idea for a project in Synchronet for an ad bot. I think itã > Ja> might be possible to do it in JavaScript.ãã > http://synchro.net/docs/jsobjs.htmlããuser.security.restrictions (and exemptions) are integers, so how would oneãchange say restrictions A CD F N P to just CD? I am not sure of the integerãrepresentations of exemptions/restrictions.ãããããã ããWhen life gets tough, drop a gear and disappear!ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
  • From Digital Man@VERT to Mortifis on Sat Jul 13 14:00:07 2019
    Re: Re: Synchronet API Documentation?ã By: Mortifis to echicken on Sat Jul 13 2019 01:16 pmãã > > Re: Synchronet API Documentation?ã > > By: Jagossel to All on Sun May 05 2019 19:21:53ã >ã > > Ja> Would anyone have a link to some sort of API or SDK documentation? Iã > > Ja> have an idea for a project in Synchronet for an ad bot. I think itã > > Ja> might be possible to do it in JavaScript.ã >ã > > http://synchro.net/docs/jsobjs.htmlã >ã > user.security.restrictions (and exemptions) are integers, so how would oneã > change say restrictions A CD F N P to just CD? I am not sure of theã > integer representations of exemptions/restrictions.ããThere are lot of examples in exec/*.js, but most of them are setting or clearing a single flag at a time. To set (or clear) multiple flags at a time, use the | bit-wise operator:ãã user.security.restrictions = UFLAG_C | UFLAG_D;ãã digital manããSynchronet "Real Fact" #26:ãThe Synchronet Web Server was written predominantly by Stephen Hurd (Deuce).ãNorco, CA WX: 89.7øF, 45.0% humidity, 10 mph ENE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mortifis@VERT/ALLEYCAT to Digital Man on Sat Jul 13 18:45:38 2019
    Re: Re: Synchronet API Documentation?ã > By: Mortifis to echicken on Sat Jul 13 2019 01:16 pmãã > > > Re: Synchronet API Documentation?ã > > > By: Jagossel to All on Sun May 05 2019 19:21:53ãã > > > Ja> Would anyone have a link to some sort of API or SDKã > > > Ja> documentation? I have an idea for a project in Synchronet for anã > > > Ja> ad bot. I think it might be possible to do it in JavaScript.ãã > > > http://synchro.net/docs/jsobjs.htmlãã > > user.security.restrictions (and exemptions) are integers, so how wouldã > > one change say restrictions A CD F N P to just CD? I am not sure ofã > > the integer representations of exemptions/restrictions.ãã > There are lot of examples in exec/*.js, but most of them are setting orã > clearing a single flag at a time. To set (or clear) multiple flags at aã > time, use the | bit-wise operator:ãã > user.security.restrictions = UFLAG_C | UFLAG_D;ãã > digital manããexcellent, thank you!ãã ããWhen life gets tough, drop a gear and disappear!ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
  • From Mortifis@VERT/ALLEYCAT to Digital Man on Sat Jul 13 18:49:16 2019
    Re: Re: Synchronet API Documentation?ã > By: Mortifis to echicken on Sat Jul 13 2019 01:16 pmãã > > > Re: Synchronet API Documentation?ã > > > By: Jagossel to All on Sun May 05 2019 19:21:53ãã > > > Ja> Would anyone have a link to some sort of API or SDKã > > > Ja> documentation? I have an idea for a project in Synchronet for anã > > > Ja> ad bot. I think it might be possible to do it in JavaScript.ãã > > > http://synchro.net/docs/jsobjs.htmlãã > > user.security.restrictions (and exemptions) are integers, so how wouldã > > one change say restrictions A CD F N P to just CD? I am not sure ofã > > the integer representations of exemptions/restrictions.ãã > There are lot of examples in exec/*.js, but most of them are setting orã > clearing a single flag at a time. To set (or clear) multiple flags at aã > time, use the | bit-wise operator:ãã > user.security.restrictions = UFLAG_C | UFLAG_D;ããIs there an easy way to clear all flags for a user account with noãrestrictions? or a var NEW_UFLAG_SET = ... ?ããã ããWhen life gets tough, drop a gear and disappear!ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
  • From Digital Man@VERT to Mortifis on Sat Jul 13 16:23:30 2019
    Re: Re: Synchronet API Documentation?ã By: Mortifis to Digital Man on Sat Jul 13 2019 06:49 pmãã > > Re: Re: Synchronet API Documentation?ã > > By: Mortifis to echicken on Sat Jul 13 2019 01:16 pmã >ã > > > > Re: Synchronet API Documentation?ã > > > > By: Jagossel to All on Sun May 05 2019 19:21:53ã >ã > > > > Ja> Would anyone have a link to some sort of API or SDKã > > > > Ja> documentation? I have an idea for a project in Synchronet forã > > > > Ja> an ad bot. I think it might be possible to do it inã > > > > Ja> JavaScript.ã >ã > > > > http://synchro.net/docs/jsobjs.htmlã >ã > > > user.security.restrictions (and exemptions) are integers, so how wouldã > > > one change say restrictions A CD F N P to just CD? I am not sure ofã > > > the integer representations of exemptions/restrictions.ã >ã > > There are lot of examples in exec/*.js, but most of them are setting orã > > clearing a single flag at a time. To set (or clear) multiple flags at aã > > time, use the | bit-wise operator:ã >ã > > user.security.restrictions = UFLAG_C | UFLAG_D;ã >ã > Is there an easy way to clear all flags for a user account with noã > restrictions? or a var NEW_UFLAG_SET = ... ?ããTo set an account to have no restrictions,ã user.security.restrictions = 0;ããI'm not sure what you're implying by the NEW_UFLAG_SET var.ãã digital manããSynchronet/BBS Terminology Definition #58:ãR0DENT = Derogatory reference to a young BBS user of the 1990'sãNorco, CA WX: 88.2øF, 44.0% humidity, 16 mph NE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Mortifis@VERT/ALLEYCAT to Digital Man on Sat Jul 13 22:33:38 2019
    Re: Re: Synchronet API Documentation?ã > By: Mortifis to Digital Man on Sat Jul 13 2019 06:49 pmãã > > > Re: Re: Synchronet API Documentation?ã > > > By: Mortifis to echicken on Sat Jul 13 2019 01:16 pmãã > > > > > Re: Synchronet API Documentation?ã > > > > > By: Jagossel to All on Sun May 05 2019 19:21:53ãã > > > > > Ja> Would anyone have a link to some sort of API or SDKã > > > > > Ja> documentation? I have an idea for a project in Synchronetã > > > > > Ja> for an ad bot. I think it might be possible to do it inã > > > > > Ja> JavaScript.ãã > > > > > http://synchro.net/docs/jsobjs.htmlãã > > > > user.security.restrictions (and exemptions) are integers, so howã > > > > would one change say restrictions A CD F N P to just CD? I amã > > > > not sure of the integer representations of exemptions/restrictions.ãã > > > There are lot of examples in exec/*.js, but most of them are settingã > > > or clearing a single flag at a time. To set (or clear) multiple flagsã > > > at a time, use the | bit-wise operator:ãã > > > user.security.restrictions = UFLAG_C | UFLAG_D;ãã > > Is there an easy way to clear all flags for a user account with noã > > restrictions? or a var NEW_UFLAG_SET = ... ?ãã > To set an account to have no restrictions,ã > user.security.restrictions = 0;ãã > I'm not sure what you're implying by the NEW_UFLAG_SET var.ãã > digital manããI am modifying emailval.js ... user.security.restrictions = 0; is good toãclear all restrictions, thank you. Is there an easy way to declare a flag setãvariable (I called it NEW_UFLAG_SET as an example) similar to NEW_UFLAG_SET =ã"UFLAG_C | UFLAG_D | UFLAG_E ... etc"; ?ãã ããWhen life gets tough, drop a gear and disappear!ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã
  • From echicken@VERT/ECBBS to Mortifis on Sat Jul 13 23:52:28 2019
    Re: Re: Synchronet API Documentation?ã By: Mortifis to Digital Man on Sat Jul 13 2019 22:33:38ãã Mo> clear all restrictions, thank you. Is there an easy way to declare a flagã Mo> set variable (I called it NEW_UFLAG_SET as an example) similar toã Mo> NEW_UFLAG_SET = "UFLAG_C | UFLAG_D | UFLAG_E ... etc"; ?ããIf your goal is to do something like:ãã user.security.restrictions = NEW_UFLAG_SET;ããthen your example is close to what you'd want:ãã const NEW_UFLAG_SET = UFLAG_C|UFLAG_D|UFLAG_E; // And so onããNote that you don't want quotes around the right operand, which would make it aãstring instead of a bunch of numbers that you're OR-ing together.ããThis is kind of a flyswatter approach, which is probably what you want anyway. ãIf you don't want to overwrite the user's entire flag set, it's also possibleãto add a single flag:ãã user.security.restrictions |= UFLAG_C;ããor unset a single flag:ãã user.security.restrictions &=~ UFLAG_C;ããVarious other things are possible. For some information about these types ofãoperations:ããhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Bitãwise_Operatorsãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.comã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã
  • From Mortifis@VERT/ALLEYCAT to echicken on Sun Jul 14 11:37:09 2019
    Re: Re: Synchronet API Documentation?ã > By: Mortifis to Digital Man on Sat Jul 13 2019 22:33:38ãã > Mo> clear all restrictions, thank you. Is there an easy way to declare aã > Mo> flag set variable (I called it NEW_UFLAG_SET as an example) similar toã > Mo> NEW_UFLAG_SET = "UFLAG_C | UFLAG_D | UFLAG_E ... etc"; ?ãã > If your goal is to do something like:ãã > user.security.restrictions = NEW_UFLAG_SET;ãã > then your example is close to what you'd want:ãã > const NEW_UFLAG_SET = UFLAG_C|UFLAG_D|UFLAG_E; // And so onãã > Note that you don't want quotes around the right operand, which would makeã > it a string instead of a bunch of numbers that you're OR-ing together.ãã > This is kind of a flyswatter approach, which is probably what you wantã > anyway. If you don't want to overwrite the user's entire flag set, it'sã > also possible to add a single flag:ãã > user.security.restrictions |= UFLAG_C;ãã > or unset a single flag:ãã > user.security.restrictions &=~ UFLAG_C;ãããExcellent; very helpful, thank you!ã ããWhen life gets tough, drop a gear and disappear!ãã---ã þ Synchronet þ AlleyCat! BBS - http://alleycat.synchro.net:81ã