Author Topic: Regbot (Verli style)  (Read 7336 times)

0 Members and 1 Guest are viewing this topic.

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Regbot (Verli style)
« on: 15 December, 2006, 10:05:57 »
If you are tired to ask passwords from users, or you simply don't like to do it, use this script: It register the users as Verli does 8)
Commands:
!regnew <nick> [<profile>] - Use this to register a new user. If no profile given, it will be Reg. Short command: !rn
!regdelete <nick> - Use this to delete a registration of a user. You can delete registered and pre-registered users too. Short command: !rd
!reglist [<profile/all>] - Without parameter it will list those users, whoes have been pre-registered, but didn't set up their passwords. If profile specified, just those users will be shown. Else parameter is 'all', then all registered users will be shown per profile. Short command: !rl
!regpasswd <nick> [<password>] - Set up or modify the user's password. If no password given, the script will generate one. Short command: !rp
!regclass <nick> <class> - Use this to change a registered or pre-registered user's profile. Short command: !rc
!passwd [<password>] - With this command can you set up your password, if no password given, script will generate a safety one.
!genpass [<length>] - Use this command to generate a safety password. If no length given, it will be 8 character long. (min length: 4, max length: 20)
!regme [<password>] - Enable the user to register himself/herself on the hub. If no password given, he/she will be added to the pre-registered users, and can set up his/her password later.
!regenable - To enable the regme function (basely enabled)
!help - To see avaible commands for you.
!regdisable - To disable the regme function.
Finally, on enter the script shows some information to the user about himself/herself.
Script too long, so attached ;)
About:
Code: [Select]
Register bot by Hungarista
If you don't like asking users to give password, use this script, it register the users as Verli does:
Users will be registered, and they have to set up their passwords by a simple command. If they don't write
password, the script generate one, and they can also use this generator. Commands are the same as in Verli:
!regnew (!rn) <nick> <profile>
!regdelete (!rd) <nick>
!reglist [<profile/all>]
!regpasswd <nick> <pass>
!regenable
!regdisable
!regme <pass>
Made for PtokaX 0.3.5.2. (LUA5.11)
Version 1.2
Used codes: American Idiot's password-generator, Madman's table-commands
############################################### Changelog ###############################################

@@@ 2006. 12. 15. (v1.0) @@@
Main script is ready

@@@ 2006. 12. 16. (v1.1) @@@
Added: !regpasswd command to change user's password (requested by -SkA-)
Added: !regclass command to change registered users's profile
Changed: Code optimization for lower memory & CPU usage, thanks the advices for NightLitch

@@@ 2006. 12. 17. (v1.2) @@@
Added: !help command to see what commands are avaible for this script
Changed: !reglist command to list all registered users (or just the given profile) (requested by Alexinno)
Changed: Many part cleaned up and became easier than before
Changed: Table-commands return values (help need't to be discard)

##########################################################################################################
« Last Edit: 17 December, 2006, 17:16:45 by Hungarista »

PtokaX forum

Regbot (Verli style)
« on: 15 December, 2006, 10:05:57 »

Offline -SkA-

  • Double Ace
  • *
  • Posts: 133
  • Karma: +24/-2
Re: Regbot (Verli style)
« Reply #1 on: 15 December, 2006, 10:24:19 »
Nice script and it works prefectly   ;D

Now I'll wait for the !regpasswd <nick> <password>  command  ;)
???:::??x??em?-N????:::??? ?wN??

BrianzaLand Blog" style="border:0

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: Regbot (Verli style)
« Reply #2 on: 16 December, 2006, 14:28:50 »
 :-*
thx Hungarista , nice work

everything works perffect just the !reglist command show's me [15:32:35] <???Five> The list is empty.
any ideea why ?
« Last Edit: 16 December, 2006, 14:40:55 by Alexinno »

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: Regbot (Verli style)
« Reply #3 on: 16 December, 2006, 14:35:19 »
New version is avaible for use, changes:
Added: !regpasswd command to change user's password
Added: !regclass command to change registered users's profile
The code has been optimized a bit too, and unused parts have been removed. Bugreports, feature-requests are always welcomed.

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: Regbot (Verli style)
« Reply #4 on: 16 December, 2006, 14:45:59 »
!reglist - Use this to list those users, whoes have been pre-registered, but didn't set up their passwords. Short command: !rl

can you make this command to show all the registred users and their profile?

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: Regbot (Verli style)
« Reply #5 on: 17 December, 2006, 17:10:53 »
can you make this command to show all the registred users and their profile?

doesn't need it , i found what i was looking for  here

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: Regbot (Verli style)
« Reply #6 on: 17 December, 2006, 17:19:02 »
I am working now, so I am ready with it just now. But I did it, please use then ;D First post updated.

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: Regbot (Verli style)
« Reply #7 on: 17 December, 2006, 17:33:00 »
I am working now, so I am ready with it just now. But I did it, please use then ;D First post updated.

works perfect ;)
thx

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: Regbot (Verli style)
« Reply #8 on: 04 January, 2007, 12:44:02 »
Hungarista i have one more request , can you do something that only OP's can see the script help?
pls :)

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: Regbot (Verli style)
« Reply #9 on: 04 January, 2007, 12:51:48 »
Yes, and sorry about this stupid mistake ;D
« Last Edit: 04 January, 2007, 12:53:41 by Hungarista »

Offline Alexinno

  • Double Ace
  • *
  • Posts: 113
  • Karma: +13/-2
  • -= Hard work makes dreams come true =-
    • IlogicGroup Webserver
Re: Regbot (Verli style)
« Reply #10 on: 04 January, 2007, 13:20:06 »
no problem , thx ;)

Offline [OnLy]-PiTiCu

  • Junior Member
  • **
  • Posts: 16
  • Karma: +1/-0
Re: Regbot (Verli style)
« Reply #11 on: 07 June, 2008, 12:49:43 »
Hello. Pls convert this script for the NewApi for Ptokax 0.4.1.0

Thx
[OnLy]-PiTiCu

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 744
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: Regbot (Verli style)
« Reply #12 on: 07 June, 2008, 12:51:44 »
Hello. Pls convert this script for the NewApi for Ptokax 0.4.1.0

Thx

Make a conversion request in the appropriate board, please.
Everything could have been anything else and it would have just as much meaning.

Offline Thor

  • Scripter
  • Lord
  • ******
  • Posts: 290
  • Karma: +45/-5
    • Hungarian Direct Connect Site
Re: Regbot (Verli style)
« Reply #13 on: 07 June, 2008, 15:30:44 »
That's not necessary, I tried it, it seems ok. You can find it here

PtokaX forum

Re: Regbot (Verli style)
« Reply #13 on: 07 June, 2008, 15:30:44 »