Author Topic: PW  (Read 2968 times)

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
PW
« on: November 13, 2008, 05:52:31 AM »
Can you please script this Phrasewarn plugin for Stealth Bot? Criteria is listed below.

When a phrasewarn word is said, a warn is recorded and they are told via a whisper they have a warn against them. Responses can be turned on or off via a command.
The punishment can be set to Kick, Ban, Timeban, Exiled, (if the bot has ops) or removal of access (if they have any).
When carrying out the above (Kick, Ban, Timeban, Exiled (Ban command first then exiled)), the reason should read "[PWARN] Your PWarn amount has reached its maximum. Please see the bot's administrator to get un" & PWarnpunishment "." (Unless of course its RA)
Use of a database for number of warns and the reason they were warned, along with the date and time of the incident(s) so no one can accuse it of being edited.
PWList uses a text file for easy access to add multiple words at once.
Script prefix is pwarns
Edit: Script has a User Bypass list. If user has Flags "A", "M", or "O", or on a Safelist database (IE Safe.dat) User cannot be warned. Also, this script should be designed to work with modacc (Mod Access), Timeban, and Phrases that are not tolerated.
Safedel and safeadd are disabled.

The commands are as follows:

IN BOT ONLY
/pwall
~Addchats the following information:
  User in Cyan; Warn amounts in Orange unless warn amount >= Max warns then Red; the word that they got warned for should appear in Blue

"ADMIN", "MODERATOR", "OWNER" FLAGS
Definition of Admin: User has at least 100 access or has flag of "R"
Definition of Moderator: Bot holds Shaman and is WAR3 or has flag of "M"
 
Definition of Owner: User has at least 150 access AND has flag of "O"

These commands will have the trigger built into the command. I am using " ? " for "R", "M", "O" commands.
"R" "M" "O"
?pw <on/off>
~Sets the pwarn script on/off
~~On means it will record warns
~~Off means no one will be warned

  ?pwstatus
  ~Shows the status of ?pw
~~Whispers the current status of ?PW and the current punishment

 
 .papprove <Username>
 ~Allows Username to be readded to the safelist

 
 .pdisprove <Username>
 ~Does not allow Username to be readded to the safelist

 
 .psafelist
 ~Displays usernames who are pending approval to be added back to the safelist.


90 Access

.pwa
[NEW AMOUNT]
~Changes the max warn amount before an action is carried out.

.pwp [NEW PUNISHMENT]
~Changes the current punishment to [NEW PUNISHMENT].
Can only be set to: Kick, Ban, Exile, Timeban, or RA (Removal of Access).

.pwspam <on/off>
~Toggles responses on or off.

70 Access

?addpwarn <Phrase>
~Adds PHRASE to the Pwarnlist
~~Must be at least 3 letters long
~~Use of * means wildcard
~~~So if hat is on the pwlist
~~~you will get warned for saying that

?delpwarn <Phrase>
~Removes PHRASE from the Pwarnlist
~~Returns Error if word is not on list

30 Access

.cpw [Username]
~whisper member's current warn count
~~Users with the flags "A", "M", "O" or access of 60 or higher can use this command  to check someoneelse's warn amount.

20 Access


.pwlist
~shows the words that will earn you a warn and cost you a ban, kick, exile, etc
~~Command can only be used once every 10 seconds (plus 3 per every word to prevent flooding)
~~~So if Pwlist is:
  • Word1
  • Word2
  • Word3
~~~Then the next time it could be said is 16 seconds later (IF THIS IS POSSIBLE!)

Edit:
Better description: Basicallly, the bot checks if the user has access or not.
Is this user spamming a phrase? Then PWarnReason = Spamming
If not, is the user Abusing Access? (IE 5 warns/bans/kicks within 1 minute total) If Yes PWarnReason = Abuse of Access
If not, bot checks to see if the user is safelisted. If so, user is removed from safelist after PWA/2 is met. User cannot be readded to safelist unless approved by any Admin, Moderator, or the Owner of the Bot.
If PWarnKick = "False" then the Bot records Username, Offense (Phrase if a word), Date (Day Month Year) and time, and whispers user "[PWarn] You have been warned for " & PWarnReason. Else it kicks the person from the channel with [/color]"[PWarn] You have been warned for " & PWarnReason as the kick message.



THIS IS BASIC TEMPLATE OF WHAT I WOULD LIKE SO FAR (And what I can get across without being misunderstood). Will edit when I would like something else added.
« Last Edit: December 04, 2008, 03:55:17 PM by Shadow »
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
PW
« Reply #1 on: November 13, 2008, 01:10:32 PM »
I might do this.
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
PW
« Reply #2 on: November 13, 2008, 01:12:15 PM »
Doesn't mind me. I know you are busy with Fail Bot and all, so take your time.
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
PW
« Reply #3 on: November 13, 2008, 08:42:12 PM »
AddChats with multiple colors are beta only, FYI.

I would do this script, but Hero already beat me to it =/
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

Hero

  • Administrator
  • Hero Member
  • *****
  • Posts: 502
    • View Profile
    • http://rev7.net
PW
« Reply #4 on: November 14, 2008, 04:53:47 AM »
You can do it ;\
Hero
AKA: HeroAssasin and Mike
- - - - -  - - -
Visit Clan R77
- - - - -  - - -
Please do not PM me with random questions. That is what I made these forums for.

Noob ~Vector

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
PW
« Reply #5 on: November 14, 2008, 06:38:53 AM »
Hmm doesn't mind me who makes it, I just want it so it works. Also I forgot one detail that I added ><
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
PW
« Reply #6 on: November 17, 2008, 08:09:34 AM »
At the moment, you can use the computer at anytime. I don't. For now, you do it. I will be off and on for awhile now up to a month.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
PW
« Reply #7 on: December 04, 2008, 03:31:43 PM »
Fine. I will do this.

This looks like its going to be a monster script. It's possible for me to do though.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

de80

  • Sr. Members
  • Full Member
  • ***
  • Posts: 148
    • View Profile
PW
« Reply #8 on: December 04, 2008, 03:37:01 PM »
Cool i want this 2
[div align=\'center\']New To VBS World trying to learn.
 [/div]

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
PW
« Reply #9 on: December 04, 2008, 03:52:20 PM »
Thanks a million Vector!
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
PW
« Reply #10 on: December 04, 2008, 03:55:47 PM »
I will supplement shadow's request for the /pwall command to StealthBot 2.6r3. I can't do multi-colors in 2.6r3. It will be vbCyan.

I will also put this up on the server.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
PW
« Reply #11 on: December 04, 2008, 04:02:01 PM »
Meh..... oh well... Make it Orange ><
« Last Edit: December 04, 2008, 04:02:51 PM by Shadow »
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
PW
« Reply #12 on: December 04, 2008, 06:04:14 PM »
Just to tell you right away, the phrase warn plugin has to add a dummy account:

Code: [Select]
  If GetSetting("pw", "Dummy") = "" Then
    SetSetting "pw", "Dummy", True, "", False
    Command BotVars.Username, "/set DummyAcc 999", True
    AddChat vbGreen, "[PW] Set up the dummy account for the timeban command."
  End If

Code: [Select]
        Case "kick", "ban"
          AddQ "/" & pwWarnAction & " " & PsD2 & Username & " Phrase warns activated"
        Case "timeban"
          Call timeban_Event_UserTalk("DummyAcc", "", BotVars.Trigger & "timeban " & Username & " " & pwNumMinutes, 0)
      End Select

This is so it can reference the timeban plugin without me having to more code in the plugin than I have to.
« Last Edit: December 04, 2008, 06:26:24 PM by Vector »
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector

ArticWolve

  • Global Moderators
  • Hero Member
  • *****
  • Posts: 636
    • View Profile
    • http://
PW
« Reply #13 on: December 04, 2008, 06:20:01 PM »
Just have people change it MANUALLY to their account ><
Quote
Darker then the darkest shade of night...
    A Rebel at heart... A criminal by mind
    All in the eyes of the beholder... is the truth to life
    But Th---The Only---The One and Only True Master of Death is the Reaper itself
[/color]
[/color]
[div align=\'center\'][img]http://img261.imageshack.us/img261/9411/mydesktopce6.jpg\" border=\"0\" class=\"linked-sig-image\" /][img]http://www.danasoft.com/sig/238153.jpg\" border=\"0\" class=\"linked-sig-image\" /][/div]                     [div align=\'center\']    Click ME for my forums. You know you want to click ME. Come on CLICK ME DAMN IT! But don't click THIS!![/div]

Vector

  • Administrator
  • Hero Member
  • *****
  • Posts: 550
    • View Profile
    • http://clanmage.phost.ws
PW
« Reply #14 on: December 04, 2008, 06:27:00 PM »
I will use the bot's username instead.
I am an Unofficial StealthBot Technician, an Unofficial StealthBot scripter, among other things. See my about page for more info.

Quote from: ArticWolve
Sorry I went down. Had internet problems with a cracker-jack-licensed driver hitting my internet pole (about 8 of them fell) and drooping my phone and electricity. Sorry ><

Rev77.net Plugins Manager

Proud host of Vector.no-ip.info | VectorJBLS.no-ip.org Status: [img]http://rev77.net/ServerCheck/check.asp?query=check&server=VectorJBLS.no-ip.org_status.png\" border=\"0\" class=\"linked-image\" /]

Shito-Ryu Karate-Do Genbu-Kai Rank: 8th Kyu (White belt, one stripe)

Rev77.Net Remote Support (Double-Click my name only if you were told to)

If the above link doesn't work, or if you use Vista, try this alternate link.

Noob ~Vector