You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

YukiBot

b/[Completed] CodeWalrus Tools (Web/Android/PC) Started by Yuki, December 17, 2014, 11:03:21 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/Dream of Omnimaga December 22, 2014, 12:18:38 PM
I see EeeZor in the title, which is Eeems-related. Did you use any code of his in this bot and did you ask him permission before re-using it? I don't want to have the same issues as with the recent posts mod.
u/Yuki December 22, 2014, 04:05:54 PM
He strongly encourages the use of his framework for my IRC bot needs, and I did not modified anything other than the config (I update it once in a while) and my own plugins I dumped in the scripts folders using his API, so I guess it's okay? He probably still doesn't know it's used on the CodeWalrus channel, though. Should probably tell him next time I see him. Pretty sure he'd be happy I'm writing code for it anyway.
u/Dream of Omnimaga December 22, 2014, 05:19:25 PM
I guess it probably depends of the license and who made it. Considering you are contribiting to it it should prbly be fine, tho.
u/Yuki December 22, 2014, 11:26:28 PM
The bot now have a search engine! Use .cw <search query>.
u/pimathbrainiac December 22, 2014, 11:53:15 PM
Yay now for ddg search (since the stupid google API is gone)
u/Yuki December 23, 2014, 12:44:47 AM
DDG search is not implemented yet. That one uses MySQL.
u/Dream of Omnimaga December 23, 2014, 04:48:30 AM
Would there be a workaround for Google?
u/Yuki December 23, 2014, 05:19:17 AM
Yep. And it's already implemented. \o/

So far:
.cw: Searches posts on CodeWalrus (uses some obscure function in MySQL)
.google: Google Search (does not use the API!)
.calc: Calculator! (Uses Wolfram Alpha's API)

Also:
<Yuki> .calc the game
<YukiBot> [calc] You just lost.
Last Edit: December 23, 2014, 05:21:07 AM by Juju
u/Dream of Omnimaga December 23, 2014, 12:04:09 PM
Cool to hear. You should probably make a topic elsewhere on the forum that other people can see that documents the Google trick in case other members would like to fix their respective bots. I am curious about what workaround was used as well.
u/pimathbrainiac December 23, 2014, 03:15:23 PM
That's really cool and also document that google trick so I can steal your code but in Java for my bot on ##FRC on Freenode.
u/Yuki December 23, 2014, 05:28:04 PM
In short it just scrapes the webpage for results.

https://github.com/jprichardson/node-google
u/Dream of Omnimaga December 23, 2014, 05:29:13 PM
Wait what does it screen the entire CW website in order to find results? O.O I hope you meant Google page, else the bandwidth usage...
u/Yuki December 23, 2014, 05:31:20 PM
Yeah I meant Google. For CW it queries the MySQL server.
u/Dream of Omnimaga December 23, 2014, 05:32:36 PM
Oh ok phew lol.

Also should this topic be moved to public? (you could always create another topic in the staff board or update pimath's topic on how to restart the bot when needed)
u/Yuki December 23, 2014, 05:34:19 PM
Yeah I guess. Wasn't sure since it contains some instructions to the staff, but nothing inportant. Should prolly move those infos in another topic.
Last Edit: December 23, 2014, 05:45:02 PM by Juju
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal