aboutsummaryrefslogtreecommitdiff
path: root/AleeBot/Program.cs
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-05-06 19:54:13 -0400
committerAlee <Alee14498@gmail.com>2019-05-06 19:54:13 -0400
commit7189196f20592923496e6d638a8c3acd476be6fa (patch)
tree82c8b32a44e40c1861312d30b974e9beb77ee70c /AleeBot/Program.cs
parentf61c3581df0b9a119386bacbfb5b1053bb0fc589 (diff)
downloadAleeBot.NET-7189196f20592923496e6d638a8c3acd476be6fa.tar.gz
AleeBot.NET-7189196f20592923496e6d638a8c3acd476be6fa.tar.bz2
AleeBot.NET-7189196f20592923496e6d638a8c3acd476be6fa.zip
3.0 Releasedv3.0
Diffstat (limited to 'AleeBot/Program.cs')
-rw-r--r--AleeBot/Program.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/AleeBot/Program.cs b/AleeBot/Program.cs
index a2d783c..86f3fb3 100644
--- a/AleeBot/Program.cs
+++ b/AleeBot/Program.cs
@@ -59,14 +59,14 @@ namespace AleeBot
await _client.LoginAsync(TokenType.Bot, File.ReadAllText("token.txt"));
await _client.StartAsync();
-
+ await _client.SetGameAsync(name:"AleeBot " + Data.Version + " | " + Data.prefix + "help");
+
_client.MessageReceived += Message;
- //await _client.SetGameAsync();
-
_client.Ready += () =>
{
Console.WriteLine("[SUCCESS] AleeBot "+ Data.Version + " is now ready!");
+
return Task.CompletedTask;
};
@@ -95,6 +95,7 @@ namespace AleeBot
if (message.Author.Id == 242775871059001344)
{
await message.Channel.SendMessageAsync("⚠ AleeBot will now exit!");
+ await _client.SetStatusAsync(UserStatus.Offline);
Environment.Exit(0);
} else
{
@@ -114,7 +115,7 @@ namespace AleeBot
await message.Channel.SendMessageAsync(embed: embed.Build());
} else if (message.Content == Data.prefix + "uptime")
{
- //TODO
+ //TODO Possibly in AleeBot 3.1
}
}