Omnimaga
General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: Streetwalrus on July 14, 2014, 09:38:19 am
-
So Sorunome keeps complaining about DerpyBot so I set out to write an implementation of it from scratch in Python 3. After a day and a half of work I already have an almost fully featured core which is made up of a plugin manager with multi channel support, admin commands and OmnomIRC parsing. I already made a couple plugins :
-game.py : loses the game :P
-test.py : replies "Test failed" when you say "test"
-google.py : the most advanced plugin as of now, contains the same commands as DerpyBot's google.lua (@google, @youtube, @omnimaga, @xkcd and I added @tiplanet to the list)
I also have it load/store channels and plugins in a json file so that it rejoins and reloads upon startup. I need to add a config file for some stuff but other than that it works pretty well already. You can currently find it in the spam channel and mess around with it. If it shows any weird error message, please report it.
Once the code is clean I'll put it on GitHub.
-
sweat :P
I started a re-write of DerpyBot ages ago.......in a disco :P
-
In a disco ? :P
-
Erm, yeah, i was the sound technition and i was like meeeeeehillprogram
-
XD That's kinda weird. :P
-
XD That's kinda weird. :P
That coming from an omni member concerning situations one programs in.... O.O :crazy:
-
Walp, I program in any situation. :P
-
I program if possible
-
Just make sure that the spammy features are disabled in the non-spam channels. :P
-
Well of course, since plugins are loaded per channel it's pretty easy to handle that.
-
Ok so I fixed some bugs and made the plugin system way more robust. Also it supports multiple config files which allows the bot to run on multiple networks by spawning multiple instances of the bot with different configs. I still need to streamline a few things but it's alright for now. :D
-
Nice to hear. :D Also yeah even in the spam channel make sure to avoid scripts like this :P (Note to other people: the following log was made up as an example)
11:51 AM [streetwalrus] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:51 AM [FlutterBot] @Google the game
11:51 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:51 AM [FlutterBot] @Google the game
11:51 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:51 AM [FlutterBot] @Google the game
11:51 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:50 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:49 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
10:35 AM [FlutterBot] @Google the game
9:10 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
7:50 AM [FlutterBot] @Google the game
4:22 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
4:22 AM * FlutterBot has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
4:22 AM * DerpyBot has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
4:22 AM * Sorunome has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
4:22 AM * Streetwalrus has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
-
Nice to hear. :D Also yeah even in the spam channel make sure to avoid scripts like this :P (Note to other people: the following log was made up as an example)
11:51 AM [streetwalrus] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
11:52 AM [FlutterBot] @Google the game
11:52 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
...
11:49 AM [FlutterBot] @Google the game
11:50 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
10:35 AM [FlutterBot] @Google the game
9:10 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
7:50 AM [FlutterBot] @Google the game
4:22 AM [DerpyBot] [google] The Game: Home - http://www.comptongame.com/
4:22 AM * FlutterBot has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
4:22 AM * DerpyBot has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
4:22 AM * Sorunome has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
4:22 AM * Streetwalrus has quit IRC (User has been permanently banned from irc.omnimaga.org (permanent g-line))
Time runs backwards? :trollface:
-
Indeed (bots so fast they go back in time) :trollface:
-
Glines would require me or another ircop to initiate them. They don't get automatically applied, FYI.
-
Who knows if in the "logs" above the glines weren't applied by you, but so fast that time went backwards? :trollface:
-
Erm, DJ please... :P
-
A strange thought from me:
You should make it say "Get of your mac" to me (and in spam) so you don't have to say it
-
I have spammy plugins but that's something I reserve the pleasure to say. :P
-
Do you have it on your clipboard? :P