Disable commands and fix associated bugs
This commit is contained in:
4
user.go
4
user.go
@@ -362,6 +362,10 @@ func (user *User) Login(ce *CommandEvent) {
|
||||
// // Also between the two logout methods (commands.go and provisioning.go)
|
||||
// user.ConnectionErrors = 0
|
||||
// user.JID = strings.Replace(user.Conn.Info.Wid, whatsappExt.OldUserSuffix, whatsappExt.NewUserSuffix, 1)
|
||||
if len(ce.Args) == 0 {
|
||||
ce.Reply(`Get your access token from https://dev.groupme.com/ which should be the first argument to login`)
|
||||
return
|
||||
}
|
||||
user.Token = ce.Args[0]
|
||||
|
||||
user.addToJIDMap()
|
||||
|
||||
Reference in New Issue
Block a user