Sha256: 84c96ae60e7497e18e30e4051c019f40c7f93677cae14f5811a41c25f3382411
Contents?: true
Size: 563 Bytes
Versions: 1
Compression:
Stored size: 563 Bytes
Contents
require 'pry' class QwtfDiscordBotServer < QwtfDiscordBot def run bot = Discordrb::Commands::CommandBot.new( token: TOKEN, client_id: CLIENT_ID, prefix: '!' ) bot.command :server do |event, *args| hostname = args.first || endpoint qstat_request = QstatRequest.new(hostname) message = qstat_request.server_summary embed = qstat_request.to_embed if embed event.channel.send_embed(message, embed) else event.channel.send_message(message) end end bot.run end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
qwtf_discord_bot-1.0.0 | lib/qwtf_discord_bot/qwtf_discord_bot_server.rb |