Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- client.on ('message', async (revolution) => {
- if (!revolution.guild || revolution.author.bot) return false;
- var prefix = '!';
- if (revolution.content.startsWith(prefix + 'roll')) {
- var args = revolution.content.split(' ') [1];
- if (!args) return revolution.channel.send('ارسل رقم');
- if (isNaN (args))return revolution.channel.send('ارسل ارقام فقط');
- if (args < 1) return revolution.channel.send('يجب اختيار رقم فوق 0');
- revolution.channel.send (Math.floor (Math.random() * args));
- }
- })
- //By Rashwan || Revolution Codes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement