View Full Version : ;krakii script
Fallen
03-22-2015, 06:07 PM
This is one of SpiffyJr's, for reference.
How hard would it be to modify this script so that it uses GSwiki rather than the (now defunct) krakiipedia to reference information? I loved this script and unfortunately now it's completely useless.
Soulance
03-22-2015, 06:14 PM
I've been trying to mess with this one by changing around the handles for where the website is directed but I don't get very far before it starts arguing with me. I was hoping I could just change the default location but it seems there's more to it than I know what to do with it. Hope someone can help with it, I miss the ;krakii easy lookup.
Fallen
03-22-2015, 06:18 PM
I've been trying to mess with this one by changing around the handles for where the website is directed but I don't get very far before it starts arguing with me. I was hoping I could just change the default location but it seems there's more to it than I know what to do with it. Hope someone can help with it, I miss the ;krakii easy lookup.
I had a feeling it would be harder than that, but good on you for giving it a try.
Donquix
03-22-2015, 07:46 PM
Looks like http://gswiki.play.net forces redirect to https://gswiki.play.net , the former giving a successful 302 redirect. since it's forcing to SSL that changes things a bit and the script would need a bit more work than just find/replace of krakii to wiki URLs
Donquix
03-22-2015, 08:31 PM
I just uploaded ;gswiki to the repo
all of spiffy's code to clean up and format the pages, but updated to use the gswiki URI's and using net/http from ruby now instead of the socket connection so SSL isn't a headache.
looks like it's working.
Allereli
03-22-2015, 08:37 PM
do you have to be on the most recent Lich version?
>wiki ticket (I aliased it)
--- Exception: undefined method `use_ssl=' for #<Net::HTTP gswiki.play.net:443 open=false>
gswiki:92:in `start_script'
Donquix
03-22-2015, 08:43 PM
i do, let me take a look. fucking ruby :D
Donquix
03-22-2015, 08:46 PM
try redownloading and trying again, not sure if it will work, might get the same error or an import error at the start.
Allereli
03-22-2015, 08:52 PM
awesome, it works, thanks
Donquix
03-22-2015, 08:55 PM
Cool beans.
Fallen
03-22-2015, 09:00 PM
NICE Donquix.
Awesome that you took the time.
Allereli
03-22-2015, 09:05 PM
updated the wiki help page to steer people towards it
Fallen
03-22-2015, 09:57 PM
Not having luck on my end.
s>;repos info gswiki
--- Lich: repository active.
file size last update author DLs rating
---------- ---- ------------------ ------- --- ------
gswiki.lic 6.1k 2015-03-22 8:45pm Donquix 4
available versions: 1.1.1, 2.0.0
Browse gswiki! What else could you want?
~ SpiffyJr, Tillmen, Donquix
author: spiffyjr and friends!
name: gswiki
tags: information
version: 2.0.0
--- Lich: repository has exited.
>;repos download gswiki
--- Lich: repository active.
[repository: downloading gswiki.lic in 3 seconds... (;k repository to cancel)]
[repository: done]
--- Lich: repository has exited.
>;trust gswiki
--- Lich: 'gswiki' is now a trusted script.
>;gswiki help
--- Lich: error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:921:in `connect'
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:921:in `block in connect'
>;gswiki armor
--- Lich: error: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:921:in `connect'
C:/Ruby200/lib/ruby/2.0.0/net/http.rb:921:in `block in connect'
Donquix
03-22-2015, 10:24 PM
that seems weird. working here on new ruby, and alleri was working on old ruby. there's no error with their SSL cert that i can see, so that's odd.
i just updated w/ a change that will disable SSL verification. give that a try.
Fallen
03-22-2015, 10:31 PM
That fixed it for me. Thanks again, Donquix.
Donquix
03-22-2015, 10:38 PM
Cool, glad it's working.
Soulance
03-23-2015, 01:15 PM
Excellent! Thanks for fixing it. Worked great when I tried it out earlier.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.