summaryrefslogtreecommitdiff
path: root/DiscoBot
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-06-11 18:27:45 +0200
committerTrueDoctor <d-kobert@web.de>2018-06-11 18:27:45 +0200
commitad4cb92819976b8add36f047e59335104aa171fe (patch)
tree10f877b7adb2b57146419d736a15bc26008b8fc7 /DiscoBot
parentd86b8c8702a01fadba4ce17f3e82a739d7681da9 (diff)
store Token local
Diffstat (limited to 'DiscoBot')
-rw-r--r--DiscoBot/Commands/LebenUndAstral.cs9
-rw-r--r--DiscoBot/Program.cs7
2 files changed, 8 insertions, 8 deletions
diff --git a/DiscoBot/Commands/LebenUndAstral.cs b/DiscoBot/Commands/LebenUndAstral.cs
index fd5e502..86fe6f2 100644
--- a/DiscoBot/Commands/LebenUndAstral.cs
+++ b/DiscoBot/Commands/LebenUndAstral.cs
@@ -22,11 +22,8 @@
if (prop.ToLower().Equals("help") || prop.ToLower().Equals("man"))
{
-
await this.ReplyAsync("```xl\n" + Help.Get_Specific_Help("LE") + "\n```");
return;
-
-
}
//In case the input is badly formated
@@ -53,7 +50,6 @@
if (prop.ToLower().Equals("help") || prop.ToLower().Equals("man"))
{
-
await this.ReplyAsync("```xl\n" + Help.Get_Specific_Help("AE") + "\n```");
return;
}
@@ -84,7 +80,6 @@
//If there is actual input we process it
if (prop.Length > 0)
{
-
res += "LE: ";
res += character.Lebenspunkte_Aktuell + "/" + character.Lebenspunkte_Basis + " -> ";
@@ -111,12 +106,12 @@
character.Lebenspunkte_Aktuell = character.Lebenspunkte_Aktuell + Convert.ToInt32(prop);
}
}
- res += character.Lebenspunkte_Aktuell + "/" + character.Lebenspunkte_Basis;
+ res += character.Lebenspunkte_Aktuell + "/" + character.Lebenspunkte_Basis;
}
- //Set to new value regardless of original
else
{
+ // Set to new value regardless of original
character.Lebenspunkte_Aktuell = Convert.ToInt32(prop);
res += character.Lebenspunkte_Aktuell + "/" + character.Lebenspunkte_Basis;
diff --git a/DiscoBot/Program.cs b/DiscoBot/Program.cs
index 05577ce..89a1a42 100644
--- a/DiscoBot/Program.cs
+++ b/DiscoBot/Program.cs
@@ -10,6 +10,8 @@ using Microsoft.Extensions.DependencyInjection;
namespace DiscoBot
{
+ using System.IO;
+
using DiscoBot.Audio;
using DiscoBot.DSA_Game;
@@ -28,7 +30,10 @@ namespace DiscoBot
this.client = new DiscordSocketClient();
this.commands = new CommandService();
- string token = Properties.Settings.Default.Token;
+
+
+ string token = File.ReadAllText("Token");
+ //Properties.Settings.Default.Token;
this.services = new ServiceCollection().AddSingleton(new AudioService())
.BuildServiceProvider();