Jump to content

Sojobo

Retired Staff
  • Posts

    1,533
  • Joined

  • Last visited

Profile Information

  • Asylum Gang
    Space Turtles

Recent Profile Visitors

15,112 profile views
  1. Classic Sojobo landing right there
  2. Sojobo

    Test

    hello, you called? What is this, I'm confused
  3. Alucards a badass, don't hate. Also, !myduck
  4. In the last 10 minutes that number went up to 1,272 unique players so far today
  5. In other news Sojobot sniffed 1,238 unique players on the servers today.
  6. C# and I'm using SQLite cos I'm lazy, first time I've used SQLite actually, I'm usually a MySQL kinda guy.
  7. if ((message.StartsWith("!bef") || message.StartsWith("!bf")) && aliveduck) // befriend the duck { int myfriends = 0; m_dbConnection.Open(); string sql = "SELECT duckfriends FROM users WHERE guid = '" + User.SubItems[3].Text + "'"; SQLiteCommand command = new SQLiteCommand(sql, m_dbConnection); SQLiteDataReader reader = command.ExecuteReader(); while (reader.Read()) myfriends = Convert.ToInt16(reader["duckfriends"]); myfriends++; b.SendCommand("say -1 [Sojobot]: " + uname + " befriended the duck in " + Math.Round((DateTime.Now - lastduck).TotalSeconds, 2) + "s! They've befriended a total of " + myfriends + " ducks"); //They've made friends with " + usersduckfriends + " ducks so far!"); aliveduck = false; sql = "UPDATE users SET duckfriends = " + myfriends + " WHERE guid = '" + User.SubItems[3].Text + "'"; command = new SQLiteCommand(sql, m_dbConnection); command.ExecuteNonQuery(); m_dbConnection.Close(); }
×
×
  • Create New...