Closed Apexal closed 7 years ago
server.text_channels.select { |t| t.association == :course }.each do |t| old = t.topic.split(' | ')[0] course = Regit::Database::Course.find_by_text_channel_id(t.id) t.topic = “#{old} | http://moodle.regis.org/course/view.php?id=#{course.id}” end
Thanks !irb!
!irb