egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

solicitud de guiones
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Tue Mar 16, 2021 9:03 am    Post subject: solicitud de guiones Reply with quote

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
View user's profile Send private message
CrazyCat
Owner


Joined: 13 Jan 2002
Posts: 848
Location: France

PostPosted: Tue Mar 16, 2021 9:45 am    Post subject: Reply with quote

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
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Tue Mar 16, 2021 5:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3733
Location: Mint Factory

PostPosted: Wed Mar 17, 2021 4:43 am    Post subject: Reply with quote

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
View user's profile Send private message
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Wed Mar 17, 2021 7:03 am    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3733
Location: Mint Factory

PostPosted: Wed Mar 17, 2021 12:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Wed Mar 17, 2021 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3733
Location: Mint Factory

PostPosted: Fri Mar 19, 2021 8:58 am    Post subject: Reply with quote

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
View user's profile Send private message
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Fri Mar 19, 2021 10:16 am    Post subject: Reply with quote

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
View user's profile Send private message
simo
Owner


Joined: 22 Mar 2015
Posts: 646

PostPosted: Fri Mar 19, 2021 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Sat Mar 20, 2021 5:48 am    Post subject: Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3733
Location: Mint Factory

PostPosted: Sun Mar 21, 2021 2:59 am    Post subject: Reply with quote

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
View user's profile Send private message
flink
Voice


Joined: 21 Feb 2021
Posts: 22
Location: Canarias

PostPosted: Sun Mar 21, 2021 6:49 am    Post subject: Reply with quote

a y esta la pregunta que formulo,


imagino que :
putquick "MODE #canal +o $bot"
putquick "MODE #canal -o $pepe"
Back to top
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3733
Location: Mint Factory

PostPosted: Sun Mar 21, 2021 6:52 am    Post subject: Reply with quote

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
View user's profile Send private message
simo
Owner


Joined: 22 Mar 2015
Posts: 646

PostPosted: Sun Mar 21, 2021 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber