diff options
| author | Alee <Alee14498@gmail.com> | 2019-05-06 19:54:13 -0400 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-05-06 19:54:13 -0400 |
| commit | 7189196f20592923496e6d638a8c3acd476be6fa (patch) | |
| tree | 82c8b32a44e40c1861312d30b974e9beb77ee70c | |
| parent | f61c3581df0b9a119386bacbfb5b1053bb0fc589 (diff) | |
| download | AleeBot.NET-3.0.tar.gz AleeBot.NET-3.0.tar.bz2 AleeBot.NET-3.0.zip | |
3.0 Releasedv3.0
| -rw-r--r-- | AleeBot/AleeBot.csproj | 2 | ||||
| -rw-r--r-- | AleeBot/Data.cs | 2 | ||||
| -rw-r--r-- | AleeBot/Program.cs | 9 |
3 files changed, 7 insertions, 6 deletions
diff --git a/AleeBot/AleeBot.csproj b/AleeBot/AleeBot.csproj index 3bce0a8..1c9108d 100644 --- a/AleeBot/AleeBot.csproj +++ b/AleeBot/AleeBot.csproj @@ -12,11 +12,11 @@ <AssemblyName>AleeBot</AssemblyName> <RootNamespace>AleeBot</RootNamespace> <RepositoryUrl>https://github.com/AleeCorp/AleeBot.NET</RepositoryUrl> + <SignAssembly>false</SignAssembly> </PropertyGroup> <ItemGroup> <PackageReference Include="Discord.Net" Version="2.0.1" /> - <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> <PackageReference Include="System.IO.FileSystem" Version="4.3.0" /> </ItemGroup> </Project> diff --git a/AleeBot/Data.cs b/AleeBot/Data.cs index 62a5f98..417e90e 100644 --- a/AleeBot/Data.cs +++ b/AleeBot/Data.cs @@ -23,7 +23,7 @@ namespace AleeBot { //This will be storing public variables such as versions and stuff. - public static string Version = "3.0 Beta"; + public static string Version = "3.0"; public static string prefix = "ab:"; } } 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 } } |
