1
我正在使用Discordrb Api編碼Discord Bot,而且我無法找到一種方法來在我的計算機上共享圖像以進行不一致的聊天,這就是爲什麼我在這裏問你,我希望你能找到回答。如何與Discordrb Api共享圖像?
這裏是我的實際代碼:
bot.command :food do |event|
agent = Mechanize.new
link = 'https://source.unsplash.com/random/featured/?Food'
agent.get(link).save "images/pic.jpg"
end