require 'discordrb' require 'date' module MiscModule extend Discordrb::Commands::CommandContainer command :days do |event, *message| puts message[0] providedDate = Date.strptime(message[0], '%d/%m/%Y') dateToday = Date.today days = (providedDate - dateToday).to_i event.channel.send_message("#{days} days left until #{message[0]}") end end