File size: 520 Bytes
bb69f9b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const { mediafire, bot, isUrl } = require('../lib/index')

bot(
  {
    pattern: 'mediafire ?(.*)',
    desc: 'Download mediafire file',
    type: 'download',
  },
  async (message, match) => {
    match = isUrl(match || message.reply_message.text)
    if (!match) return await message.send('_Example : mediafire url_')
    const result = await mediafire(match)
    if (!result)
      return await message.send('*Not found*', {
        quoted: message.quoted,
      })
    return await message.sendFromUrl(result)
  }
)