The shoutbox is currently out of service. Join us on Discord instead.
You can help CodeWalrus stay online by donating here.

YukiBot

Started by Juju, December 17, 2014, 11:03:21 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DJ Omnimaga

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.

Juju

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.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

I guess it probably depends of the license and who made it. Considering you are contribiting to it it should prbly be fine, tho.

Juju

The bot now have a search engine! Use .cw <search query>.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

pimathbrainiac

Yay now for ddg search (since the stupid google API is gone)
Well, I'm bach here too!

Juju

DDG search is not implemented yet. That one uses MySQL.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

Would there be a workaround for Google?

Juju

December 23, 2014, 05:19:17 am #22 Last Edit: December 23, 2014, 05:21:07 am by Juju
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.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

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.

pimathbrainiac

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.
Well, I'm bach here too!

Juju

In short it just scrapes the webpage for results.

https://github.com/jprichardson/node-google
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

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...

Juju

Yeah I meant Google. For CW it queries the MySQL server.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

DJ Omnimaga

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)

Juju

December 23, 2014, 05:34:19 pm #29 Last Edit: December 23, 2014, 05:45:02 pm by Juju
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.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

Powered by EzPortal