Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: Sorunome on December 22, 2012, 06:08:47 pm

Title: Sorunomes IRC Bots
Post by: Sorunome on December 22, 2012, 06:08:47 pm
Ok, I thought I'd make now a list of my IRC bots........
Well, first, all the bots that reply with the nickname Sorunome are then as a plugin for my self-programmed plugin manager
sooooooooooo let's go!

AxeBot
Usage:
@axe <command>
.axe <command>
Output:
Searches in the readme, .axe is pm
Advanced (still buggy):
[@.]axe (prgm|app|fusion) <command>
Outputs the size

LibBot
Usage:
@<lib> <command>
.<lib> <command>
Output:
Searches in Basic libs. put as <lib> all to search in all libs

GramBot
Usage:
@gram(|mer) <command>
.gram(|mer) <command>
Output:
Again, searches for the command

BasicBot
Usage:
@basic <command>
.basic <command>
Output:
Guess

DerpyBot
Usage:
complicated, check out my other topic about it http://ourl.ca/16809
it is for managing omnomirc pm over efnet

test
Usage:
test
Output:
Test received

google
Usage:
[>@]google <phrase>
Output:
First google result

Brainf*ck
THIS BOT IS SILENTED ON #omnimaga, you can still use #omnimaga-spam
Usage:
@bf <code>
Output:
The output of brainf*ck code (for input: put all your input afterwards seperated with a space, so ,.,. hi outputs hi)

[@>]omnimaga
uses google to search omnimaga, so i just a shortcut for >google site:omnimaga

@md5
duh

@ping
pings a website, works like isup.me, only timeout time is one minuet, lol

@calc <stuff>
it uses sympy, so if you want to know how to use it look up how to use sympy
only variables declared so far are k,n,x,y,z if you want any more, poke me

@ddg <stuff>
Look up stuff on duck duck goes api!

Well, that's it already (i think)
If you have any questions ask
I will update this list
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 24, 2012, 06:39:24 pm
I added @md5 and @omnimaga (uses google for searching)
If you have any ideas, feedback or suggestions please post about it, i will add it no matter how complicated, maybe i'll try meself on a time machine/me runs
Title: Re: Sorunomes IRC Bots
Post by: epic7 on December 24, 2012, 07:04:08 pm
Yay! A time machine!/me is watching back to the future atm

What's md5?
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 24, 2012, 07:05:04 pm
it gives you the md5 hash of the string
and yay, i love back to the future :D
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 25, 2012, 11:46:10 pm
Fun fact: My bots are spread over 3 servers: 57o9.org, withg.org and my server.
And the databases are not always on the same server where the bot is running.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 27, 2012, 06:10:19 pm
Ok, I silented now brainfuck after admin request on #omnimaga as people were keep playing around with it and it got pretty spammy :P

Thanks to jacobly it also features inptu now, so @bf ,.,. hi outputs hi
Title: Re: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on December 28, 2012, 11:57:28 am
You should put it in the sapam chan if not already :P
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 28, 2012, 02:20:09 pm
It is everywhere where i am, I am in spam channel so it is there :P
Title: Re: Sorunomes IRC Bots
Post by: Nick on December 28, 2012, 02:30:54 pm
So you cannot be in #omnimaga while your bot is in #spam? that's kinda sad, isn't it?
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 28, 2012, 02:50:24 pm
Erm, yeah, the bot is EVERYWHERE where i am.
I only made it not work in #omnimaga (the brainfuck bot) because people were spamming the channel with it,
Title: Re: Sorunomes IRC Bots
Post by: epic7 on December 28, 2012, 03:44:06 pm
How do you have your bot have the same name as you?
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 28, 2012, 03:45:38 pm
Well, I have ZNC, that is basically a program running on a server that connects to irc for me. So I am first ALWAYS online on irc.
To chat now on irc i connect to that program instead of the normal IRC network, and my bots also connect to my program :D
Title: Re: Sorunomes IRC Bots
Post by: epic7 on December 28, 2012, 05:20:18 pm
So you and your bot connect to znc, which connects to actual irc
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 28, 2012, 06:08:38 pm
Yes, so it is :P
But
it is only one bot, which is a plugin manager and all the other 'bots' are plugins i programmed for my plugin manager >.>
Title: Re: Sorunomes IRC Bots
Post by: Nick on December 29, 2012, 03:02:39 am
Yes, so it is :P
But
it is only one bot, which is a plugin manager and all the other 'bots' are plugins i programmed for my plugin manager >.>

Lol, and i was happy to have a bot running that could search the internets through google xp nice work sorunome :)
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 29, 2012, 12:16:06 pm
Haha, thanks, and one of my plugins is googlel.... :trollface:
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on December 31, 2012, 09:12:06 pm
BTW, do you guys remember the Creepy Story on Halloween? http://ourl.ca/17342

It was also done via my plugin manager i programmed! :D (that was actually the birth of it, lol)
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 01, 2013, 05:07:11 pm
New plugin!
@ping <website>
pings the website (in other words, checks if it is online)
Title: Re: Re: Sorunomes IRC Bots
Post by: Nick on January 01, 2013, 05:21:11 pm
How long does it take before a return value is -guess what- returned?
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 01, 2013, 05:24:05 pm
depends on the website
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 15, 2013, 06:38:03 pm
Ok, many of my bots, short, all the ones connected to my ZNC, will have an upcoming downtime this (for me) night (pacific timezone)
Why?
My server is getting more RAM! :D They just have to shut it down for that.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on April 06, 2013, 02:41:29 pm
So, i finally got out of my way to add a error message for if googling doesn't return anything :D
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on July 22, 2013, 04:55:46 pm
ok, added CAS
@calc <stuff>
it uses sympy, so if you want to know how to use it look up how to use sympy

only variables declared so far are k,n,x,y,z if you want any more, poke me
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on September 02, 2013, 10:37:22 am
@calc now (finally) features error output :)
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on September 02, 2013, 04:07:40 pm
You merged Calc84maniac with yourself? O.O

Just kidding, nice additions. :)
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on September 02, 2013, 04:33:16 pm
Bad news: jim found a bug in my bot which would have allowed modding files, to protect myself he deleted the bot file, but nows a problem, i didn't have a backup of it............so i'll have to start from scratch >.>
Maybe this time i'll do propper sandboxing
Title: Re: Sorunomes IRC Bots
Post by: Jim Bauwens on September 02, 2013, 04:40:04 pm
Hmm, really sorry that happened. It wasn't even my intention (I have no idea how the file got removed..)...
What I did was "cat front cas.py", seeing that the output was correct I did "cat front cas.py>cas.py". I should have made a backup of it first though...
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on September 02, 2013, 04:41:38 pm
Hmm, really sorry that happened. It wasn't even my intention (I have no idea how the file got removed..)...
What I did was "cat front cas.py", seeing that the output was correct I did "cat front cas.py>cas.py". I should have made a backup of it first though...
Ha, well, no offence taken, it is my problem in first case if i don't make a proper sandbox.

So yeah, now i got a question.....how can i properly sandbox python?
and maybe it is easier, can i somehow, easily, set up a virtual enviroment in lua and then call python?

EDIT: I already restored the old code, added dict as a keyword and now looking up how to properly sandbox.
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on September 02, 2013, 04:50:40 pm
Aw too bad you didn't have backups. Although I guess it was better if it was removed for now if it was too dangerous.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on September 02, 2013, 04:51:04 pm
Ha, i ninja'd you with 1 second of editing my post :P
Title: Re: Sorunomes IRC Bots
Post by: ElementCoder on September 03, 2013, 12:12:45 am
Perhaps you can look into PyPy Sandbox doc.pypy.org/en/latest/sandbox.html
It's supposed to be extremely safe even to run mslicious scripts as they won't be able to access the system.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on September 05, 2013, 05:26:14 pm
So yeah, my plugin manager is SOOOOO AWESOME now! (sorry, i'm too excited)
I know, these are all functionalities only i can use, but still :D
So yeah, when loading plugins now, it saves them in a config.cfg file. Overall it saves all the configurations in said file.
I also added that i can activate each plugin individually for each channel - no need anymore to like hardcode the plugins silent on #cemetech!/me is soooooo excited!
:w00t: :w00t: :w00t:
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on September 05, 2013, 10:33:48 pm
Good to hear. It was often a chore for bot owners to remove colors when putting their bots elsewhere, disable swearing, some game features, etc, and in many cases, they ended up being enabled again for a reason or another.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 04, 2014, 11:17:57 am
So, i added now the random number library to the cas bot.
I also defined rand as random, so that you can do rand() AND random() to get a random float between 0 and 1.

Any more math libraries i should add?
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 06, 2014, 01:44:10 pm
so yeah, if you post now a youtube URL it'll tell you the title.
Seems like rickrolling isn't that straight-forward anymore these days :trollface:
Title: Re: Sorunomes IRC Bots
Post by: JosJuice on January 06, 2014, 02:23:45 pm
But how will that prevent me from uploading a rickroll to my own channel and naming it into something else so that I can trick people? :P
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 06, 2014, 03:24:45 pm
nuuu, don't be so evil :P
Title: Re: Sorunomes IRC Bots
Post by: Lunar Fire on January 06, 2014, 10:00:52 pm
When I was at ConkerZone with my friend SquirrelGrunt, we uploaded a video called "Rare's big announcement at E3 2009" or something like that, and it was Rick Astley mixed with parts of the trailer for Kinect Sports. Nor the title, nor the thumbnail, nor the description gave away that it was a rickroll.

I see people doing things like that in the future.

Title: Re: Sorunomes IRC Bots
Post by: Eeems on January 06, 2014, 10:22:53 pm
I see people doing things like that in the future.
I see this happening a lot in the past as well.
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on January 06, 2014, 10:38:40 pm
I guess it's a good thing to tell the title. It should hopefully discourage spam a little bit as well as tricking people into watching extremely loud videos.

As for rickroll videos themselves, nowadays when you upload them, even if you change the thumbnail the video gets blocked worldwide by copyright bots anyway.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 07, 2014, 04:03:28 am
You just have to change the pitch a bit and it won't get blocked ;)

Also, that was just a little joke on my side with the rickroll, didn't even expect a disscussion arrising from that XD
Title: Re: Sorunomes IRC Bots
Post by: Eeems on January 07, 2014, 09:45:40 am
Nobody ever does.

(http://reflexionesdesdebaetulo.files.wordpress.com/2010/07/spanish-inquisition.jpg)
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on January 07, 2014, 11:20:18 am
You just have to change the pitch a bit and it won't get blocked ;)

Also, that was just a little joke on my side with the rickroll, didn't even expect a disscussion arrising from that XD
Oh right I forgot about that :P

And yeah I thought so, I just noticed more and more people linking to misleading rickrolls on IRC in the past few months (probably taking advantage that rickrolling is rare nowadays and thus, unexpected). :P
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 07, 2014, 11:22:01 am
But that is a paradox, making it more expected, stopping the rickrolls, and then making them unexpecting again and GWAH! *explode*
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 12, 2014, 11:12:16 am
Added basic syntax highlighting for CAS bot! :D
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 18, 2014, 07:49:03 am
Fixed that issue wtih random replies to old messages, it was a issue with parsting /me messages from omnomirc
Title: Re: Sorunomes IRC Bots
Post by: ElementCoder on January 18, 2014, 10:12:00 am
That means no more scare basicbot? :(
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 18, 2014, 10:38:59 am
basicbot is offline :P
And i have no idea where the basicbot scare originates from, it uses a whole different engine than DerpyBot, thus also the different nick, i'll have to re-program it as a DerpyBot plugin.
Title: Re: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on January 18, 2014, 02:05:15 pm
Some people found the bot scary?? O.O
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 18, 2014, 02:05:48 pm
it randomley repeated previousley said lines O.O
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on January 18, 2014, 03:52:18 pm
Wow that is strange. ???
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 18, 2014, 04:15:57 pm
I know!
If anybody feels like trying to find the mistake: http://pastebin.com/fR1dajPN
C++ btw
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 19, 2014, 02:33:16 pm
Finnally managed to do some real timeout handling on DerpyBot instead of having the script be in a while true loop without any puase....
Result:
From the CPU usage of 90% it is now all the way down to 0.1% :D
Title: Re: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on January 19, 2014, 06:55:13 pm
Eeems must be glad that that bot wasn't hosted on Omni server :P
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 20, 2014, 07:50:40 am
funny how the thing on my server that noms most CPU is now my own instance of OmnomIRC :P
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on January 20, 2014, 11:02:05 am
So yeah, new plugin, DuckDuckGo, @ddg, haven't quite figured out yet what it does, i just basically made it look up duck duck goes api
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on July 21, 2014, 09:03:32 pm
DerpyBot should be extended so that when someone posts a ticalc.org archives or news link it shows the file/news title, like how it shows Youtube video titles.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on July 22, 2014, 12:44:52 am
Ah, good idea, won't be too hard to do :)
Title: Re: Sorunomes IRC Bots
Post by: DJ Omnimaga on September 16, 2014, 02:24:02 pm
Maybe you could have a bot where if someone types !bug <username> or something like that then the bot replies <username>: Please submit your bug report via http://ourl.ca/issue and feature requests via http://ourl.ca/request so that admins are notified ASAP. Thank you.


Kinda like !intro <username> in #Cemetech where the bot tells a new user to introduce himself :P. It would make it easier when someone reports a big site issue that only admins can fix.


Perhaps an !admin command too (with option for username if you want to highlight him), where the bot responds with "<username>: Please contact only the actual site admins listed in blue color at http://www.omnimaga.org/team if you have questions or concerns about the website or IRC channel. Other users cannot help you on such matters." :P



The first feature would be handy when people keep posting bug reports on IRC, especially those who aren't very active, and the second feature would be handy when people starts bugging me or other non-admins like juju about site issues.
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on September 16, 2014, 03:07:12 pm
hm, maybe....
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on November 14, 2014, 11:27:42 am
There is @weather now ^.^
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on November 16, 2014, 07:07:26 am
The new DerpyBot is here, shinier than ever!
It is a 100% re-write in python, with IMO way more features concerning plugin management ^.^
Also you have @cas again ^.^
Title: Re: Sorunomes IRC Bots
Post by: Sorunome on November 17, 2014, 09:48:47 am
Aaaaaand now @axe is back again ^.^