This is just a small snipped allowing people with op to do actions that allow to kick a user ban them or simply warn them.
Also a help command to explain how to do it to other ops. replace {s) with the what you wantalso change to your bots name just to make it simpler for the person reading it :)
on @:TEXT:Kick*&:?:/kick $2-
on @:TEXT:Ban*&:?:/ban $2-
on @:TEXT:warn*&:?:/notice $2- :Warning sent from $nick On $asctime(hh:nn:ss)
on @:TEXT:(s)help op:*:/msg $nick As op you can kick and ban soldier can do that for you simply type | /msg $nick /msg <BOTNAME> <action> <#channel> <nick> <reason> | /msg $nick With the warn application you need to type | /msg $nick /msg <BOTNAME> warn <nick> <reason> This will warn them and if they carry on you can kick them
@jethro_ i have edited my help snippet now anyways, stored it in an ini file allowing multiple help much quicker
on *:TEXT:*:*:{
if $1 == Shelp {
if $readini(help.ini, help, $2) {
notice $nick $2 : $readini(help.ini, help, $2)
notice $nick For more help go to http://www.soldercom.tk }
else { notice $nick No commands have been saved with that name sorry }
}
else { halt }
}
menu * {
Help with actions
.Add Word:{
var %word $?="Enter the actions name"
var %help $?="Enter the help for that word"
writeini help.ini Help %word %help
}
.Del word:{
var %word $?="Enter the actions name"
if !$readini(help.ini, help, %word) { Echo No words have Been saved with %word }
else {
echo $?!=" %word Has been fount Def: $readini(help.ini, help, %word) : Are you Sure you want to delete? "
if $! = $true {
remini help.ini help %word
echo %word has been removed }
else { echo %word was not removed }
}
}
.$iif($file(help.ini).size <= 8,$style(2)) Word infomation:{
var %word $?="Enter the actions name"
if !$readini(help.ini, help, %word) { Echo No words have Been saved with %word }
else { Echo %word Has been fount Def: $readini(help.ini, help, %word) }
}
}
see alot more simple.
And since i make a new help for each action i make it was kind of making my remotes page look bleak and annoying, having to add an
if $1--3 == word { action }
each time got boring so i made it easier on my self :)
hmm u see the way i got it worked at is soldier will ignore if someone trys to kick a op because i have a code some where that makes him ignore certain commands and since soldier (bot) adds ops as level 99 (second best best being owner) its ok so yea others may want to edit, but the good thing is i aint gona make u ask for permission or wut not so yea go ahed and play around with it :)
Hey guys just saw this so i better fill you in:
My bot has about 100 help lines for each diffrent set of levels for users
i have 4 users sets so that is about 400 not including extra for certain users.
I know the file would shourtan the code it self but i have many many pages fo code so it all good and i find it easy to change quicker as i have a code that let's me add what ever to my remotes ;)
Well I'm just saying that if he has 200 lines of help, he could read from a file. And he wouldn't need the code to write the text to a file if he knows how to make and where to save the file so it can be read. He would only need the code to write the text to a file IF he wanted others to use this script. But also i guess the person that does get this script could do it :P
you can remove the /'s from the begining of the command part of the event
also it makes the code much easier to read when its a long line if you use { and }
ex:
on @:TEXT:(s)help op:*: {
msg $nick As op you can kick and ban soldier can do that for you simply type
msg $nick /msg <BOTNAME> <action> <#channel> <nick> <reason>
msg $nick With the warn application you need to type
msg $nick /msg <BOTNAME> warn <nick> <reason> This will warn them and if they carry on you can kick them
}