public async Task HashrateAsync([Remainder] string Remainder = "") { decimal Hashrate = TrtlBotSharp.GetHashrate(); // Send reply await ReplyAsync("The current global hashrate is **" + TrtlBotSharp.FormatHashrate(Hashrate) + "**"); }
public async Task DynamitAsync([Remainder] string Remainder = "") { // Get supply decimal Supply = TrtlBotSharp.GetSupply(); decimal Height = TrtlBotSharp.GetHeight(); decimal Hashrate = TrtlBotSharp.GetHashrate(); decimal Difficulty = TrtlBotSharp.GetDifficulty(); string Message = string.Format("The current block height is **{0:N0}**" + "\nThe current global hashrate is **" + TrtlBotSharp.FormatHashrate(Hashrate) + "**" + "\nThe current difficulty is **{1:N0}**" + "\nThe current circulating supply is **{2:N4}** {3}", Height, Difficulty, Supply, TrtlBotSharp.coinSymbol); await ReplyAsync(string.Format(Message)); }