Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /newtab:
- trigger:
- open chrome browser named "Test1"
- set {_browser} to browser named "Test1"
- go to url "https://discordapp.com/invite/0lx4QhQvwelCZbEX" in {_browser}
- wait 5 seconds
- set {_LoginButton} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[2]/div[5]/div/form/footer/a" in {_browser}
- if {_LoginButton} is not set:
- message "Could not find login button"
- stop
- click {_LoginButton}
- set {_EmailBar} to element found by xpath "//*[@id=""register-email""]" in {_browser}
- set {_PasswordBar} to element found by xpath "//*[@id=""register-password""]" in {_browser}
- set {_LoginButton} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[5]/div/form/button" in {_browser}
- click {_EmailBar}
- send keys "MY-EMAIL-ADDRESS" to {_EmailBar}
- click {_PasswordBar}
- send keys "MY-PASSWORD" to {_PasswordBar}
- click {_LoginButton}
- wait 5 seconds
- message "%{_browser}%" to console
- set {_someStupidPopup} to element found by xpath "//*[@id=""app-mount""]/div/span[2]/div[2]/div/div/div[1]/button" in {_browser}
- if {_someStupidPopup} exists:
- click {_someStupidPopup}
- wait 1 second
- set {_OffTopic} to element found by class name "channel-name" in {_browsr}
- click {_OffTopic}
- wait 0.1 second
- set {_chatBar} to element found by xpath "//*[@id=""app-mount""]/div/div[2]/div[2]/section/div[3]/div[2]/div[1]/form/div/div/textarea" in {_browser}
- send keys "Test %nl%" to {_chatbar}
- message "Sent message" to console
- wait 0.1 second
- close browser {_browser}
- command /random [<text>] [<text>] [<text>] [<text>]:
- trigger:
- set {_things::1} to argument 1
- set {_things::2} to argument 2
- set {_things::3} to argument 3
- set {_things::4} to argument 4
- set {_this} to a random object out of {_things::*}
- message "%{_this}%"
- command /goto <text>:
- trigger:
- go to url "%argument 1%" in browser named "test"
- command /close <text>:
- trigger:
- close browser browser named "%argument 1%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement