Skip to content

Commit

Permalink
Cleaning up stuff for release versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Numenization committed Mar 29, 2018
1 parent 9a963b4 commit ab560b9
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
5 changes: 4 additions & 1 deletion GarlicBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFrameworks>netcoreapp2.0</TargetFrameworks>
<StartupObject>GarlicBot.Program</StartupObject>
<ApplicationIcon />
<Win32Resource />
</PropertyGroup>

<ItemGroup>
Expand Down
7 changes: 6 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.IO;
using Discord;
using Discord.WebSocket;
using System.Threading.Tasks;
Expand All @@ -14,10 +15,14 @@ static void Main(string[] args)

public async Task StartAsync()
{
if(!Directory.Exists("Resources"))
{
await Utilities.Log(await Utilities.GetAlert("firstTimeRunning"), LogSeverity.Error);
}
if(Config.bot.authKey == "" || Config.bot.authKey == null)
{
await Utilities.Log(await Utilities.GetAlert("missingAuthKey"), LogSeverity.Error);
return;
await Task.Delay(-1);
}
_client = new DiscordSocketClient(new DiscordSocketConfig
{
Expand Down
8 changes: 4 additions & 4 deletions Resources/config.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"authKey": "",
"commandPrefix": "!",
"botName": "GarlicBot",
"botIconURL": "https://i.imgur.com/NFS0WeC.jpg",
"logLevel": 4,
"embedColor": "140,60,60"
"botName": "GarlicBot",
"commandPrefix": "!",
"embedColor": "140,60,60",
"logLevel": 4
}
15 changes: 8 additions & 7 deletions SystemLang/alerts.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"commandErrorTitle": "Command Error:",
"commandNotFound": "Command not recognized.",
"commandTooFewArgs": "Too few arguments for command {0}",
"firstTimeRunning": "Hello! This looks like it is your first time running GarlicBot.\nAresources folder has been created with a config file.\nPlease add your bot's authentication token to the config file.",
"missingAuthKey": "Authentication key missing!",
"noPermission": "You do not have the required permission to use this command.",
"quoteAdded": "Added quote",
"quoteAddedBody": "Added quote with author {0}",
"quoteTitle": "Quote:",
"restartMessage": "Restarting...",
"missingAuthKey": "Authentication key missing!",
"commandErrorTitle": "Command Error:",
"rollCommandCouldntParse": "Couldn't parse argument, default to 6 sides\n",
"rollOutput": "Roll the Dice ({0} sides)",
"rollResult": "{0}Result: `{1}`",
"commandTooFewArgs": "Too few arguments for command {0}",
"quoteAdded": "Added quote",
"quoteAddedBody": "Added quote with author {0}",
"quoteTitle": "Quote:"
"rollResult": "{0}Result: `{1}`"
}

0 comments on commit ab560b9

Please sign in to comment.