woodruffw / yossarian-bot

An IRC bot with a bunch of features.
Other
31 stars 21 forks source link

Fix `YoutubeSearch` #178

Closed woodruffw closed 1 year ago

woodruffw commented 1 year ago

Looks like I broke it:

=nil>>: #‹Thread: 0x00007fee50d3530 /home/william/yossarian-bot/vendor/bundle/ruby/3.2.0/gems/grinch-1.1.0/lib/cinch/handler.rb:94 run>
1 in total.
[2023/07/19 12:12:27.265] !! /home/william/yossarian-bot/plugins/youtube_search.r:34:in 'youtube_search': undefined method 'encode' for URI: Module (NoMethodError)
[2023/07/19 12:12:27.2651
It/home/william/yossarian-bot/vendor/bundle/ruby/3.2.0/gems/grinch-1.1.0/lib/cinch/plugin.rb:414:in'call'
[2023/07/19 12:12:27.265]
It/home/william/yossarian-bot/vendor/bundle/ruby/3.2.0/gems/grinch-1.1.0/lib/cinch/plugin.rb:414:in 'block (2 levels) in _register_mat
chers'
[2023/07/19 12:12:27.265] !!
At/home/william/yossarian-bot/vendor/bundle/ruby/3.2.0/gems/grinch-1.1.0/lib/cinch/handler.rb:101:in'blockincall'
Ckath commented 1 year ago

it seems its possibly everything except !crypto now? image

edit: basically all these https://github.com/search?q=repo%3Awoodruffw%2Fyossarian-bot%20encode&type=code so really have to fix URI.encode not just youtube