From ffa6692e076e93c5562703cd0eff7fee79178baf Mon Sep 17 00:00:00 2001 From: Wizzy69 Date: Fri, 3 Jun 2022 22:37:58 +0300 Subject: [PATCH] --- FreeGames/Game.cs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 FreeGames/Game.cs diff --git a/FreeGames/Game.cs b/FreeGames/Game.cs deleted file mode 100644 index 7080383..0000000 --- a/FreeGames/Game.cs +++ /dev/null @@ -1,32 +0,0 @@ -using PluginManager.Interfaces; -using PluginManager.Items; -using Games.Objects; -using PluginManager.Others; - -namespace Games; - -public class Game : DBCommand -{ - public string Command => "game"; - public string Description => "Display info about the specified game"; - public string Usage => "game "; - - public bool canUseDM => false; - public bool canUseServer => true; - public bool requireAdmin => false; - - public async void Execute(Discord.Commands.SocketCommandContext context, Discord.WebSocket.SocketMessage message, - Discord.WebSocket.DiscordSocketClient client, bool isDM) - { - - 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) - { - await message.Channel.SendMessageAsync("Could not find the game. Try to be more specific or check for spelling errors."); - return; - } - await context.Channel.SendMessageAsync(game_url); - } - -}