-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathapp.js
26 lines (14 loc) · 854 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
const Telegraf = require('telegraf')
const commandArgs = require('./arguments')
const download = require('./download')
var shell = require('shelljs')
const test = require('./test')
const bot = new Telegraf('889371432:AAHj8cosL9FY8ngcLkd6vrD7n3h9HYsXjC0')
bot.use(commandArgs) //Divide the message chat into raw/command/args
var shell = require('shelljs')
bot.start((ctx) => ctx.reply('Welcome to TorrentRaspBot! \nWrite /help to see the available commands!') )
bot.help((ctx) => ctx.reply('These are the available commands:\n/download "file url" -> Downloads the file and automatically uploads it to Google Drive\n/author -> Shows the author and some info of him'))
bot.command('author',(ctx) => ctx.reply('Author: Rafael Roman \nGithub: github.com/rafaroman18 \n2019'))
bot.command('download',download)
bot.command('test',test)
bot.launch()