Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » Custom commands in BRenBot? (Little IRC script)
Custom commands in BRenBot? (Little IRC script) [message #74755] Mon, 29 March 2004 22:43 Go to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

on *:text:*:#:{
  if ($nick == BOTNICK) {
    if ($2 == !downloads) {
      msg # !msg Download selection of best maps @ http://www.zunnie.hellrazer.net
    }
}
}

___________________

You can add as much commands as you like this way.
Just enter your botnick and change the command and the !msg it does.
on *:text:*:#:{
  if ($nick == BOTNICK) {
    if ($2 == !downloads) {
      msg # !msg Download selection of best maps @ http://zunnie.hellrazer.net
    }
    if ($2 == !website) {
      msg # !msg Visit our website and sign up on the forum @ http://www.SourceOfQuality.nl
    }
    if ($2 == !site) {
      msg # !msg Visit our website and sign up on the forum @ http://www.SourceOfQuality.nl
    }
}
}


I know this is probably not the best code ever Razz so if anyone feels he could add something, plz do so Smile

[zunnie]


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Custom commands in BRenBot? (Little IRC script) [message #74814] Tue, 30 March 2004 06:44 Go to previous messageGo to next message
xptek_disabled is currently offline  xptek_disabled
Messages: 1308
Registered: September 2003
Karma: 0
General (1 Star)
Now if there was a way to capture names....

Local oper-irc.ugin.net - A Scrumfy free IRC.
Jonwil > SK
http://www.byterush.net/
Custom commands in BRenBot? (Little IRC script) [message #74836] Tue, 30 March 2004 09:34 Go to previous messageGo to next message
egg098 is currently offline  egg098
Messages: 147
Registered: August 2003
Karma: 0
Recruit
Cwazyape

Now if there was a way to capture names....


What do mean by this? -- Capture the names of players that join?

zunnie

on *:text:*:#:{
if ($nick == BOTNICK) {
if ($2 == !downloads) {
msg # !msg Download selection of best maps @ http://www.zunnie.hellrazer.net
}
}
}

on *:text:*!website:#deathserv:if ($nick isin %servernick) { msg $chan !msg Visit the Deathserv forums at http://www.deathserv.tk }

But all on one line Wink
Custom commands in BRenBot? (Little IRC script) [message #74915] Tue, 30 March 2004 17:59 Go to previous messageGo to next message
xptek_disabled is currently offline  xptek_disabled
Messages: 1308
Registered: September 2003
Karma: 0
General (1 Star)
So, could this be implemented for other commands as well?

Ex: op types !pwn timmay

Script executes command !ban timmay Inquire about your ban at x.com


Local oper-irc.ugin.net - A Scrumfy free IRC.
Jonwil > SK
http://www.byterush.net/
Custom commands in BRenBot? (Little IRC script) [message #74952] Tue, 30 March 2004 20:30 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Cwazyape

So, could this be implemented for other commands as well?

Ex: op types !pwn timmay

Script executes command !ban timmay Inquire about your ban at x.com


It is possible i think, but i havent figured out how to 'read' a nick after the command.

<servbrenbot>Host:SoQzunnie !pwn Badplayer <cheater>
<ircbot>!ban Badplayer <cheater>
<servbrenbot>Host:Badplayer is being banned by ircbot@irc for: cheater

I guess this is possible but i dont know how to 'secure' this. I mean, you must let the script look if its a mod-nick triggering the ban/pwn and i dunno how to do that yet.

[zunnie]


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Custom commands in BRenBot? (Little IRC script) [message #75076] Wed, 31 March 2004 14:06 Go to previous messageGo to next message
snipesimo is currently offline  snipesimo
Messages: 764
Registered: February 2003
Karma: 0
Colonel
Use $regex and use a mod list.

if ($regex($lower($strip($1)),( $+ %mods $+ ))) {

then for the variable:
%mods snipesimo|flaw932|ohnoou812|zonekill9|gbcbsfnst|kikilink3|egg098|bommae|chitzkoi2|rocsnper|grebstlaz|rachael6|taardvark|lekrovov2|dmdhoomer|jessie182|uldschool|ghostopsx|dogtired2|littlfuzz|dellton|falmark|mortock42|wackoglow

Also if you want to do a page command try something like this:
msg $chan !page $strip($remove($1,Smile Usage: !kick <reason>
Custom commands in BRenBot? (Little IRC script) [message #75117] Wed, 31 March 2004 16:46 Go to previous messageGo to next message
Blazer is currently offline  Blazer
Messages: 3322
Registered: February 2003
Location: Phoenix, AZ
Karma: 0
General (3 Stars)
Administrator/General

Note I will probably add custom commands ability to brenbot, probably will use an XML format like br.net, but only if its requested on mantis.n00bstories.com Razz
Custom commands in BRenBot? (Little IRC script) [message #75159] Wed, 31 March 2004 19:09 Go to previous messageGo to next message
xptek_disabled is currently offline  xptek_disabled
Messages: 1308
Registered: September 2003
Karma: 0
General (1 Star)
Requested Very Happy

Local oper-irc.ugin.net - A Scrumfy free IRC.
Jonwil > SK
http://www.byterush.net/
Custom commands in BRenBot? (Little IRC script) [message #75324] Thu, 01 April 2004 15:19 Go to previous message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

Blazer

Note I will probably add custom commands ability to brenbot, probably will use an XML format like br.net, but only if its requested on mantis.n00bstories.com Razz


So i wont get banned from the Mantis-project when i post request to have that in a future update? Smile
I'd love to add some custom commands Smile I already did so via little irc scripts and so on. But default support for this inside BRenBot would be very ace ^^

[zunnie]


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Previous Topic: Brenbot not loading
Next Topic: Mantis: Report all BRenBot BUGS and FEATURE REQUESTS Here.
Goto Forum:
  


Current Time: Wed Sep 04 23:19:04 MST 2024

Total time taken to generate the page: 0.00771 seconds