Updated Makefile and templates

From 0x5c/quick-bot-no-pain
This commit is contained in:
0x5c 2019-11-25 05:43:20 -05:00
parent 80c406b6f8
commit 846509549c
No known key found for this signature in database
GPG Key ID: CCE14303E194D25E
4 changed files with 16 additions and 14 deletions

8
.gitignore vendored
View File

@ -1,13 +1,11 @@
# Custom # Custom
options.py
keys.py
cty.dat cty.dat
cty.json cty.json
cty.zip cty.zip
botenv/ /botenv/
data/ /devenv/
/data/
######################################################### #########################################################

View File

@ -1,5 +1,5 @@
# A quick installation script for painless discord bots. # A quick installation script for painless discord bots.
# v1.1.0 # v2.0.0
# Copyright (c) 2019 0x5c # Copyright (c) 2019 0x5c
# Released under the terms of the MIT license. # Released under the terms of the MIT license.
# Part of: # Part of:
@ -32,7 +32,7 @@ help:
# Main install target # Main install target
.PHONY: install .PHONY: install
install: $(BOTENV)/req_done options.py keys.py install: $(BOTENV)/req_done data/options.py data/keys.py
# Virual environment setup # Virual environment setup
$(BOTENV)/success: $(BOTENV)/success:
@ -50,14 +50,16 @@ $(BOTENV)/req_done: requirements.txt $(BOTENV)/success
pip install ${PIP_OUTPUT} -U -r requirements.txt pip install ${PIP_OUTPUT} -U -r requirements.txt
@touch $(BOTENV)/req_done @touch $(BOTENV)/req_done
# Creating the ./data subdirectory
data: data:
mkdir data @echo "\033[34;1m--> Creating ./data ...\033[0m"
@mkdir -p data
# Copying templates # Copying templates
options.py keys.py: | data data/options.py data/keys.py: ./data
@echo "\033[34;1m--> Copying template files...\033[0m" @echo "\033[34;1m--> Copying template for ./$@ ...\033[0m"
@cp -nv ./templates/template_$@ ./data/$@ @cp -nv ./templates/$@ ./$@
@touch ./data/$@ @touch ./$@
# Deletes the python cache and the virtual environment # Deletes the python cache and the virtual environment
.PHONY: clean .PHONY: clean

View File

@ -3,7 +3,8 @@
# ¡ This is a template ! # # ¡ This is a template ! #
# # # #
# Make sure to edit it with your preferred settings! # # Make sure to edit it with your preferred settings! #
# And to place it in the root of the bot's folder, # # And to place it in the /data #
# subdirectory of the bot, #
# without the 'template_' part of the name # # without the 'template_' part of the name #
# # # #
########################################################## ##########################################################

View File

@ -3,7 +3,8 @@
# ¡ This is a template ! # # ¡ This is a template ! #
# # # #
# Make sure to edit it with your preferred settings! # # Make sure to edit it with your preferred settings! #
# And to place it in the root of the bot's folder, # # And to place it in the /data #
# subdirectory of the bot, #
# without the 'template_' part of the name # # without the 'template_' part of the name #
# # # #
########################################################## ##########################################################