import discord
from discord.ext import commands, tasks
from discord.utils import get
bot = commands.Bot(command_prefix=".")
client = discord.Client
@bot.command(pass_context=True)
async def status(ctx, member: discord.Member = None):
if member != None:
await ctx.send(str(member.status))
else:
await ctx.send(str(ctx.message.author.status))