This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const parsePayload = (payload, intentName) => { | |
let commands | |
const actions = [] as any | |
const conditionalSplit = payload.split("}} ").map(r => r.trim()).filter(r => r !== "") | |
if (conditionalSplit.length == 1) { | |
commands = payload.split(";").map(r => r.trim()).filter(r => r !== "") | |
commands.forEach(cmd => actions.push(handleCommand(cmd, intentName))) | |
} else if (conditionalSplit.length > 1) { | |
conditionalSplit.forEach(c => { | |
if (c.startsWith("if") || c.startsWith("else if")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const url = "https://privateboturl" | |
const token = "uniqueUserId" | |
const onClose = () => { | |
//Callback de fechamento do Chat | |
} | |
//Habilita input de áudio e configura o UserId | |
const runFirst = ` | |
window.supportsAudioRecording = true; | |
setPid("${token}"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys, smtplib, getpass, time | |
try: | |
W = '\033[0m' | |
R = '\033[31m' | |
G = '\033[32m' | |
print( R + 'You must ENABLE 2Step Verification in your Google Account AND use a App Password to use this') | |
print( R + '\nhttps://myaccount.google.com/security') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<add name="Access-Control-Allow-Origin" value="*" /> | |
<add name="Access-Control-Allow-Headers" value="Accept,Content-Type,X-Requested-With" /> | |
</customHeaders> | |
</httpProtocol> | |
</system.webServer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###Change/Add the following Lines | |
chrome_options = Options() | |
chrome_options.add_argument('--dns-prefetch-disable') | |
chrome_options.add_argument('--no-sandbox') | |
chrome_options.add_argument('--lang=en-US') | |
chrome_options.add_experimental_option('prefs', {'intl.accept_languages': 'en-US'}) | |
self.browser = webdriver.Chrome('./assets/chromedriver', chrome_options=chrome_options) |