Register - Login
Views: 99309582
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
04-21-22 04:04:15 AM
Jul - General Chat - Discord + IRC New poll - New thread - New reply
Next newer thread | Next older thread
Drag
2640
Level: 99


Posts: 2628/2641
EXP: 9978941
For next: 21059

Since: 07-03-07


Since last post: 4.2 years
Last activity: 3.3 years

Posted on 02-25-17 09:45:03 PM (last edited by Drag at 02-25-17 10: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-



____________________
Dprotp
GIRL'S GOT A PENITENTIARY BODY
Level: 107


Posts: 2898/3147
EXP: 12978932
For next: 112379

Since: 07-04-07

Pronouns: he/him
From: FIRE STATE

Since last post: 1.5 years
Last activity: 93 days

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

YOU TELL ME!

thanks bro!!!!!!



____________________
Drag
2640
Level: 99


Posts: 2629/2641
EXP: 9978941
For next: 21059

Since: 07-03-07


Since last post: 4.2 years
Last activity: 3.3 years

Posted on 02-25-17 09: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 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

28 database queries.
Query execution time: 0.090637 seconds
Script execution time: 0.009113 seconds
Total render time: 0.099750 seconds