Skip to content

Commit

Permalink
Merge pull request #2 from ksauraj/devel
Browse files Browse the repository at this point in the history
Add docker support for automation
  • Loading branch information
codecShivam authored Jun 14, 2024
2 parents fe8b55d + 021e20a commit 9ecb22b
Show file tree
Hide file tree
Showing 3 changed files with 246 additions and 311 deletions.
20 changes: 19 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
# Sample Dockerfile here.
FROM alpine:latest

# Install required packages
RUN apk add --no-cache python3-dev jq pv openssl neofetch curl-dev axel glib-dev openssl-dev python3 curl bash which zip git nano fortune file make g++ wget asciidoc coreutils

# Set working directory
WORKDIR /app

# Copy all files to workdir
COPY . .

# Set permissions
RUN chmod 755 /app

# Set user
USER root

# Define default command
CMD ["bash", "bot.sh", "--user", "root"]
22 changes: 9 additions & 13 deletions bot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,25 @@ source util.sh
# Source functions
source bot/all_replace.sh
source bot/calc.sh
source bot/choice.sh
source bot/fun/choice.sh
source bot/github.sh
source bot/info.sh
source bot/iq.sh
source bot/fun/iq.sh
source bot/log_dump.sh
source bot/neofetch.sh
source bot/pfp.sh
source bot/purge.sh
source bot/replace.sh
source bot/extra/neofetch.sh
source bot/extra/pfp.sh
source bot/extra/purge.sh
source bot/fun/replace.sh
source bot/reset_log.sh
source bot/round.sh
source bot/extra/round.sh
source bot/start.sh
source bot/shuffle.sh
source bot/fun/shuffle.sh
source bot/weath.sh
source bot/bot_util.sh
source bot/shell.sh
source bot/extra/shell.sh

log -i tgbot "STARTING BOT"


# Defining constan# Initialize update
update_init

## While loop
while true; do
# Refresh stuff
Expand Down
Loading

0 comments on commit 9ecb22b

Please sign in to comment.