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