Skip to content

Commit

Permalink
Merge pull request #38 from orc4bikes/feat/qr_code
Browse files Browse the repository at this point in the history
final changes for qr code feature
  • Loading branch information
raihahahan authored Aug 14, 2024
2 parents a691e19 + 35fd66d commit fcd556b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.10
# WORKDIR /bot
# COPY requirements.txt /bot/
COPY . .
RUN pip install -r requirements.txt
RUN pip install python-dotenv
# COPY . /bot
CMD python main.py
16 changes: 15 additions & 1 deletion bots/userbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@
from admin import (
ADMIN_LIST,
BOT_ENV,
ADMIN_DEV
)

from admin import (
ADMIN_HEAD,
ADMIN_HEAD_NAME,
ADMIN_HEAD_MOBILE,
ADMIN_SAFETY,
ADMIN_SAFETY_MOBILE,
ADMIN_SAFETY_NAME,
ADMIN_TREASURER,
ADMIN_TREASURER_MOBILE,
ADMIN_TREASURER_NAME,
ADMIN_TREASURER_URL,
)

from bot_text import (
Expand Down Expand Up @@ -152,7 +166,7 @@ def qr_rent_command(self, update, context, bike_name):
context.user_data['bike_name'] = bike_name

# Show terms
text = "hello" #TERMS_TEXT.format(**globals())
text = TERMS_TEXT.format(**globals())
update.message.reply_text(
text, parse_mode='HTML',
)
Expand Down
7 changes: 7 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# fly.toml app configuration file generated for orc4bikes on 2024-08-10T15:22:27+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'orc4bikes'
primary_region = 'sin'

0 comments on commit fcd556b

Please sign in to comment.