Skip to content

Instantly share code, notes, and snippets.

@Saku35
Created July 24, 2020 05:40
Show Gist options
  • Save Saku35/39aceedfa4dc5e12be30f74bf26a67c7 to your computer and use it in GitHub Desktop.
Save Saku35/39aceedfa4dc5e12be30f74bf26a67c7 to your computer and use it in GitHub Desktop.
rubyToDiscord
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