ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: Xchat script for tircd (Twitter)

(1/2) > >>

app103:
I am running tircd (an ircd proxy for the twitter API) so I can use xchat as my twitter client.

tircd allows me to group people that I follow, by creating a new channel (just /join), and then just /invite who I want in it.

It also allows me to perform searches by /join #whatever followed by /topic [searchterm]
or /join #hashtag  followed by /topic #hashtag #hashtag

I need an xchat script that will automate all of this for me and


* autojoin a specified list of channels on my tircd
* change the topics on those channels (each will be different)
* invite a specified list of users to some of those channels.

Something like this:

/join #example1
/topic example1

/join #example2
/topic #example2 #example2

/join #example3
/invite person1 person2 person3

This has to work only with the tircd and not interfere with any real irc networks & channels I may also be connected to.

This can be in either perl or ruby, because my python plugin doesn't work with the version of python that I have installed on my machine. (it's for 2.4 and I have 2.6) And I am not sure why I can't get tcl to work.

I also need another script that will automatically convert any & all links I post on just the tircd channels to tinyurl links. I do not want to have to use a /tinyurl command. It must work on links that appear anywhere in a message I post. It also must not affect any other channels on any other network. I don't want to automatically send tinyurl links everywhere, just to twitter.

I don't know the first thing about xchat scripting, nor do I know perl or ruby...otherwise I would try to do this myself.

housetier:
You can tell xchat which channels to join: Press Ctrl+S to open the server list, there click on "Add" and a "New Network" will be added to the list. Change its name to something more appropriate, like "twitter", and click on "Edit". Here you specify the server for this network, it is probably "localhost" (if the port differs from 6667 append it to the hostname with a slash: "localhost/8889")

Now there is a bunch of checkboxes, of which the one about automatically might be the most interesting. Below that, we see a list of text boxes, one is named "Favorite Channels". This is where you keep your list of channels you want to join. However, I recommend using the helper dialog that pops up when you click a third button, the one with the "..." right of the text box.

And without scripting we can go only this far.

If the list of people and channels does not change often, you could use something I call "simple scripts" which are a list of xchat commands that are executed by xchat. But if you want more comfort and features, we need a real script...

app103:
You can tell xchat which channels to join: Press Ctrl+S to open the server list, there click on "Add" and a "New Network" will be added to the list. Change its name to something more appropriate, like "twitter", and click on "Edit". Here you specify the server for this network, it is probably "localhost" (if the port differs from 6667 append it to the hostname with a slash: "localhost/8889")

Now there is a bunch of checkboxes, of which the one about automatically might be the most interesting. Below that, we see a list of text boxes, one is named "Favorite Channels". This is where you keep your list of channels you want to join. However, I recommend using the helper dialog that pops up when you click a third button, the one with the "..." right of the text box.

And without scripting we can go only this far.
-housetier (March 09, 2009, 05:58 PM)
--- End quote ---

I know I could do that, but I am not sure how many search & grouping channels I may want to create. It could be a lot. I don't want to have issues with overloading that little box.


If the list of people and channels does not change often, you could use something I call "simple scripts" which are a list of xchat commands that are executed by xchat. But if you want more comfort and features, we need a real script...
-housetier (March 09, 2009, 05:58 PM)
--- End quote ---

Can you tell me more about what you mean by "simple scripts"?

housetier:
It could be something like this

--- ---/join #this
/invite him
/invite her
/join #that
/invite them
/invite those

Just xchat commands, one on each line. You can't use variables, loops, or any sort of control structure here, it's just a list of commands which will be executed in that order.

Put these in a text file and use "load -e c:\Wherever\You Put\The script.txt" as connection command.

app103:
That will work great!

Really, thank you so much.

I had no idea you could do that.

Navigation

[0] Message Index

[#] Next page

Go to full version