Skip to content

Commit

Permalink
Merge pull request #89 from United-Programming/cpu_dev
Browse files Browse the repository at this point in the history
Updated version and warning if bot token is missing
  • Loading branch information
CPULL authored Jan 3, 2022
2 parents f624493 + 5b777fa commit 4dbcf9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions UPBot Code/Program.cs
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading.Tasks;
using DSharpPlus;
using DSharpPlus.CommandsNext;
using DSharpPlus.Entities;
using DSharpPlus.Interactivity;
using DSharpPlus.Interactivity.Extensions;

namespace UPBot {
class Program {
static StreamWriter lw = null;
static void Main(string[] args) {



lw = File.CreateText(args.Length >= 3 ? args[2] : "debug.log");
lw.WriteLine("Log Started. Woho.");
lw.Flush();
if (args.Length < 1) {
lw.WriteLine("You have to specify the bot token as first parameter!");
lw.Flush();
return;
}

MainAsync(args[0], (args.Length > 1 && args[1].Length > 0) ? args[1] : "\\").GetAwaiter().GetResult();
}

Expand Down
6 changes: 3 additions & 3 deletions UPBot Code/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
/// </summary>
public static class Utils
{
public const int vmajor = 0, vminor = 1, vbuild = 2;
public const int vmajor = 0, vminor = 1, vbuild = 4;


/// <summary>
Expand All @@ -31,7 +31,7 @@ public static class Utils
private static DiscordGuild guild;

public static string GetVersion() {
return vmajor + "." + vminor + "." + vbuild + " - 2021/08/26";
return vmajor + "." + vminor + "." + vbuild + "b - 2022/01/03";
}

/// <summary>
Expand All @@ -44,7 +44,7 @@ public static DiscordMember GetMyself() {
}

/// <summary>
/// Gets the UNitedProgramming Guild
/// Gets the UnitedProgramming Guild
/// </summary>
/// <returns></returns>
public static DiscordGuild GetGuild() {
Expand Down

0 comments on commit 4dbcf9d

Please sign in to comment.