Skip to content

Commit

Permalink
update emote creation (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarDevelopment authored Jun 24, 2024
2 parents 30852cf + bc19720 commit a18e9b0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions TimeZoneBot.BusinessLayer/TimeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class TimeHelpers
public const string TimeFormatNoMinutes = "h tt";
public const string TimeFormat24Hour = "H:mm";
public const string DayFormat = "dddd, dd MMMM";
public const string TimeButtonEmojiId = "819015682871001108";
public const ulong TimeButtonEmojiId = 819015682871001108;
public const string TimeButtonEmojiName = "time_button";

public static bool HasMeridiem(Meridiem meridiem, string time)
Expand Down Expand Up @@ -95,7 +95,7 @@ public static string GetEmojiForTime(LocalTime time)

public static Emote GetTimeButtonEmote()
{
return Emote.Parse($"<:{TimeButtonEmojiName}:{TimeButtonEmojiId}>");
return new Emote(TimeButtonEmojiId, TimeButtonEmojiName);
}

public static string BuildSpecificTimeMessage(LocalTime time, string specifiedTime, IUser user)
Expand Down
4 changes: 2 additions & 2 deletions TimeZoneBot.BusinessLayer/TimeZoneBot.BusinessLayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.13.0" />
<PackageReference Include="NodaTime" Version="3.1.10" />
<PackageReference Include="Discord.Net" Version="3.15.2" />
<PackageReference Include="NodaTime" Version="3.1.11" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions TimeZoneBot.DataLayer/TimeZoneBot.DataLayer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MongoDB.Driver" Version="2.23.1" />
<PackageReference Include="NodaTime" Version="3.1.10" />
<PackageReference Include="MongoDB.Driver" Version="2.26.0" />
<PackageReference Include="NodaTime" Version="3.1.11" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion TimeZoneBot.Models/TimeZoneBot.Models.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="NodaTime" Version="3.1.10" />
<PackageReference Include="NodaTime" Version="3.1.11" />
</ItemGroup>

</Project>
12 changes: 6 additions & 6 deletions TimeZoneBot/TimeZoneBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.13.0" />
<PackageReference Include="Discord.Net" Version="3.15.2" />
<PackageReference Include="DiscordDotNetUtilities" Version="1.7.0" />
<PackageReference Include="MediatR" Version="12.2.0" />
<PackageReference Include="MediatR" Version="12.3.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.UserSecrets" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.19.6" />
<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.20.1" />
<PackageReference Include="Serilog" Version="4.0.0" />
<PackageReference Include="Serilog.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="5.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />

</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion TimeZoneBot/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Version": {
"VersionNumber": "7.8.1"
"VersionNumber": "7.8.2"
},
"Discord": {
"BotToken": "token",
Expand Down

0 comments on commit a18e9b0

Please sign in to comment.