From f73d84803e6637912c3e1a6978cf16aa097c3ae2 Mon Sep 17 00:00:00 2001 From: Karolis2011 Date: Wed, 19 Jun 2019 00:17:44 +0300 Subject: [PATCH] Addes travis and README --- .travis.yml | 9 +++++++++ README | 6 ------ README.md | 13 +++++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .travis.yml delete mode 100644 README create mode 100644 README.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..ce1b85a --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: csharp +mono: none +dotnet: 2.2.0 + +install: +- dotnet restore + +script: + - dotnet build \ No newline at end of file diff --git a/README b/README deleted file mode 100644 index 7e6de9b..0000000 --- a/README +++ /dev/null @@ -1,6 +0,0 @@ - -`set dbconnection="Server=localhost;Database=eventbot;User=root;Password=password;"` - - -`Add-Migration InitialDatabase -Context MySqlDatabaseService -OutputDir Migrations\MySql` -`Add-Migration InitialDatabase -Context SqliteDatabaseService -OutputDir Migrations\Sqlite` \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..2cda7e6 --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# EventBot + +## Environment variables +### `token` variable +This is variable for discord bot's token obtained from discord developer panel. +### `dbconnection` variable +This is environment variable for Mysql / MariaDb database connection. Example connection string: + +```Server=localhost,123;Database=eventbot;User=root;Password=password;``` + + +`Add-Migration InitialDatabase -Context MySqlDatabaseService -OutputDir Migrations\MySql` +`Add-Migration InitialDatabase -Context SqliteDatabaseService -OutputDir Migrations\Sqlite` \ No newline at end of file