1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2025-02-08 06:50:27 +00:00
modufur/src/main/cogs/info.py

50 lines
1.6 KiB
Python
Raw Normal View History

2017-09-24 11:05:28 -04:00
import asyncio
2017-10-12 22:26:22 -04:00
import traceback as tb
2017-10-15 01:34:52 -04:00
import discord as d
2017-09-24 11:05:28 -04:00
from discord.ext import commands
2017-10-12 22:26:22 -04:00
2017-09-24 11:05:28 -04:00
from misc import exceptions as exc
2017-10-15 01:34:52 -04:00
from utils import utils as u
2017-09-24 11:05:28 -04:00
class Info:
def __init__(self, bot):
self.bot = bot
2017-10-15 01:34:52 -04:00
# @commands.command(name='helptest', aliases=['h'], hidden=True)
# async def list_commands(self, ctx):
# embed = d.Embed(title='All possible commands:', color=ctx.me.color)
# embed.set_author(name=ctx.me.display_name, icon_url=ctx.me.avatar_url)
# embed.add_field(
# name='Booru', value='\n{}bl umbrella command for managing blacklists'.format(u.config['prefix']))
#
# await ctx.send(embed=embed)
2017-10-12 22:26:22 -04:00
@commands.command(hidden=True)
2017-10-15 01:34:52 -04:00
async def hi(self, ctx):
user = ctx.author
2017-10-12 22:26:22 -04:00
hello = 'Hewwo, {}.'.format(user.mention)
if user.id == checks.owner_id:
hello += '.. ***Master.*** uwu'
elif user.guild_permissions.administrator:
hello = '{} **Admin** {}'.format(hello[:7], hello[7:])
elif user.guild_permissions.ban_members:
hello = '{} **Mod** {}'.format(hello[:7], hello[7:])
await ctx.send(hello)
2017-09-24 11:05:28 -04:00
@commands.group(name='info', aliases=['i'])
async def info(self, ctx):
if invoked_subcommand is None:
await ctx.send('<embed>BOT INFO</embed>')
@info.command(aliases=['g', 'server', 's'], brief='Provides info about a guild', hidden=True)
async def guild(self, ctx):
2017-10-12 22:26:22 -04:00
pass
2017-09-24 11:05:28 -04:00
@info.command(aliases=['u', 'member', 'm'], brief='Provides info about a user', hidden=True)
async def user(self, ctx):
2017-10-12 22:26:22 -04:00
pass