This commit is contained in:
2022-05-27 12:28:55 +03:00
parent a9ce01e7c9
commit c1d0155867
6 changed files with 35 additions and 13 deletions

View File

@@ -1,5 +1,8 @@
using PluginManager.Interfaces;
using PluginManager.Items;
using Games.Objects;
using PluginManager.Others;
namespace Games;
public class Game : DBCommand
@@ -15,7 +18,8 @@ public class Game : DBCommand
public async void Execute(Discord.Commands.SocketCommandContext context, Discord.WebSocket.SocketMessage message,
Discord.WebSocket.DiscordSocketClient client, bool isDM)
{
string game_name = PluginManager.Others.Functions.MergeStrings(message.Content.Split(' '), 1);
string game_name = Functions.MergeStrings(message.Content.Split(' '), 1);
string game_url = await GameData.GetSteamLinkFromGame(game_name);
if (game_url is null || game_url == null)
{