This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Heroku Button * Docker Support * No need to import it again Should fix this in tgvcbot also. Co-authored-by: Akshay Rajput <thehamkercat@gmail.com>
- Loading branch information
1 parent
9568b36
commit d1a9159
Showing
8 changed files
with
107 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Official Arch Linux Docker Image | ||
FROM archlinux:base-devel | ||
|
||
# Installing Python | ||
RUN curl -fsSL "https://repo.archlinuxcn.org/x86_64/glibc-linux4-2.33-4-x86_64.pkg.tar.zst" | bsdtar -C / -xvf - | ||
RUN pacman -Syy && \ | ||
pacman --noconfirm --needed -Syu python3 \ | ||
python-pip | ||
RUN pip3 install -U pip | ||
|
||
# Installing Requirements | ||
COPY . . | ||
RUN pip3 install -U -r requirements.txt | ||
|
||
# Running Luna | ||
CMD ["python3","luna.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
worker: python3 luna.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"name": "Luna The Chat Bot", | ||
"description": "Just another Telegram AI chat bot written in Python using Pyrogram.", | ||
"repository": "https://github.com/TheHamkerCat/LunaChatBot", | ||
"keywords" : [ | ||
"python", | ||
"ai-bot", | ||
"telegram-ai-bot", | ||
"telegram-bot", | ||
"pyrogram", | ||
"arq" | ||
], | ||
"stack": "heroku-20", | ||
"env": { | ||
"bot_token": { | ||
"description": "Your Bot's Api Token ,Get it from @BotFather", | ||
"required": true | ||
}, | ||
"ARQ_API_KEY": { | ||
"description": "Get this from @ARQRobot", | ||
"required": true | ||
}, | ||
"LANGUAGE": { | ||
"description": "Language of Chat Bot ,list --> https://py-googletrans.readthedocs.io/en/latest/#googletrans-languages", | ||
"value": "en", | ||
"required": true | ||
}, | ||
"ARQ_API_BASE_URL": { | ||
"description": "ARQ URL ,Don't Change It", | ||
"value": "https://thearq.tech", | ||
"required": true | ||
} | ||
}, | ||
"buildpacks": [ | ||
{ | ||
"url": "heroku/python" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
python-3.9.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,20 @@ | ||
bot_token = "16901971:AAFqdM_SQE1PB2P1xLr67k" | ||
ARQ_API_KEY = "Get this from @ARQRobot" | ||
HEROKU = True # Make it False if you're not deploying on heroku. | ||
|
||
if HEROKU: | ||
from os import environ | ||
|
||
bot_token = environ["bot_token"] | ||
ARQ_API_KEY = environ["ARQ_API_KEY"] | ||
LANGUAGE = environ["LANGUAGE"] | ||
|
||
# NOTE Fill this if you are not deploying on heroku. | ||
if not HEROKU: | ||
|
||
bot_token = "16901971:AAFqdM_SQE1PB2P1xLr67k" | ||
ARQ_API_KEY = "Get this from @ARQRobot" | ||
# List of supported languages >> | ||
# https://py-googletrans.readthedocs.io/en/latest/#googletrans-languages | ||
|
||
LANGUAGE = "en" | ||
LANGUAGE = "en" | ||
|
||
# Leave it as it is | ||
ARQ_API_BASE_URL = "https://thearq.tech" |