Skip to content

Commit

Permalink
Fix my Luigibot
Browse files Browse the repository at this point in the history
  • Loading branch information
suicvne committed Apr 6, 2016
1 parent af73b50 commit d3e458c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DiscordSharpTestApplication/LuigibotMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ private Task SetupEvents(CancellationToken token)
{
client.MessageReceived += (sender, e) =>
{
if(owner == null)
owner = client.GetServersList().Find(x => x.GetMemberByKey(config.OwnerID) != null).GetMemberByKey(config.OwnerID); //prays


if (e.Author == null)
{
string msg = $"Author had null id in message received!\nRaw JSON:\n```\n{e.RawJson}\n```\n";
Expand Down Expand Up @@ -350,9 +354,8 @@ private Task SetupEvents(CancellationToken token)
{
Console.Title = "Luigibot - Discord - Logged in as " + e.User.Username;
Console.WriteLine("Connected as " + e.User.Username);

if (!String.IsNullOrEmpty(config.OwnerID))
{ }
{ }
else
{
doingInitialRun = true;
Expand Down

0 comments on commit d3e458c

Please sign in to comment.