Skip to content

Quick Start Guide

BigOokie edited this page Oct 28, 2018 · 2 revisions

Wing Commander - Quick Start Guide

Welcome to the Wing Commander Quick Start Guide. There will be very little commentary provided here - just follow along. We also assume you already have Go installed, given its a dependency for running the Skyminer Manager.

Setup Overview

The Commands You Need

This section presents all the commands you need, in the order you need them. Remember this is a Quick-Start Guide, and there are a lot of assumptions that you have pre-requisits installed and generally required things are all in order.

Lines starting with ## are comments and provided to assist with understanding. If you get an error at any point, please refer back to the main README.

## Setup the repository folder
mkdir -p $GOPATH/src/github.com/BigOokie
cd $GOPATH/src/github.com/BigOokie

## Clone the repository from GitHub
git clone https://github.com/BigOokie/skywire-wing-commander.git

cd skywire-wing-commander

## Build and Install the App
go install -v ./...

## Setup the configuration folder
cd ~
mkdir .wingcommander
cd .wingcommander

## Copy the example config file to the new config folder
cp $GOPATH/src/github.com/BigOokie/skywire-wing-commander/cmd/wcbot/config.example.toml ~/.wingcommander/config.toml

## Copy the config builder script
cp $GOPATH/src/github.com/BigOokie/skywire-wing-commander/scripts/wcbuildconfig.sh ~/.wingcommander/wcbuildconfig.sh

## Run the config builder script. Follow the on-screen instructions.
## You will need you API Key from the BotFather
sh ./wcbuildconfig.sh

## Get ready to run the Bot
cd $GOPATH/bin

## Check the Bot version
./wcbot -v

## Run the Bot in Background mode (safe to exit the terminal session)
nohup ./wcbot /dev/null 2>&1 & echo $! > wcbot.pid&