SmileyBot 13 Posted June 3, 2023 Report Share Posted June 3, 2023 copy and paste into ubot Node view Install Python Plugin (ExecutePython.dll) to ubot Update %appdata% ubot \ python \ with newer version comment("Create a new file and add the below into the file and save the file as batch_create_sms.bat @echo off set TWILIO_ACCOUNT_SID=AC325b0e set TWILIO_AUTH_TOKEN=77ea6 \"D:\\Python\\python.exe\" \"D:\\batch_create_sms.py\"") SEND_SMS() define SEND_SMS { set(#create_python_sms,"from twilio.rest import Client # Find your Account SID and Auth Token at twilio.com/console # and set the environment variables. See http://twil.io/secure account_sid = \"AC3b0e\" auth_token = \"775ea6\" client = Client(account_sid, auth_token) message = client.messages.create( body=\'New Boost Booking - {#account_fname} {#account_lname} @ {#booking_time}, {#booking_date}, {#occasion}\', from_=\'+691\', to=\'+6383\' ) print(message.sid)","Global") save to file("D:\\batch_create_sms.py",#create_python_sms) shell("D:\\batch_create_sms.bat") } Quote Link to post Share on other sites
Seth Turin 223 Posted June 8, 2023 Report Share Posted June 8, 2023 Great stuff! But you can run python without a plugin in the Dev and Enterprise Editions. Quote Link to post Share on other sites
SmileyBot 13 Posted June 9, 2023 Author Report Share Posted June 9, 2023 Hi Seth, I have developer was aware of this but was having trouble with it executing of code Can you please show an example code Thanks Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.