From 37b48ad59a8c206d0ac2cb1e7f2fa22ca206ddd6 Mon Sep 17 00:00:00 2001 From: Helixu Date: Sat, 20 Nov 2021 14:42:37 +0000 Subject: [PATCH] Stable release - removing mc as not currently fit for stable release, fixed credits. --- bot.py | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/bot.py b/bot.py index 1f114a4..17e9619 100755 --- a/bot.py +++ b/bot.py @@ -86,28 +86,9 @@ async def activity(ctx, atype, *, aname): async def invite(ctx): await ctx.send("Add this bot to your server: https://discord.com/oauth2/authorize?client_id=909103805264724038&permissions=274878203904&scope=bot") -@bot.command(hidden=True, brief="gives information about a minecraft user") -async def mc(ctx, *, name = None): - if not name: - embed = discord.Embed( - title = "No Minecraft user given!", - description = "You have not given a minecraft username, therefore I cannot find anything for you! usage: gib mc (name)" - ) - return await ctx.send(embed = embed) - async with aiohttp.ClientSession() as session: - async with session.get(f'https://some-random-api.ml/mc?username={name}') as resp: - json = await resp.json() - username = json["username"] - uuid = json["uuid"] - namehistory = json["name_history"] - await ctx.send(f""" -Username: {username} -UUID: {uuid} -Name History: {namehistory}""") - @bot.command(brief="gives credits") async def credits(ctx): - await ctx.send("""Images used in this bot are taken from: + await ctx.send("""API endpoints used in this bot are taken from: https://foxrudor.de/ https://some-random-api.ml https://shitfest.net @@ -121,6 +102,7 @@ xfnw#1113 (shitfest memes API) TFTWPhoenix#9240 (I dont know, hes cool I guess.) remi#9948 (also pretty cool ig) +Foxtrot is open source! Find our code at https://code.cat.casa/Helixu/Foxtrot """) @bot.command(brief="random meme") async def meme(ctx):