Make bot respond to the /start command
This commit is contained in:
parent
7a160d5e02
commit
661d10415a
9
TODO.md
9
TODO.md
|
@ -1,9 +0,0 @@
|
|||
# TODO
|
||||
## Planned
|
||||
|
||||
* Add /replace command
|
||||
* Make every filename random to prevent issues with the same filename
|
||||
|
||||
## In progress
|
||||
* Add /start command
|
||||
* Make sure that unoserver restarts https://stackoverflow.com/questions/72146908/how-to-restart-subprocess-if-it-crashes
|
6
main.py
6
main.py
|
@ -97,5 +97,11 @@ async def documentFetcher(client, message):
|
|||
else:
|
||||
return # Hopefully message will get ignored and no futher resources will be used
|
||||
|
||||
@app.on_message(filters.command("start"))
|
||||
async def startResponder(client, message):
|
||||
startMessage = "This bot converts any document libreoffice supports into a pdf\nYou can add it into your group and it should detect the appropriate files automatically\nList of supported file formats:\n.doc .docx .doc\n.xls .xlsx\n.odt .ods\n.rtf .txt\n.html .csv .tsv\n.epub\n.odp .odp\n.odg\n.vsd .svg\n.ppt .pptx\n.abw .wps\n.tex"
|
||||
await message.reply(startMessage, reply_to_message_id=message.id)
|
||||
|
||||
|
||||
unoStart()
|
||||
app.run()
|
Loading…
Reference in New Issue