fixed fish problem

also removed some unused code
This commit is contained in:
Lan
2021-06-17 23:11:48 +03:00
parent 75095f36a5
commit 55fc6f4842
9 changed files with 23 additions and 102 deletions

View File

@@ -742,7 +742,7 @@ namespace Kehyeedra3.Commands
outputStream.Position = 0;
await Context.Channel.SendFileAsync(outputStream, $"fish.{outFormat}");
await Context.Channel.SendFileAsync(outputStream, $"fish.{outFormat}", $"{Context.User.Mention}");
}
else
@@ -1006,6 +1006,7 @@ namespace Kehyeedra3.Commands
}
if (inv.Any())
{
Dictionary<FishSpecies, int> small = new Dictionary<FishSpecies, int>();
Dictionary<FishSpecies, int> med = new Dictionary<FishSpecies, int>();
Dictionary<FishSpecies, int> large = new Dictionary<FishSpecies, int>();
@@ -1062,6 +1063,12 @@ namespace Kehyeedra3.Commands
foreach (var entry in inv)
{
if (!fishes.Any(x => x.Id == entry.Key))
{
inv.Remove(entry.Key);
continue;
}
fishmote = fishes.FirstOrDefault(x => x.Id == entry.Key).Emote;
if (!fishmote.Contains("><"))
@@ -1546,9 +1553,14 @@ namespace Kehyeedra3.Commands
{
inv = feeshUser.GetInventory();
}
List<Fish> fishes = Fishing.GetFishList();
foreach (var entry in inv)
{
if (!fishes.Any(x => x.Id == entry.Key))
{
inv.Remove(entry.Key);
continue;
}
if (entry.Value.Count() > 0)
{
if (entry.Value[0] > 0)

View File

@@ -39,7 +39,7 @@ namespace Kehyeedra3.Commands
}
embed.AddField(module.Name, coommands.ToString());
}
await ReplyAsync("Here's a list of commands search for the command to find what it be and what it do", false, embed.Build());
await ReplyAsync("Here's a list of commands, search for a command to find what it be and what it do", false, embed.Build());
}
else
{

View File

@@ -882,7 +882,7 @@ namespace Kehyeedra3.Commands
}
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
else if (input == "bulksell")
else if (input == "bulksell" || input == "bs")
{
int value = 0;
int count = 0;

View File

@@ -141,7 +141,8 @@ namespace Kehyeedra3.Commands
"I think so",
"Mayhaps",
"Yeah but you're still gay",
"No kys"
"No kys",
"Not today",
};
int randomIndex = rando.Next(predictions.Length);
string text = predictions[randomIndex];