Skip to content
Snippets Groups Projects
Commit 5cc6bad2 authored by Reviath's avatar Reviath
Browse files

Update commands/daily.js, commands/roulette.js files

parent 9e2019c8
Branches
No related tags found
No related merge requests found
const settings = require('../settings');
const Discord = require('discord.js');
const ms = require('parse-ms'); const ms = require('parse-ms');
const db = require('quick.db'); const db = require('quick.db');
exports.run = async(bot, message, args) => { exports.run = async(client, message, args) => {
let cooldown = 8.64e+7, let cooldown = 8.64e+7,
amout = 500; amout = 500;
let daily = await db.fetch(`lastDaily_${message.author.id}`); let daily = await db.fetch(`lastDaily_${message.author.id}`);
......
const Discord = require("discord.js"); const Discord = require("discord.js");
const db = require("quick.db"); const db = require("quick.db");
const ms = require("parse-ms");
module.exports.run = async (client, message, args) => { module.exports.run = async (client, message, args) => {
let user = message.author; let user = message.author;
...@@ -9,10 +8,19 @@ module.exports.run = async (client, message, args) => { ...@@ -9,10 +8,19 @@ module.exports.run = async (client, message, args) => {
else if ((num % 2) == 1) return true; else if ((num % 2) == 1) return true;
} }
let colour = args[0]; let colour = args[0];
let money = parseInt(args[1]); let money = args[1];
let moneydb = await db.fetch(`Balance_${user.id}`) let moneydb = await db.fetch(`Balance_${user.id}`)
let random = Math.floor(Math.random() * 37); let random = Math.floor(Math.random() * 37);
if (money > 50000 || money == "all") {
if (50000 > moneydb){
money = moneydb;
}else{
money=50000;
}
}
let moneyhelp = new Discord.MessageEmbed() let moneyhelp = new Discord.MessageEmbed()
.setColor('BLUE') .setColor('BLUE')
.setDescription(`<a:x_:801038779955150888> Specify an amount | .roulette <color> <amount>`); .setDescription(`<a:x_:801038779955150888> Specify an amount | .roulette <color> <amount>`);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment