Class: EziiIntegration
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- EziiIntegration
- Defined in:
- app/models/ezii_integration.rb
Instance Method Summary collapse
Instance Method Details
#start ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/models/ezii_integration.rb', line 7 def start require 'discordrb' bot = Discordrb::Bot.new token: ENV["DISCORD_TOKEN"] bot. do |event| = Net::HTTP.get('ezii-server.herokuapp.com', '/?message=' + CGI.escape(event..content)) event.respond end bot.run end |