Omnimaga

General Discussion => Technology and Development => Computer Projects and Ideas => Topic started by: Streetwalrus on July 14, 2014, 09:38:19 am

Title: FlutterBot
Post 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.
Title: Re: FlutterBot
Post by: Sorunome on July 14, 2014, 12:39:09 pm
sweat  :P
I started a re-write of DerpyBot ages ago.......in a disco :P
Title: Re: FlutterBot
Post by: Streetwalrus on July 14, 2014, 12:41:03 pm
In a disco ? :P
Title: Re: FlutterBot
Post by: Sorunome on July 14, 2014, 12:41:44 pm
Erm, yeah, i was the sound technition and i was like meeeeeehillprogram
Title: Re: FlutterBot
Post by: Streetwalrus on July 14, 2014, 12:42:15 pm
XD That's kinda weird. :P
Title: Re: FlutterBot
Post by: Sorunome on July 14, 2014, 12:44:55 pm
XD That's kinda weird. :P
That coming from an omni member concerning situations one programs in.... O.O :crazy:
Title: Re: FlutterBot
Post by: Streetwalrus on July 14, 2014, 12:45:30 pm
Walp, I program in any situation. :P
Title: Re: FlutterBot
Post by: Princetonlion.tibd on July 14, 2014, 05:03:29 pm
I program if possible
Title: Re: FlutterBot
Post by: DJ Omnimaga on July 15, 2014, 12:38:30 am
Just make sure that the spammy features are disabled in the non-spam channels. :P
Title: Re: FlutterBot
Post by: Streetwalrus on July 15, 2014, 01:53:24 am
Well of course, since plugins are loaded per channel it's pretty easy to handle that.
Title: Re: FlutterBot
Post by: Streetwalrus on July 15, 2014, 04:45:06 am
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
Title: Re: FlutterBot
Post by: DJ Omnimaga on July 15, 2014, 01:00:18 pm
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)


Quote
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))
Title: Re: FlutterBot
Post by: bb010g on July 15, 2014, 10:37:06 pm
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)


Quote
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:
Title: Re: FlutterBot
Post by: DJ Omnimaga on July 17, 2014, 09:28:52 am
Indeed (bots so fast they go back in time) :trollface:
Title: Re: FlutterBot
Post by: Eeems on July 17, 2014, 10:48:33 am
Glines would require me or another ircop to initiate them. They don't get automatically applied, FYI.
Title: Re: FlutterBot
Post by: DJ Omnimaga on July 17, 2014, 05:13:40 pm
Who knows if in the "logs" above the glines weren't applied by you, but so fast that time went backwards? :trollface:
Title: Re: FlutterBot
Post by: Streetwalrus on July 17, 2014, 05:31:15 pm
Erm, DJ please... :P
Title: Re: FlutterBot
Post by: Princetonlion.tibd on July 18, 2014, 10:05:07 am
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
Title: Re: FlutterBot
Post by: Streetwalrus on July 18, 2014, 10:06:07 am
I have spammy plugins but that's something I reserve the pleasure to say. :P
Title: Re: FlutterBot
Post by: Princetonlion.tibd on July 18, 2014, 10:07:04 am
Do you have it on your clipboard? :P