Author Topic: IrmageBoard -- X-Chat Python Script  (Read 7099 times)

0 Members and 2 Guests are viewing this topic.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
IrmageBoard -- X-Chat Python Script
« on: October 19, 2011, 08:34:53 pm »
Hey all, I have been working on a new script called IrmageBoard and it is for X-Chat!  It is written in Python.  Here are the features:

-- >greentext
-- Filters (if you don't know what they are,  it changes words like "moot" into "missingno" , and "missingno" is colored)
-- /facepalm command (*XVicarious facepalms at Juju :P)
-- Update the filter list (stored on a webserver) without reloading the plugin with "/irmage update filter"
-- See the update log of the script with "/irmage log"

Upcoming Features:
-- Update the script with "/irmage update script"
-- Add configurations for servers and channels!

Bugs:
-- NONE! (I hope :D)

Download: http://xvicario.us/getfile.php?f=IrmageBoard.py (v0.5.0)

Development Version:
Spoiler For CODE:
Code: [Select]
NO CURRENT DEV VERSION!

You need to have PyYaml for this plugin installed!

Here is an example of a filters.yml (the first word is the word to be replaced, the second is the word to replace with)
Code: [Select]
lol : Laughing Out Loud
jkag : Pure Awesomeness :D

The readme for the next version (v0.7.0)
Spoiler For Spoiler:
Quote
------------------
IRMAGEBOARD v0.7.0
      README
------------------

IrmageBoard adds some features you see on imageboards on the internet like that of 4chan.  These features are completely useless, and just for fun! This document gives you an overview of the syntax for the plugin and its configuration files.

------------
REQUIREMENTS
------------
X-Chat with the Python Plugin
Python 2.7
PyYaml

--------
COMMANDS
--------
Note the command is in the brackets

[irmage] -- See the introduction text
[irmage log] -- See the changelog for the script
[irmage about] -- See an about screen
[irmage update <filter/script>] -- Updates the filters or script
[irmage add server] -- Adds the server you are currently on (where you executed the command) to the configuration file
[irmage add channel] -- Adds the current channel you are on to the server you are on to the configuration file
[irmage set filter <0/1>] -- Sets the filter on or off for the channel you are on
[irmage set filter-url <url>] -- Sets the location of the filter file to the configuration file of the channel you are currently on
[irmage set greentext <0/1>] -- Sets greentext on or off for the channel you are currently on


-------------
FILTER FORMAT
-------------
The filters use YAML for replacing certain words.

<word-to-replace> : <word to replace with>

Super easy to set new filters.  Just save it as a *.yml file and upload it somewhere!


--------------------
CONFIGURATION FORMAT
--------------------
The configuration uses YAML for adding servers and channels and options as well. Please note that the script can automagically add new servers and channels to this list from a simple command!

irc.ircserver.com:
    MyChannel:
        greentext: <0/1>
        filters: <0/1>
        filter-url: <url>

A very simple configuration format!


-----
LEGAL
-----
Use, improve, and abuse.  Please if you do improve it give credit to: XVicarious (Brian Maurer, [email protected]).

Also, I need suggestions on features to add to my plugin!  I know it needs more features!
« Last Edit: November 06, 2011, 08:36:55 pm by jkag »

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #1 on: October 20, 2011, 10:55:06 pm »
v0.5.5 released.  Fixed the bug and added /facepalm <facepalm at this>

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: IrmageBoard -- X-Chat Python Script
« Reply #2 on: October 20, 2011, 11:11:19 pm »
Lol nice, although at first because of the name I thought it was some sort of 4chan image board but for display in X-Chat instead of a browser. :P

Make sure people won't abuse facepalm though, because facepalming at other ppl in omni might get the command user banned x.x

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #3 on: October 20, 2011, 11:20:29 pm »
Taht is true.  Oh and a note, most of the filters are inappropriate for Omnimaga since it was made for another server where the rules are more lax.  If you guys want, I'll host a special version of the filter for Omnimaga use.  But you have to come up with the filter ideas.
IE, lobster filters to Netham45

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: IrmageBoard -- X-Chat Python Script
« Reply #4 on: October 20, 2011, 11:23:04 pm »
Ok it migth be best. Swearing is allowed here but if it got too bad (like two swear per sentence in average) or if there'S too much caps lock it would be a problem.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #5 on: October 20, 2011, 11:42:59 pm »
I know its allowed, but just the types of words I used I have never heard here, so yeah.

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: IrmageBoard -- X-Chat Python Script
« Reply #6 on: October 20, 2011, 11:44:56 pm »
Oh ok, yeah you migth want to be careful about that. Also at some other places you gotta be careful too since you might be labelled as bigot or something even if you are just pissed at Microsoft for example. (which is even worse with the fact that a person gets pissed at M$ an average of 8 hours a day)
« Last Edit: October 20, 2011, 11:45:58 pm by DJ_O »

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #7 on: October 20, 2011, 11:49:09 pm »
But if people want to use it here, please give me some ideas for filters here :)

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: IrmageBoard -- X-Chat Python Script
« Reply #8 on: October 21, 2011, 10:46:38 am »
Why not configuring the filters per channel? So you could have one filter list for #omnimaga and one for some other channel, etc.

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #9 on: October 21, 2011, 09:03:33 pm »
That is a good idea... I'll look into it.  It will require a configuration file... I'll just use YAML again since INI was giving me problems for XTranzlator

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #10 on: November 06, 2011, 08:38:24 pm »
Updated first post. Added readme for the next version.
v0.7.0 is aimed for Friday, 11 November 2011! (not working at all this week, will have LOTS of time!)

(and please give me more ideas for features)

Offline ruler501

  • Meep
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2475
  • Rating: +66/-9
  • Crazy Programmer
    • View Profile
Re: IrmageBoard -- X-Chat Python Script
« Reply #11 on: November 06, 2011, 09:39:33 pm »
This is an idea that can from IRC today: Creating a /punch script


so is the filter for this like the builtin filter for XChat just with the terms stored on a server?
I currently don't do much, but I am a developer for a game you should totally try out called AssaultCube Reloaded download here https://assaultcuber.codeplex.com/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCM/CS/M/S d- s++: a---- C++ UL++ P+ L++ E---- W++ N o? K- w-- o? !M V?
PS+ PE+ Y+ PGP++ t 5? X R tv-- b+++ DI+ D+ G++ e- h! !r y

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: IrmageBoard -- X-Chat Python Script
« Reply #12 on: November 06, 2011, 10:36:17 pm »
Does the script let people enable/disable individual features by the way? For example if someone doesn't want the script's racial/bigot jokes to work but still want the other stuff, or vice-versa?

Offline XVicarious

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 485
  • Rating: +45/-28
  • I F**king Love Twisty Puzzles
    • View Profile
    • XVicarious
Re: IrmageBoard -- X-Chat Python Script
« Reply #13 on: November 07, 2011, 06:45:43 pm »
Yes DJ_O.  You can disable certain features.  Everything is automatically off when you are on a channel.  You can also have separate filter files for each channel.

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: IrmageBoard -- X-Chat Python Script
« Reply #14 on: November 07, 2011, 06:47:29 pm »
Good to hear. Is there also flood control for commands requiring user input?