FlexHub Forum

FlexHub Development

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
FlexHub Development
« on: June 17, 2009, 08:29:55 »
FlexHub is DC++ hubsoftware programmed completely in LUA by Daywalker™ and FlipFlop™.
wxLua is used to create an advanced, but easy to use graphical user interface, with very detailed monitoring.

Here's a list of some of the things that are supported:
- ADC and NMDC protocol support, users of different protocols can chat and PM
   Note: searching and downloading isn't possible between different protocols.
- Remote GUI, the GUI can be used locally or remotely, communication is over TCP
- Deflood system, highly configurable
- Text scanner for Mainchat, PM and Searches
- Unlimited userprofiles
- Advanced trafficmonitor
- Mainchat and PM integrated in GUI, chat from the GUI
- Detailed hubstatistics



Planned features:
- Multiple scripting-API's, different API's can be programmed.
  It will be possible to run for example Verli, Ptokax or Eximius scripts, at the same time.
  Not all of these API's will be available right away, let us know which one is your favorite.
- Multilanguage support, the language for the GUI can be chosen seperately from the language of the hub.
  It will be possible for the hub to send replies to the user in the language determined with Geo-IP.
  Regged users can set their own language.

Console:


Mainchat:


Security - ChatLimits (deflood):


Security - TrafficLimits (deflood):


Security - TextScanner:




We are working on creating a beta-release right now, so keep an eye on this forum to see when you can get your hands on it. A releasedate? It's done when it's done  ;)
« Last Edit: November 03, 2009, 14:24:28 by FlipFlop™ »
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.

Offline Daywalker™

  • Developer
  • *****
  • 1
Re: FlexHub Development
« Reply #1 on: June 19, 2009, 15:15:26 »
Command structure that is used in Flexhub will be like this:

Code: [Select]
Help for your profile [Hubowner]:

Command Description
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Kick & Ban commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
!drop <user> <reason> Disconnects user from hub
!warn <user> <reason> Warns user in hub
!kick <user> <reason> Kicks and disconnects user from hub
!ban <user> <reason> Bans and disconnects user from hub
!kill <user> <reason> Kills and disconnects user from hub
!banip <Ip> <reason> Bans Ip from hub
!nickban <nick> <reason> Bans nick from hub
!tempban <user> <time> <reason> Bans and disconnects user from hub for amount of time
!tempbanip <Ip> <time> <reason> Bans Ip from hub for amount of time
!tempnickban <nick> <time> <reason> Bans nick from hub for amount of time
!tempkill <nick> <time> <reason> Kills user from hub for amount of time
!rangeban <IpStart-IpEnd> <reason> Bans a range from hub
!temprangeban <IpStart-IpEnd> <time> <reason> Bans a range from hub for amount of time
!unban <user/Ip> Removes user/Ip from banlist
!shownickbans Shows all nickbans
!showipbans Shows all ipbans
!showrangebans Shows all rangebans
!showallbans Shows all bans

Register commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
!addreg <nick> <password> <profile> <Ip> (optional) Register user in hub
!upgrade <user> <profile> Upgrade userprofile
!repass <password> Enter new password
!repass <user> <password> Enter new password for a user
!delreg <nick> Remove user from Register

Information commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
!help or !h Show this help
!dns <dns> Resolves a dns
!revdns <ip> Resolves an Ip
!hubinfo or !hi Shows hubinfo
!userinfo or !ui <user> Show info about user
!getpass <user> Shows pasword of user

Other commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯
!topic <msg> Sets topic in hub
!mass <msg> Sends mass message to all users in the hub
!mute <user> Mutes selected user
!unmute <user> Removes mute from selected user
!kennylize <user> Kennylizes selected user
!unkennylize <user> Unkennylizes selected user
!muppetize <user> Muppetize selected user
!unmuppetize <user> Unmuppetize selected user
!nickchange <oldnick> <newnick> Change the nick of selected user
!restartscripts or !rs Restart some important scripts


!myip Shows your IP
!getpass Shows pasword of yourself


Time based functions: M = month, d = day, h = hour, m = minute. ex: 3*d = 3 days

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Hub settings commands will look like this:

Code: [Select]
SettingsHelp for your profile [Hubowner]:

Command Description
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Global commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
!sethelp Show this help
!setbotname <botname> Set new botname
!setbotdesc <desc> Set new bot description
!setopchatname <botname> Set new OpChat name
!setopchatdesc <desc> Set new OpChat description
!setfeedname <botname> Set new Feed name
!setfeeddesc <desc> Set new Feed description
!sethubname <hubname> Set new hubname
!sethubdesc <desc> Set new hub description

Profile commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Deflood commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

Other commands:
¯¯¯¯¯¯¯¯¯¯¯¯¯¯
!runcmd <whatever> Set/Change hubsettings

¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Education begins a gentleman, conversation completes him.

Offline FlipFlop™

  • FlexHub Developer
  • *****
  • 505
Re: FlexHub Development
« Reply #2 on: November 08, 2009, 21:29:11 »
Updated hubcommands overview 2010/01/29:

Code: [Select]
HELP
   Help for Hubowner's profile

   Command                  Description
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   Hub Information Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !help Show this help (!hi)
   !history [<number of lines>] Show mainchat/chatroom history
   !hubinfo Shows general hub information
   !stats Shows hub statistics
   !corestats Shows hubcore statistics
   !showconnects Shows new connections over the past five minutes
   !showdisconnects Show recent disconnection reasons
   !showlogins Show users currently logging in.
   !showports [<portnumber>] Shows number of connections for all ports (if no port specified) or connected users to specific port

   User Information & User Control
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !myip <message> Show your own IP number
   !userinfo <nick> Shows online and offline user information (!ui)
   !ipinfo <ip> Shows online and offline IP information (ii)
   !dns <dns-address> Resolves a dns-address to an IP
   !revdns <ip> Reverses an IP to a dns-address
   !hide Hide yourself from profiles lower than your own
   !unhide Unhide yourself
   !hide <nick> Hide a user/chatroom from users lower than it's own
   !unhide <nick> Unhide a user/chatroom
   !showsid <sid> Shows nick and IP of a user-ID (SID)
   !showstatus <nick> Shows the last traffic to/from the user

   !kenny <nick> Kennylize a user in mainchat
   !unkenny <nick> Unkennylize a user in mainchat
   !muppetize <nick> Muppetize a user in mainchat
   !unmuppetize <nick> Unmuppetize a user in mainchat
   !mute <nick> Mute a user in mainchat, use !mute <nick> -s for stealth mute
   !unmute <nick> Unmute a user in mainchat
   !report <message> Report something to the operator chatroom
   !say <nick> <message> Impersonate someone in mainchat

   Registration Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !addreg <nick> <pass> <profile> [<ip>]Register a user (!ar)
   !delreg Remove a registered account
   !showreg <nickname>    Show a user's registration information
   !changereg <nick> <newnick> Change the nickname of a registered user
   !getpass Shows your own password
   !getpass <nick> Shows password of registered user
   !setpass <password> Change your own password
   !setpass <nick> <password> Change password of registered user
   !setprofile <nick> <newprofile> Change profile of registered user
   !bindip <nick> <ip> Bind an IP to a useraccount.
   !bindip <nick> Remove IP Binding from a useraccount.
   !showprofiles Shows all profiles
   !showregs <profilename> Shows registered users for choosen profile (!showregs *  shows all registered users)

   Kick & Ban Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !drop <nick> <reason> Disconnects user from hub
   !dropsid <sid> <reason> Disconnect a user
   !warn <nick> <reason> Warn a user
   !kick <nick> <reason> Kicks and disconnects user from hub
   !ban <nick> <reason> Bans user IP and disconnects user(s) with this IP
   !banip <ip> <reason> Bans IP and disconnects users with this IP
   !bannick <nick> <reason> Bans nickname
   !kill <nick> <reason> Bans user IP and nick and disconnects user(s) with this IP
   !banrange <start-ip> <end-ip> <reason>Bans an IP range (and disconnects user(s) with IP in this range)
   !showallbans Shows all nick/ip/rangebans
   !showipbans Shows all IP bans
   !shownickbans Shows all nickbans
   !showrangebans Shows rangebans
   !tempban <nick> <time> <reason> Temporarily bans user IP and disconnects users with this IP
   !tempbanip <ip> <time> <reason> Temporarily bans IP (and disconnects users with this IP)
   !tempbannick <nick> <time> <reason>Temporarily bans nickname
   !tempkill <nick> <time> <reason> Temporarily bans nick and IP (and disconnects users with this IP)
   !tempbanrange <start-ip> <end-ip> <reason>Temporarily bans an IP range (and disconnects user(s) with IP in this range)
   !baninfo <nick> or <ip> Shows information about banned nick or IP
   !unban <nick/ip/range> <reason> Unbans a nick, IP or IP-range
   !clearlastbans <hours> Remove bans that are added during the past number of hours
   !cleartempbans <hours> Remove tempbans that will expire in the next number of hours

   Script Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !restartscripts Restart hubscripts

   Admin Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !lockmain Lock mainchat, only operators can speak
   !unlockmain Unlock mainchat
   !lockhub Lock hub, no new connections will be allowed
   !unlockhub Unlock hub

   Miscellaneous Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !blockctm <nick> Block a user from making new connections
   !unblockctm <nick> Unblock a user from making new connections
   !blockpm <nick> Block user's private messages
   !unblockpm <nick> Allow a user to send private messages again
   !hideshare Hide your share, this will block incoming connection attempts
   !unhideshare Unhide your share, this will allow incoming connection attempts
   !redirect <nick> <address> [<reason>]Redirect a user
   !showblocks Show all (partial) blocks (ctm, pm, mute, kenny, muppet)
   !protect <nick or ip> [<reason>] Protect a nick or IP from kicks, bans, etc.
   !unprotect <nick or ip> Remove protection
   !showprotected Show all protected nicks/ip's.
   !topic <message> Set topic, or use !topic to clear it
   !showtopic Show topic
   !mass <message> Sends a mass PM to all users
   !massprofile <profile> <message> Sends a mass PM to all users with a certain profile
   !mc <message> Send a mainchat message from hubbot
   !whisper <nick or profilelevel> <msg>Send a mainchat message to a user, or to all users equal to or higher than profilelevel

   Trigger commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   +motd Show the message of the day
   +rules Show the hub rules

   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   All variables is square brackets are optional.
   For temporary bans to specify time you use: sS - seconds, m - minutes, hH - hours, Dd - days, M - months,  yY - years

   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

SetHelp

   SettingsHelp for Hubowner's profile:

   Command                  Description
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   Hub Settings Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !sethelp Show help for hubsettings
   !sethubname <name> Change hubname
   !sethubdesc <name> Change hubdescription
   !setbotname <botname> Change securitybot name
   !setbotdesc <description> Change securitybot description

   Chatroom Management
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !showrooms Show all chatrooms
   !addroom <name> <profilename> <description> Add chatroom for <profilename> and above
   !delroom <name>                Delete chatroom

   Conversion Commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !convertynhub                Import Ynhub accounts.xml

   Miscellaneous commands
   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   !addcmd ? Show help for addcmd help
   !addcmd <name> -p[<profilelevel>] -o[<options>] "<text>" Add a textcommand
   !delcmd <name> Delete a textcommand
   !modcmd <name> [-p<profilelevel>] [-o<options>] ["<text>"] Modify a textcommand
   !listcmd List all textcommands
   !listcmd <name> Show a specific textcommand
   !addpattern Show help for adding forbidden patterns
   !addpattern <profilelevel> <options> "<pattern>" Add forbidden pattern, affects everyone below profilelevel
   !delpattern <name> Delete a pattern
   !listpatterns List all patterns
   !listpatterns <name> Show a specific pattern
   !reghub Register the hub to available hublists
   !set Show hubsettings
   !set <settingname> <value> Change hubsetting
   !setroomdesc <name> <description> Change chatroom description
   !setroomname <oldname> <newname> Change chatroom name

   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   How to add additional hub commands:

    !addcmd <name> [-p<profilelevel>] [-o<options>] "<text>"

      <profilelevel> A number in the range from -1 (User) to 10 (Hubowner)
      <options> A number created by adding the values of the following options:

         1   Display text in PM instead of mainchat
         2   Show text to all
         4   Show text when user logged in (welcome messages/rightclicks)
         8   Don't allow the command to be activated in mainchat (useful in combination with 4)
         16   Do not create an item in !help for this command (forced when 8 is used)
         32   Do not create a rightclick item for this command (forced when 8 is used)
         64   Text should be send in raw format instead of mainchat/pm (useful to send custom rightclicks)
         128   Only send to ADC user(s)
         256   Only send to NMDC user(s)

   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
   How to add forbidden patterns:

   !addpattern "<pattern>" <type> <profilelevel> <actions> [<replace>] [<text>]

      <profilelevel>   A number in the range from -1 (User) to 10 (Hubowner)

      <type>      What to check:

         MC = Mainchat
         PM = Personal messages
         SE = Searches
         SR = Searchresults

         NI = Nickname
         DE = Description
         EM = Email
         TA = Tag
         SS = Sharesize

      <actions>      A number defining what action to take:

         0   Allow (can only be used in combination with replace)
         1   Ignore
         2   Notify user
         4   Warn user
         8   Mute user
         16   Drop user
         32   Kick user
         64   Ban user
         128   Redirect user
         One of the values above (except 0) can be combined with one or more of the following:

         256   Notify Opchat
         512   Lock Mainchat (use with caution)

      <replace>      What to replace:

         1   Replace match
         2   Replace entire message

      <text>      Replacing text

   ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
« Last Edit: January 31, 2010, 00:40:01 by LadyStardust »
Check the new FlexHubList!           Add awesome statistics like this for your hub!

This post is a natural product. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects.