| View previous topic :: View next topic |
| Author |
Message |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Tue Mar 16, 2021 9:03 am Post subject: solicitud de guiones |
|
|
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 |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Tue Mar 16, 2021 9:45 am Post subject: |
|
|
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. _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Tue Mar 16, 2021 5:07 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Wed Mar 17, 2021 4:43 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Wed Mar 17, 2021 7:03 am Post subject: |
|
|
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 @ |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Wed Mar 17, 2021 12:49 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Wed Mar 17, 2021 3:41 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Fri Mar 19, 2021 8:58 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Fri Mar 19, 2021 10:16 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Fri Mar 19, 2021 8:18 pm Post subject: |
|
|
| the general rule is to just not to add nicks in access that fight your eggdrop bot with deop/kicks/bans or whatever |
|
| Back to top |
|
 |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Sat Mar 20, 2021 5:48 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Mar 21, 2021 2:59 am Post subject: |
|
|
| Code: |
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. |
|
| Back to top |
|
 |
flink Halfop

Joined: 21 Feb 2021 Posts: 53 Location: Canarias
|
Posted: Sun Mar 21, 2021 6:49 am Post subject: |
|
|
a y esta la pregunta que formulo,
imagino que :
putquick "MODE #canal +o $bot"
putquick "MODE #canal -o $pepe" |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Sun Mar 21, 2021 6:52 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
simo Owner
Joined: 22 Mar 2015 Posts: 941
|
Posted: Sun Mar 21, 2021 7:51 am Post subject: |
|
|
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: |
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 @ |
|
| Back to top |
|
 |
|