I am creating a command to calculate time needed to get "Familiars" in a particular server, but I am having troubles actually making the command itself. This is what I have done so far to get my grounds on making a command yet when I run test, nothing happens. Can anyone help?
import discord
from discord.ext import commands
client = discord.Client()
bot = commands.Bot(command_prefix='//')
@bot.command()
async def test(ctx):
await ctx.send('test')
#edited in 'await' above ^
#Familiars Calculator Portion:
import discord
from discord.ext import commands
from Commands import bot
@bot.command
async def calculator():
class calculate:
def values(self):
fam = 35353
xp: int = int(input("Enter your current xp: "))
msg = 1
while xp < fam:
xp += 15
msg += 1
days_to_fam: int = round(msg * 2 / (60 * 24))
hours_to_fam: int = round(msg * 2 / 60)
hours_to_fam %= 24
minutes_to_fam: int = round(msg * 2)
minutes_to_fam %= 60
embed = discord.Embed(title="Statistics needed to reach fam:",color=0xffffff))
embed = discord.Embed(description="Messages: ", int(msg), " (roughly).", "\nDays: ", days_to_fam, "\nHours: ", hours_to_fam, "\nMinutes:", minutes_to_fam)
print('\nStatistics needed to reach fam: ', "\nMessages:", int(msg), "(roughly)", "\nDays:", days_to_fam,
"\nHours:", hours_to_fam, "\nMinutes:", minutes_to_fam)
await,await ctx.send('test').