summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-07-09 01:19:52 +0200
committerTrueDoctor <d-kobert@web.de>2018-07-09 01:19:52 +0200
commit4671e76af27446a74c1015bd76b52e48ea241e74 (patch)
tree74e0dc157e26bf8953f26726f072bdae6469801b
parentac3f4ef1a70c4cdb538a0f0629c97bf34871a58b (diff)
fixed Filehandler
-rw-r--r--DSALib/Class1.cs12
-rw-r--r--DSALib/DSALib.csproj53
-rw-r--r--DSALib/Properties/AssemblyInfo.cs36
-rw-r--r--DiscoBot.sln6
-rw-r--r--DiscoBot/Commands/FileHandler.cs3
-rw-r--r--DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json168
6 files changed, 86 insertions, 192 deletions
diff --git a/DSALib/Class1.cs b/DSALib/Class1.cs
deleted file mode 100644
index 13d3431..0000000
--- a/DSALib/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace DSALib
-{
- public class Class1
- {
- }
-}
diff --git a/DSALib/DSALib.csproj b/DSALib/DSALib.csproj
deleted file mode 100644
index 35d1b00..0000000
--- a/DSALib/DSALib.csproj
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
- <PropertyGroup>
- <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
- <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
- <ProjectGuid>3f5ff9fb-53e6-4eba-85a6-f44b1dc84883</ProjectGuid>
- <OutputType>Library</OutputType>
- <AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>DSALib</RootNamespace>
- <AssemblyName>DSALib</AssemblyName>
- <TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
- <FileAlignment>512</FileAlignment>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
- <DebugSymbols>true</DebugSymbols>
- <DebugType>full</DebugType>
- <Optimize>false</Optimize>
- <OutputPath>bin\Debug\</OutputPath>
- <DefineConstants>DEBUG;TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
- <DebugType>pdbonly</DebugType>
- <Optimize>true</Optimize>
- <OutputPath>bin\Release\</OutputPath>
- <DefineConstants>TRACE</DefineConstants>
- <ErrorReport>prompt</ErrorReport>
- <WarningLevel>4</WarningLevel>
- </PropertyGroup>
- <ItemGroup>
- <Reference Include="System"/>
-
- <Reference Include="System.Core"/>
- <Reference Include="System.Xml.Linq"/>
- <Reference Include="System.Data.DataSetExtensions"/>
-
-
- <Reference Include="Microsoft.CSharp"/>
-
- <Reference Include="System.Data"/>
-
- <Reference Include="System.Net.Http"/>
-
- <Reference Include="System.Xml"/>
- </ItemGroup>
- <ItemGroup>
- <Compile Include="Class1.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
- </ItemGroup>
- <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
- </Project>
diff --git a/DSALib/Properties/AssemblyInfo.cs b/DSALib/Properties/AssemblyInfo.cs
deleted file mode 100644
index d348d14..0000000
--- a/DSALib/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// Allgemeine Informationen über eine Assembly werden über die folgenden
-// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
-// die einer Assembly zugeordnet sind.
-[assembly: AssemblyTitle("DSALib")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("DSALib")]
-[assembly: AssemblyCopyright("Copyright © 2018")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
-// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
-// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
-[assembly: ComVisible(false)]
-
-// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
-[assembly: Guid("3f5ff9fb-53e6-4eba-85a6-f44b1dc84883")]
-
-// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
-//
-// Hauptversion
-// Nebenversion
-// Buildnummer
-// Revision
-//
-// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
-// indem Sie "*" wie unten gezeigt eingeben:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/DiscoBot.sln b/DiscoBot.sln
index 25ae7da..0dc4781 100644
--- a/DiscoBot.sln
+++ b/DiscoBot.sln
@@ -10,8 +10,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiscoBot", "DiscoBot\DiscoBot.csproj", "{1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DSALib", "DSALib\DSALib.csproj", "{3F5FF9FB-53E6-4EBA-85A6-F44B1DC84883}"
-EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -22,10 +20,6 @@ Global
{1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1186AF1C-BC46-4B3D-BEE0-CE478B8AEAC7}.Release|Any CPU.Build.0 = Release|Any CPU
- {3F5FF9FB-53E6-4EBA-85A6-F44B1DC84883}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3F5FF9FB-53E6-4EBA-85A6-F44B1DC84883}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3F5FF9FB-53E6-4EBA-85A6-F44B1DC84883}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3F5FF9FB-53E6-4EBA-85A6-F44B1DC84883}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/DiscoBot/Commands/FileHandler.cs b/DiscoBot/Commands/FileHandler.cs
index 0e8af60..e1d9bc2 100644
--- a/DiscoBot/Commands/FileHandler.cs
+++ b/DiscoBot/Commands/FileHandler.cs
@@ -3,6 +3,7 @@
using System;
using System.Linq;
using System.Net;
+ using System.Threading.Tasks;
using DiscoBot.Auxiliary;
using DiscoBot.Characters;
@@ -14,7 +15,7 @@
public class FileHandler : ModuleBase
{
[Command("send"), Summary("fügt Helden hinzu")]
- public void AddChar()
+ public async Task AddChar()
{
var msg = this.Context.Message;
if (msg.Attachments == null)
diff --git a/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json b/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json
index 2dee9db..fd387f5 100644
--- a/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json
+++ b/DiscoBot/Properties/DiscoBot-DSA_Game-Characters-Character.json
@@ -1,12 +1,29 @@
[
{
- "Name": "Felis Exodus Schattenwald",
+ "Eigenschaften": {},
+ "Talente": [],
+ "Zauber": [],
+ "Kampftalente": [],
+ "Vorteile": [],
+ "PropTable": {
+ "MU": "Mut",
+ "KL": "Klugheit",
+ "IN": "Intuition",
+ "CH": "Charisma",
+ "FF": "Fingerfertigkeit",
+ "GE": "Gewandtheit",
+ "KO": "Konstitution",
+ "KK": "Körperkraft"
+ },
"Lebenspunkte_Basis": 30,
"Lebenspunkte_Aktuell": 30,
- "Astralpunkte_Basis": 20,
- "Astralpunkte_Aktuell": 20,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 20,
+ "Astralpunkte_Aktuell": 20,
+ "Name": "Felis Exodus Schattenwald"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -21,16 +38,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Gardist",
+ },
"Lebenspunkte_Basis": 29,
"Lebenspunkte_Aktuell": 29,
- "Astralpunkte_Basis": 0,
- "Astralpunkte_Aktuell": 0,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 0,
+ "Astralpunkte_Aktuell": 0,
+ "Name": "Gardist"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -45,16 +62,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Hartmut Reiher",
+ },
"Lebenspunkte_Basis": 31,
"Lebenspunkte_Aktuell": 31,
- "Astralpunkte_Basis": 0,
- "Astralpunkte_Aktuell": 0,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 0,
+ "Astralpunkte_Aktuell": 0,
+ "Name": "Hartmut Reiher"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -69,16 +86,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Helga vom Drachenei, Tausendsasserin",
+ },
"Lebenspunkte_Basis": 21,
"Lebenspunkte_Aktuell": 21,
- "Astralpunkte_Basis": 35,
- "Astralpunkte_Aktuell": 35,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 35,
+ "Astralpunkte_Aktuell": 35,
+ "Name": "Helga vom Drachenei, Tausendsasserin"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -93,16 +110,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Krenko",
+ },
"Lebenspunkte_Basis": 25,
"Lebenspunkte_Aktuell": 25,
- "Astralpunkte_Basis": 0,
- "Astralpunkte_Aktuell": 0,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 0,
+ "Astralpunkte_Aktuell": 0,
+ "Name": "Krenko"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -117,16 +134,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Ledur Torfinson",
+ },
"Lebenspunkte_Basis": 39,
"Lebenspunkte_Aktuell": 39,
- "Astralpunkte_Basis": 0,
- "Astralpunkte_Aktuell": 0,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 0,
+ "Astralpunkte_Aktuell": 0,
+ "Name": "Ledur Torfinson"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -141,16 +158,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Morla",
+ },
"Lebenspunkte_Basis": 26,
"Lebenspunkte_Aktuell": 26,
- "Astralpunkte_Basis": 13,
- "Astralpunkte_Aktuell": 13,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 13,
+ "Astralpunkte_Aktuell": 13,
+ "Name": "Morla"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -165,16 +182,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Numeri Illuminus",
+ },
"Lebenspunkte_Basis": 28,
"Lebenspunkte_Aktuell": 28,
- "Astralpunkte_Basis": 40,
- "Astralpunkte_Aktuell": 40,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 40,
+ "Astralpunkte_Aktuell": 40,
+ "Name": "Numeri Illuminus"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -189,16 +206,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Potus",
+ },
"Lebenspunkte_Basis": 39,
"Lebenspunkte_Aktuell": 39,
- "Astralpunkte_Basis": 16,
- "Astralpunkte_Aktuell": 16,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 16,
+ "Astralpunkte_Aktuell": 16,
+ "Name": "Potus"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -213,16 +230,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Pump aus der Gosse",
+ },
"Lebenspunkte_Basis": 18,
"Lebenspunkte_Aktuell": 18,
- "Astralpunkte_Basis": 13,
- "Astralpunkte_Aktuell": 13,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 13,
+ "Astralpunkte_Aktuell": 13,
+ "Name": "Pump aus der Gosse"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -237,16 +254,16 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Rhoktar4",
+ },
"Lebenspunkte_Basis": 34,
"Lebenspunkte_Aktuell": 34,
- "Astralpunkte_Basis": 17,
- "Astralpunkte_Aktuell": 17,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
+ "Astralpunkte_Basis": 17,
+ "Astralpunkte_Aktuell": 17,
+ "Name": "Rhoktar4"
+ },
+ {
"Eigenschaften": {},
"Talente": [],
"Zauber": [],
@@ -261,30 +278,13 @@
"GE": "Gewandtheit",
"KO": "Konstitution",
"KK": "Körperkraft"
- }
- },
- {
- "Name": "Volant",
+ },
"Lebenspunkte_Basis": 28,
"Lebenspunkte_Aktuell": 28,
- "Astralpunkte_Basis": 43,
- "Astralpunkte_Aktuell": 43,
"Ausdauer_Basis": 0,
"Ausdauer_Aktuell": 0,
- "Eigenschaften": {},
- "Talente": [],
- "Zauber": [],
- "Kampftalente": [],
- "Vorteile": [],
- "PropTable": {
- "MU": "Mut",
- "KL": "Klugheit",
- "IN": "Intuition",
- "CH": "Charisma",
- "FF": "Fingerfertigkeit",
- "GE": "Gewandtheit",
- "KO": "Konstitution",
- "KK": "Körperkraft"
- }
+ "Astralpunkte_Basis": 43,
+ "Astralpunkte_Aktuell": 43,
+ "Name": "Volant"
}
] \ No newline at end of file