Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (command === "points") {
- const aid = message.author.id;
- sdb.get('SELECT steamid FROM users WHERE discordid = ?', aid, (err, result) => {
- if (err) {
- console.log(err);
- } else {
- if (result.steamid === 0) {
- message.channel.send("Make sure to **link your steamid** to your discord account by using `!linksteamid` before using this command.");
- }else{
- storedb.get('SELECT Points FROM Players WHERE SteamId = ?', result.steamid, (err, result2) => {
- if (err) {
- console.log("Here:" + err);
- } else {
- if (result2.points == 0) {
- message.channel.send("You don't have any points.");
- }else{
- message.channel.send("You have " + result2.points + " points.");
- }
- }
- })
- }
- }
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement