Forums - Open Redstone Engineers
LadBot, a simple IRC bot. Who wants to contribute? - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Programming (https://forum.openredstone.org/forum-8.html)
+--- Thread: LadBot, a simple IRC bot. Who wants to contribute? (/thread-4005.html)



LadBot, a simple IRC bot. Who wants to contribute? - mort96 - 07-09-2014

Hi! I wrote an IRC bot:

https://github.com/mortie/LadBot

Originally, the bot was to keep track of 'ladpoints'; points people in the IRC channel give to or take from each other. However, I ended up adding some utility features to it, like calculating math, timer, and afk functionality.

Now, for anything you tell the bot to do, it responds with a random message. However, I have trouble coming up with good messages. If you're feeling creative, I'd appreciate some help. A list of files containing the random messages are in the contribute section.

Suggestions for new useful utilities is also most welcome.

If you wanna check this bot out live, have a chat with CarlBot at #squirrels@irc.esper.net!


RE: LadBot, a simple IRC bot. Who wants to contribute? - David - 07-09-2014

Can you program in a binary conversion tool?


RE: LadBot, a simple IRC bot. Who wants to contribute? - mort96 - 07-10-2014

Added a base conversion tool: https://github.com/mortie/LadBot/commit/7384a19bed3dab9695b3d6e6e0325afb7677c6d6

Code:
convert [number] to base [base]
converts a number to a base. Tell it to convert to base 2, and you'll have your binary conversion Smile


RE: LadBot, a simple IRC bot. Who wants to contribute? - jxu - 07-10-2014

I will contribute!


RE: LadBot, a simple IRC bot. Who wants to contribute? - David - 07-10-2014

(07-10-2014, 12:53 AM)mort96 Wrote: Added a base conversion tool: https://github.com/mortie/LadBot/commit/7384a19bed3dab9695b3d6e6e0325afb7677c6d6

Code:
convert [number] to base [base]
converts a number to a base. Tell it to convert to base 2, and you'll have your binary conversion Smile

And from binary to decimal? I've needed that alot.


RE: LadBot, a simple IRC bot. Who wants to contribute? - mort96 - 07-10-2014

I added that too:
Code:
[number] from base [base] to base [base]

So you could do:
Code:
11100011011001 from base 2 to base 10



RE: LadBot, a simple IRC bot. Who wants to contribute? - David - 07-10-2014

That's cool. Is it up now? I wanna test it :3.


RE: LadBot, a simple IRC bot. Who wants to contribute? - mort96 - 07-10-2014

ya, it's up. Head off to #squirrels@irc.esper.net Smile