Author Topic: FlutterBot  (Read 10976 times)

0 Members and 2 Guests are viewing this topic.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
FlutterBot
« 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.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: FlutterBot
« Reply #1 on: July 14, 2014, 12:39:09 pm »
sweat  :P
I started a re-write of DerpyBot ages ago.......in a disco :P

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: FlutterBot
« Reply #2 on: July 14, 2014, 12:41:03 pm »
In a disco ? :P

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: FlutterBot
« Reply #3 on: July 14, 2014, 12:41:44 pm »
Erm, yeah, i was the sound technition and i was like meeeeeehillprogram

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: FlutterBot
« Reply #4 on: July 14, 2014, 12:42:15 pm »
XD That's kinda weird. :P

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: FlutterBot
« Reply #5 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:

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: FlutterBot
« Reply #6 on: July 14, 2014, 12:45:30 pm »
Walp, I program in any situation. :P

Offline Princetonlion.tibd

  • Members
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 790
  • Rating: +3/-4
    • View Profile
Re: FlutterBot
« Reply #7 on: July 14, 2014, 05:03:29 pm »
I program if possible

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: FlutterBot
« Reply #8 on: July 15, 2014, 12:38:30 am »
Just make sure that the spammy features are disabled in the non-spam channels. :P

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: FlutterBot
« Reply #9 on: July 15, 2014, 01:53:24 am »
Well of course, since plugins are loaded per channel it's pretty easy to handle that.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: FlutterBot
« Reply #10 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: FlutterBot
« Reply #11 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))

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: FlutterBot
« Reply #12 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:
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: FlutterBot
« Reply #13 on: July 17, 2014, 09:28:52 am »
Indeed (bots so fast they go back in time) :trollface:

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6267
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: FlutterBot
« Reply #14 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.
/e