~josealberto4444/apodnasabot

394e5e86e7b0b9b78d4d6208aefdc45d441b01a5 — José Alberto Orejuela García 2 years ago 8b45c0a
Add basic config files
4 files changed, 30 insertions(+), 0 deletions(-)

A .gitignore
M README.md
A config.cfg.new
A init.sh
A .gitignore => .gitignore +2 -0
@@ 0,0 1,2 @@
# Config file with API keys and tokens
config.cfg

M README.md => README.md +6 -0
@@ 34,6 34,12 @@ Did you find a bug? Feel free to report it to the mailing list [~josealberto4444

Do you want to contribute to the code? Glad to hear it, that's the purpose of putting it here! Simply send a patch to [~josealberto4444/apodnasabot@lists.sr.ht][mailing-list]. Take a look at https://git-send-email.io/ if you need help. =)

# Installation

Recreate the configuration files needed by the programme

    $ ./init.sh





A config.cfg.new => config.cfg.new +2 -0
@@ 0,0 1,2 @@
[NASA_API]
api_key = DEMO_KEY

A init.sh => init.sh +20 -0
@@ 0,0 1,20 @@
#!/bin/sh

# Copyright © 2019 José Alberto Orejuela García (josealberto4444)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

if [ ! -f "config.cfg" ]; then
    cp "config.cfg.new" "config.cfg"
fi