awaitcontext.Channel.SendMessageAsync($"Command failed with the following error:\n{result.ErrorReason}\nPlease make sure your brain is plugged in and charging.");
awaitContext.Channel.SendMessageAsync($"Command failed with the following error:\n{result.ErrorReason}\nPlease make sure your brain is plugged in and charging.");
Console.ForegroundColor=ConsoleColor.Red;//set text red
Console.ForegroundColor=ConsoleColor.Red;//set text red
Console.WriteLine($"Something went wrong\n{result.ErrorReason}");
Console.WriteLine($"Something went wrong\n{result.ErrorReason}");
Console.ForegroundColor=ConsoleColor.White;//back to white
Console.ForegroundColor=ConsoleColor.White;//back to white
// await Context.Channel.SendMessageAsync($"The result is {x}\n{message}");
//}
// test commands
// test commands
//[RequireRolePrecondition(AccessLevel.BotOwner)]
//[Command("cbt", RunMode = RunMode.Async)]
//[Command("cbt", RunMode = RunMode.Async)]
//public async Task CombatTest()
//public async Task CombatTest()
//{
//{
@ -144,7 +221,7 @@ namespace Kehyeedra3.Commands
// if (message.Content.ToLowerInvariant() == "pistol shrimp")
// if (message.Content.ToLowerInvariant() == "pistol shrimp")
// {
// {
// cbta = "Pistol Shrimp";
// cbta = "Pistol Shrimp";
// at1 = "Firearm";
// at1 = "Gun";
// at2 = "Crowbar";
// at2 = "Crowbar";
// cb = 1;
// cb = 1;
// hp = 80;
// hp = 80;
@ -200,7 +277,7 @@ namespace Kehyeedra3.Commands
// bhp -= dmg;
// bhp -= dmg;
// await Context.Channel.SendMessageAsync($"What will you attack with?\n**{at1}** | **{at2}**");
// await Context.Channel.SendMessageAsync($"What will you attack with?\n**{at1}** | **{at2}**");
// message = await NextMessageAsync();
// message = await NextMessageAsync();
// if (cb == 1 && message.Content.ToLowerInvariant() == "firearm")
// if (cb == 1 && message.Content.ToLowerInvariant() == "gun")
// {
// {
// await Context.Channel.SendMessageAsync($"{Context.User.Mention}\n**{cbta}** pulls out his trusty glock and shoots at **Fishthot**, dealing **{dmg}** damage.\n**Fishthot**'s HP has been reduced to **{bhp}**.");
// await Context.Channel.SendMessageAsync($"{Context.User.Mention}\n**{cbta}** pulls out his trusty glock and shoots at **Fishthot**, dealing **{dmg}** damage.\n**Fishthot**'s HP has been reduced to **{bhp}**.");
awaitContext.Channel.SendMessageAsync($"You have unlocked fishing rods up to **T{user.RodOwned+1}**\nYou have currently equipped a **T{user.RodUsed+1}** rod");
if(user==null)
{
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou don't own any fishing rods. Try **fishing**.");
return;
}
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou have unlocked fishing rods up to **T{user.RodOwned+1}**\nYou have currently equipped a **T{user.RodUsed+1}** rod");
}
}
}
}
[Command("setrod"),Summary("Set your fishing rod to the desired tier (for example: 'setrod 1' to set to default rod)")]
[Command("setrod"),Summary("Set your fishing rod to the desired tier (for example: 'setrod 1' to set to default rod)")]
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nThe maximum name length is 16 characters. \nStop jassing.");
return;
}
elseif(fish.FishType!=0)
{
fish.Name=sec;
awaitDatabase.SaveChangesAsync();
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou have changed the name of your battlefish to **{sec}**.");
}
else
{
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou can't manage a fish if you don't have one.");
}
}
elseif(option=="buy"||option=="b")
{
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nHere is a list of available battlefish. Please choose one by its respective number. All battlefish cost 0.05%."+
$"\n1 : **Herring** - An unarmed melee fighter with well balanced stats. It is not very agile.\nModifiers: **ATK 9, DEF 9, HP 9, AP 2**"+
$"\n2 : **Birgus** - A crustacean mage with a focus on AP and DMG. It is slightly agile.\nModifiers: **ATK 10, DEF 6, HP 5, AP 9**"+
$"\n3 : **Abama** - A cephalopod rogue with a heavy focus on debuffs. It is very agile.\nModifiers: **ATK 4, DEF 3, HP 5, AP 18**"+
$"\n4 : **Pistashrimp** - A crustacean ranger with a heavy focus on DPS. It is somewhat agile.\nModifiers: **ATK 15, DEF 4, HP 5, AP 6**");
varreply=awaitNextMessageAsync();
byterep=byte.Parse(reply.Content);
if(rep>4||rep<1)
{
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nWhat you're looking for does not exist.");
return;
}
elseif(user.Money<500)
{
awaitContext.Channel.SendMessageAsync($"Sorry **{Context.User.Mention}**, I can't give credit.\nCome back when you're a little, ***mmmmm***, richer.\n*You're missing {(500 - user.Money)/10000d}%.*");
return;
}
switch(rep)
{
case1:
{
species="a Herring";
}
break;
case2:
{
species="a Birgus";
}
break;
case3:
{
species="an Abama";
}
break;
case4:
{
species="a Pistashrimp";
}
break;
}
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYou want **{species}**? It's yours my friend, as long as you have enough **%**.\n *This cannot be reverted. Type 'confirm' to confirm.*");
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nBank has no money, convince someone to gamble.");
return;
}
//create fish here pls let there fish be
fish.FishType=rep;
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nThank you for your purchase.");
awaitDatabase.SaveChangesAsync();
}
else
{
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nYour purchase is cancelled.");
}
}
elseif(option=="info"||option=="i")
{
stringinfo="";
if(sec.ToLowerInvariant()=="herring")
{
info="Equipment type: Enhancing clothing.\nBonus info: Only males of this species exist. I don't know how they reproduce, and I might not want to know.";
}
elseif(sec.ToLowerInvariant()=="birgus")
{
info="Equipment type: Staves.\nBonus info: Exceptional Birguses may live for centuries, their powers increasing with age. While breeding, they part with much of their potential power, so few of them actually do so.";
}
elseif(sec.ToLowerInvariant()=="abama")
{
info="Equipment type: Enhancing clothing.\nBonus info: The tentacles are not just for show. Being highly agile and stealthy, Abamas are experts at grabbing things unnoticed.";
}
elseif(sec.ToLowerInvariant()=="pistashrimp")
{
info="Equipment type: Firearms.\nBonus info: Despite making up only 13% of the underwater wildlife, Pistashrimps account for 100% of the unarmed firearm robberies. Few of them are righteous, but the ones that are make for great detectives.";
}
else
{
awaitContext.Channel.SendMessageAsync($"{Context.User.Mention}\nNot a valid fish.");
[Command("remind"), Summary("Reminds you in a given time. (days, hours, minutes) Eg. 'remind 1 2 3 wash hands' would remind you in 1 day, 2 hours, 3 minutes to wash your hands")]
[Command("remind"), Summary("Reminds you in a given time. (days, hours, minutes) Eg. 'remind 1 2 3 wash hands' would remind you in 1 day, 2 hours, 3 minutes to wash your hands")]