diff --git a/xp.go b/xp.go index 5e804fd..98862bc 100644 --- a/xp.go +++ b/xp.go @@ -32,7 +32,7 @@ func incrementXP(dg *discordgo.Session, discordID string) { logError(dg, "incrementXP", "begin", discordID, err) return } - _, err = tx.Exec("INSERT INTO xp(id, xp) VALUES(?, ?) ON CONFLICT(id) DO UPDATE SET xp = xp+?;", discordID, amountToIncrement) + _, err = tx.Exec("INSERT INTO xp(id, xp) VALUES(?, ?) ON CONFLICT(id) DO UPDATE SET xp = xp+?;", discordID, amountToIncrement, amountToIncrement) if err != nil { logError(dg, "incrementXP", "insert", discordID, err) tx.Rollback()