Disable commands and fix associated bugs

This commit is contained in:
Karmanyaah Malhotra
2021-03-02 19:55:35 -05:00
parent 7069e7d358
commit 27bbc12d77
5 changed files with 63 additions and 57 deletions

View File

@@ -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()