Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

Commit

Permalink
3.0 Released
Browse files Browse the repository at this point in the history
  • Loading branch information
Alee14 committed May 6, 2019
1 parent f61c358 commit 7189196
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion AleeBot/AleeBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>
2 changes: 1 addition & 1 deletion AleeBot/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class Data
{
//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:";
}
}
9 changes: 5 additions & 4 deletions AleeBot/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ public async Task MainAsync()

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;
};

Expand Down Expand Up @@ -95,6 +95,7 @@ private async Task Message(SocketMessage message)
if (message.Author.Id == 242775871059001344)
{
await message.Channel.SendMessageAsync("⚠ AleeBot will now exit!");
await _client.SetStatusAsync(UserStatus.Offline);
Environment.Exit(0);
} else
{
Expand All @@ -114,7 +115,7 @@ private async Task Message(SocketMessage message)
await message.Channel.SendMessageAsync(embed: embed.Build());
} else if (message.Content == Data.prefix + "uptime")
{
//TODO
//TODO Possibly in AleeBot 3.1
}
}

Expand Down

0 comments on commit 7189196

Please sign in to comment.