Register - Login
Views: 87815041
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - JCS - Stats - Latest Posts - Color Chart - Smilies
12-13-17 11:50:20 PM

Jul - General Chat - Discord + IRC New poll - New thread - New reply
Next newer thread | Next older thread
Drag
2630
Level: 94


Posts: 2628/2635
EXP: 8356467
For next: 190

Since: 07-03-07


Since last post: 131 days
Last activity: 1 day

Posted on 02-25-17 06:45:03 PM (last edited by Drag at 02-25-17 07:29:08 PM) Link | Quote
A bridge bot has been added to discord and irc, so messages in the Discord version of #x are relayed to the IRC version of #x and vice versa. In IRC, this shows up with a double nametag which is pretty distracting, so I just wrote this mIRC script to make the discord bot's lines show up like anything else.



; Hide the <discord> handle in #x
on ^*:TEXT:<*:#x:{
if ((discord!discord@*.xkeeper.net iswm $fulladdress) && ($network == BadnikZONE)) {
/echo -tlbfmr #x + $+ $strip($1,c) $2-
haltdef
}
}



This also strips out the nametag coloring that the discord bot adds. To have it not strip that out, use:

/echo -tlbfmr #x + $+ $1-


This script also prefixes a + to the nametag, so you can tell the line is coming from the discord bot and not from someone else in IRC.

Anyway, modifications and improvements welcome, but this ought to make the discord relay look a little less painful in IRC, if you're using mIRC that is.

Edit:
Non-colored nametag with : symbol as the user rank: <:Drag>

/echo -tlbfmr #x $strip($left($1,4) $+ : $+ $right($1,$calc($len($1) - 4)),c) $2-

Version with bot's nametag coloring intact, color applied to the rank:

/echo -tlbfmr #x $left($1,4) $+ : $+ $right($1,$calc($len($1) - 4)) $2-

Version with bot's nametag coloring intact, color not applied to the rank:

/echo -tlbfmr #x $left($1,1) $+ : $+ $right($1,$calc($len($1) - 1)) $2-
Dorito
GIRL'S GOT A PENITENTIARY BODY
Level: 99


Posts: 2898/2964
EXP: 9968166
For next: 31834

Since: 07-04-07
From: in the heart of silicon valley, uh oh

Since last post: 16 days
Last activity: 10 days

Posted on 02-25-17 06:48:08 PM Link | Quote
BUGS:

YOU TELL ME!

thanks bro!!!!!!

Drag
2630
Level: 94


Posts: 2629/2635
EXP: 8356467
For next: 190

Since: 07-03-07


Since last post: 131 days
Last activity: 1 day

Posted on 02-25-17 06:49:26 PM Link | Quote
You're w--

what the hell is that?
Next newer thread | Next older thread
Jul - General Chat - Discord + IRC New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 2f1bc75 [2017-08-27]
©2000-2017 Acmlm, Xkeeper, Inuyasha, et al.

25 database queries.
Query execution time: 0.126852 seconds
Script execution time: 0.004686 seconds
Total render time: 0.131538 seconds