This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

solicitud de guiones

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

solicitud de guiones

Post by flink »

hola buenas,
pregunto si alguien me puede ayudar, necesito una tcl para mi bot que cuando algun @ de la sala baje al bot a + o a user normal , el bot revierta y sea el bot quien baje al @ y le deje un mensaje

muchas gracias
User avatar
CrazyCat
Revered One
Posts: 1215
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

Hi,

Can you please use english, because I have to use a translator to read you and it may occure mistakes.

If the translation is good, you want to deop an operator who has deopped the bot, and the bot must retake its @ ?

This is the revengebot mode (.chanset #channel +revengebot).
Note that your eggdrop must be identified to services and you have to well set the need-op and revenge-mode.

Try using that, and if it doesn't do as you want, I can create you a short script.
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

Hi CrazyCat, first of all thank you for replying,
I am sorry as I am Spanish I wrote in my language I will use the translator if something is wrongly said or interpreted I apologize but I don't know English.
I did what you told me and the result is negative, I show you what happened:
me ¦ .chanset #misala +revengebot
bot ¦ Successfully set modes { +revengebot } on #misala.

a @ from the room using ircap:

soy@ set mode [-o bot ]
soy@ set mode [+o bot ]
soy@ set mode [+b *!*@ipvirtual ]
Banned: bot
bot has been banned by soy@ [testing].

I think it doesn't do what I need it to do, or I don't know if I did something wrong.
again thank you very much in advance and sorry if the translator messes it up
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Danos un ejemplo de lo que debería suceder porque al traducir perdemos el significado de lo que quieres lograr.

soy@ set mode [-o bot ] - acción "enviar mensaje" ?
soy@ set mode [+o bot ] - acción "enviar mensaje" ?
soy@ set mode [+o user ] - bot@ set mode [-o user ] ?
Once the game is over, the king and the pawn go back in the same box.
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

hello caesar
what I need:
pepe set mode [+v bot]
pepe set mode [-o bot]
bot set mode [-o pepe] message "what you are doing is not helping the smooth running of the channel".
and for the bot to keep its @
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

What channel services dose your network have? I mean Chanserv, X like on Undernet? Is it an irc operator?
Once the game is over, the king and the pawn go back in the same box.
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

for irc chatzona CHaN

sorry i know i didn't comment at first but is it possible for the bot to send me a memo when this kind of thing happens thank you.
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I'm not familiar with that network. If your bot looses @ how would it get it back?

How would the bot send you a memo? Dose the network have a service like MemoServ or something like this?
Once the game is over, the king and the pawn go back in the same box.
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

if the network has chanserv and memos service is also working

for the bot to retrieve the @ :
CHaN sets mode [+o bot ]

for the memo:
msg memo send NICK MESSAGE

is what I can think of
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

the general rule is to just not to add nicks in access that fight your eggdrop bot with deop/kicks/bans or whatever
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

ok, no es lo que esperaba ya que me quedo igual que cuando formule la primera pregunta , pero se agradece de igual manera vuestros comentarios. mil gracias.

en principio el único que tiene acceso al eggdrop soy yo como dueño de el, ya que aun se esta configurando a la sala con las necesidades que van surgiendo
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bot set mode [-o pepe] message "what you are doing is not helping the smooth running of the channel".
and for the bot to keep its @
how dose the bot regain his @ status to then remove the @ from pepe?
Once the game is over, the king and the pawn go back in the same box.
User avatar
flink
Halfop
Posts: 70
Joined: Sun Feb 21, 2021 9:27 am
Location: Canarias

Post by flink »

a y esta la pregunta que formulo,


imagino que :
putquick "MODE #canal +o $bot"
putquick "MODE #canal -o $pepe"
User avatar
caesar
Mint Rubber
Posts: 3776
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

If bot looses @ how can it send those commands? Using some special services like ChanServ or something like it?
Once the game is over, the king and the pawn go back in the same box.
s
simo
Revered One
Posts: 1069
Joined: Sun Mar 22, 2015 2:41 pm

Post by simo »

ive checked for that network chatzona and i found it and checked for what services it uses and it turns out they use chanserv only they changed the nick of chanserv and nickserv to CHAN and NICK wich is common for latin america origin IRC networks

perhaps this could be of use :

Code: Select all

bind mode - "*-*o*" protect:autoreop

proc protect:autoreop {nick uhost hand chan mode target} {
global botnick
if {($target == $botnick) && ($nick != $botnick)} {
 putnow "privmsg chan op $chan $botnick"
 putnow "mode $chan -o $nick"
  putnow "privmsg $nick :$nick \002what you are doing is not helping the smooth running of the channel\002" 
  putnow "privmsg $chan :$nick \002what you are doing is not helping the smooth running of the channel\002" 
 }
}

bind mode - "* +b" prot_banX

proc prot_banX {nick uhost hand chan mc ban} {
global botnick  botname
 if {[string match "$ban" "$botname"]} {
  putnow "privmsg chan unban $chan $botnick"
  putnow "privmsg $chan :$nick \002what you are doing is not helping the smooth running of the channel\002" 
  putnow "privmsg $nick :\002what you are doing is not helping the smooth running of the channel\002" 
 putnow "mode $chan -o $nick"
 }
}

ofcourse your eggdrop nickname must be registered with NICK and be added in access list of channel as chanop @
Post Reply