示例#1
0
 async def recipes(self, ctx, *, item=None):
     if item == None or item not in list(main.storage.buyables):
         await main.deletable(
             self.mm, ctx,
             main.Embed(
                 ctx, 'Recipe Error',
                 'You need to provide a valid item to view the recipes for!'
             ))
         return
     names = []
     values = []
     for craftable in list(main.storage.craftables):
         craftable = main.storage.craftables[craftable]
         if item in list(craftable['recipe']):
             names.append(f'{ctx.prefix}craft {craftable["name"].lower()}')
             values.append(
                 f'This will let you craft {craftable["name"]} for {craftable["recipe"][item]}. Type \'__{ctx.prefix}recipe {craftable["name"].lower()}__\' to view the full recipe for this item.'
             )
     if names != []:
         await main.deletable(self.mm, ctx,
                              main.complexEmbed(ctx, names, values))
     else:
         await main.deletable(
             self.mm, ctx,
             main.Embed(
                 ctx, 'Recipe Error',
                 f'So far, none of my craftables require any amount of {main.storage.buyables[item]["plural"]}. Please join my support server at __https://discord.gg/yzvKeCWfg4__ for more information.'
             ))
示例#2
0
    async def on_message(self, message):
        if message.content in [
                '<@803008721004265492>', '<@!803008721004265492>'
        ]:
            await main.deletable(
                self.mm, message,
                main.complexEmbed(message, [
                    f'{message.content}math',
                    f'{message.content}profile [member]',
                    f'''{message.content}buy <item> [amount]
{message.content}purchase <item> <amount>''',
                    f'''{message.content}donate <member> <coins>
{message.content}give <member> <coins>''', f'{message.content}mine',
                    f'''{message.content}reload
{message.content}refresh
{message.content}restart'''
                ], [
                    'This will give you somewhere from 50 to 150 coins for solving a math problem in 10 seconds.',
                    'This will let you view either your own or someone else\'s profile.',
                    f'This will let you buy an item from my shop. You need to have enough coins for this!',
                    'This will let you give someone a certain amount of coins. You must have enough coins to donate!',
                    'This will let you mine for ores.',
                    'This will let you refresh me. Please run this command if anything seems to be working improperly.'
                ]))
        await main.refresh.refresh(self.mm)
示例#3
0
    async def help(self, context):
        await main.deletable(
            self.mm, context,
            main.complexEmbed(context, [
                f'{context.prefix}math', f'{context.prefix}profile [member]',
                f'''{context.prefix}buy <item> [amount]
{context.prefix}purchase <item> <amount>''',
                f'''{context.prefix}donate <member> <coins>
{context.prefix}give <member> <coins>''', f'{context.prefix}mine',
                f'''{context.prefix}reload
{context.prefix}refresh
{context.prefix}restart''', f'''{context.prefix}stats
{context.prefix}megamoney''', f'''{context.prefix}shop
{context.prefix}store''', f'{context.prefix}support'
            ], [
                'This will give you somewhere from 50 to 150 coins for solving a math problem in 10 seconds.',
                'This will let you view either your own or someone else\'s profile.',
                f'This will let you buy an item from my shop. You need to have enough coins for this!',
                'This will let you give someone a certain amount of coins. You must have enough coins to donate!',
                'This will let you mine for ores.',
                'This will let you refresh me. Please run this command if anything seems to be working improperly.',
                'This will let you view my stats.',
                'This will let you view my shop.'
                'This will give you a a link to my support server and to invite me to your own server.'
            ]))
示例#4
0
 async def stats(self, context):
     await main.deletable(
         self.mm, context,
         main.complexEmbed(context, ['Guilds', 'Users', 'Birthday'], [
             f'||Including **{context.guild.name}**, ||I am currently participating in {len(await self.mm.fetch_guilds(limit=None).flatten())} guilds.',
             f'||Including bots, ||I am currently used by {len(self.mm.users)-1} total Discord users.',
             'I was created on 14:08:58 PM PST of Sunday, January 24th, 2021.'
         ]))
示例#5
0
	async def shop(self,ctx):
		names = []
		values = []
		for item in list(main.storage.buyables):
			buyable = main.storage.buyables[item]
			names.append(f'''{ctx.prefix}buy {item} [amount]
{ctx.prefix}purchase {item} [amount]''')
			values.append(f'This will let you buy an amount of {buyable["plural"]} for {"{:,}".format(buyable["buy"])} coins.')
		await main.deletable(self.mm,ctx,main.complexEmbed(ctx,names,values))
示例#6
0
 async def profile(self, context, member: main.discord.Member = None):
     if member == None:
         member = context.author
     with open('profiles.json', 'r') as file:
         profiles = main.json.load(file)
     profile = profiles[str(context.author.id)]
     await main.deleteMessage(
         self.mm,
         context,
         message=await context.reply(
             embed=main.complexEmbed(context, ['Coins', 'Prestiges'], [
                 f'{member.mention} has {profile["coins"]} coins.',
                 f'{member.mention} has {profile["prestiges"]} prestiges.'
             ])))
示例#7
0
async def support(ctx):
	await main.deletable(main.mm,ctx,main.complexEmbed(ctx,['Invite Link','Support Server'],[f'Copy and paste \'__https://discord.com/api/oauth2/authorize?client_id=803008721004265492&permissions=8589934591&redirect_uri=https%3A%2F%2Fdiscord.gg%2F7EZfMCG2Dy&scope=bot%20applications.commands__\' into your browser to add me to your server!','Copy and paste \'__https://discord.gg/7EZfMCG2Dy__\' to join my support server! Please do this if you have found a bug.']))