Created
July 24, 2020 05:40
-
-
Save Saku35/39aceedfa4dc5e12be30f74bf26a67c7 to your computer and use it in GitHub Desktop.
rubyToDiscord
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
require 'net/http' | |
require 'uri' | |
uri = URI('https://discordapp.com/api/webhooks/736094244837654548/V2ayVpXPVeXRxsah3Rk3D2ef0Z94hqzvXVqOTNsUBhU4iPVmb-CoHWHid1iTuvtaup3D') | |
res = Net::HTTP.post_form(uri, {"content": "Hello from Ruby"}) | |
puts res.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment