Register - Login
Views: 93082022
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
07-15-18 03:59:30 PM

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


Posts: 2628/2641
EXP: 8616489
For next: 52118

Since: 07-03-07


Since last post: 151 days
Last activity: 2 days

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: 101


Posts: 2898/3032
EXP: 10597918
For next: 119757

Since: 07-04-07

From: in the heart of silicon valley, uh oh

Since last post: 1 day
Last activity: 1 day

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

YOU TELL ME!

thanks bro!!!!!!

Drag
2640
Level: 95


Posts: 2629/2641
EXP: 8616489
For next: 52118

Since: 07-03-07


Since last post: 151 days
Last activity: 2 days

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 5d36857 [2018-03-03]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

25 database queries.
Query execution time: 0.178504 seconds
Script execution time: 0.007694 seconds
Total render time: 0.186198 seconds
Memory used: 524288