Skip to content

Fix addbot cmd syntax (and update docs) #470

@vanosg

Description

@vanosg
addbot <handle> <address>

    Description: adds a new bot to the userlist with the handle and botaddress given (with no password and no flags)

    Returns: 1 if successful; 0 if the bot already exists

Need to specify address format
-and-
Fix address format!

This probably shouldn't work:

.tcl addbot foo 1.1.1.1/3333/4444
Tcl: 1

.whois foo
HANDLE                           PASS NOTES FLAGS           LAST
foo                              no       0 b               never (nowhere)
  ADDRESS: 1.1.1.1
     users: 4444, bots: 3333

This should probably work:

.tcl addbot foo 1.1.1.1:4444/5555
Tcl: 1

.whois foo
HANDLE                           PASS NOTES FLAGS           LAST
foo                              no       0 b               never (nowhere)
  ADDRESS: 1.1.1.1:4444
     users: 5555, bots: 5555

(^^^ note all ports are 5555, not 4444/5555)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions