From ad4cb92819976b8add36f047e59335104aa171fe Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Mon, 11 Jun 2018 18:27:45 +0200 Subject: store Token local --- DiscoBot/Program.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'DiscoBot/Program.cs') 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(); -- cgit v1.2.3-54-g00ecf